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.
-
PO_CommandConstructor()
- Constructor for PO_CommandConstructor
-
prepareCommandString(int, String, String, int, String, int, int, String)
-
Handles the construction of strings for multiple commands
-
prepareDirCommandString(int, String, String, int)
-
Handles the construction of strings for directory commands
-
prepareQueryCommandString(int, String, String, int, String, String)
-
Handles the construction of strings for query commands
-
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
PO_CommandConstructor
public PO_CommandConstructor()
- Constructor for PO_CommandConstructor
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
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
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
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