Class PO_CommandConstructor

Class PO_CommandConstructor

java.lang.Object
   |
   +----PO_CommandConstructor

public class PO_CommandConstructor
extends Object
PO_CommandConstructor Class This is a class which prepares the command/instructions that are sent to the network server.

Constructor Index

 o PO_CommandConstructor()
Constructor for PO_CommandConstructor

Method Index

 o prepareCommandString(int, String, String, int, String, int, int, String)
Handles the construction of strings for multiple commands
 o prepareDirCommandString(int, String, String, int)
Handles the construction of strings for directory commands
 o prepareQueryCommandString(int, String, String, int, String, String)
Handles the construction of strings for query commands
 o prepareSaveString(int, String, String, int, String, Vector, int[], int)
Prepare a Stream that contains the processed fields of the object, used primary for saving objects

Constructors

 o PO_CommandConstructor
  public PO_CommandConstructor()
Constructor for PO_CommandConstructor

Methods

 o prepareCommandString
  public String prepareCommandString(int mode,
                                     String userId,
                                     String objectClassName,
                                     int objId,
                                     String objectStrId,
                                     int childId,
                                     int relationship,
                                     String version)
Handles the construction of strings for multiple commands
Parameters:
mode - Mode of operation
userId - DB identifier string
objectClassName - Class Name of the object
objId - Integer Id of the object
objectStrId - String Id of the object
childId - Id of the child object
relationship - PO.PARENTS or PO.CHILDREN
version - Versiong of the object requested, A.B, or "R" for last-Release or "L" for latest version
 o prepareSaveString
  public String prepareSaveString(int mode,
                                  String userId,
                                  String objectClassName,
                                  int objId,
                                  String objectStrId,
                                  Vector fieldVector,
                                  int fieldTypeArray[],
                                  int versionFlag)
Prepare a Stream that contains the processed fields of the object, used primary for saving objects
Parameters:
mode - Mode of operation (see PO.java)
userId - DB identifier string
objectClassName - Class Name of the object
objId - Integer Id of the object
objectStrId - String Id of the object
fieldVector - Vector of the Object's fields info
fieldTypeArray - Array of the Object's fields' types
 o prepareDirCommandString
  public String prepareDirCommandString(int op,
                                        String userId,
                                        String objectClassName,
                                        int objId)
Handles the construction of strings for directory commands
Parameters:
op - Operation
userId - DB identifier string
objectClassName - Class Name of the object
objId - Integer Id of the object
 o prepareQueryCommandString
  public String prepareQueryCommandString(int op,
                                          String userId,
                                          String objectClassName,
                                          int scope,
                                          String fieldName,
                                          String strId)
Handles the construction of strings for query commands
Parameters:
op - Operation
userId - DB identifier string
objectClassName - Class Name of the object
scope - Scope of the search
fieldName - Class fieldName of the search
objId - Integer Id of the object