Class PO
Class PO
java.lang.Object
|
+----PO
- public class PO
- extends Object
PO Class
This is a class where all the static final constants that the
Persistent Object package uses are defined
// modes for the network operations
// may include more in the future
public static final int PUT = 2;
public static final int GETSTR = 1;
public static final int MODIFY = 0;
public static final int GETID = 3;
public static final int GETATT = 4;
public static final int DELETE = 5;
public static final int CONNECT = 6;
public static final int CONNECTNEW = 7;
public static final int DISCONNECT = 8;
public static final int GETATTINFO = 9;
public static final int GETROOTDIR = 10;
public static final int GETCONTEXT = 11;
public static final int QUERY = 12;
public static final int GETVERID = 13;
public static final int PUTVER = 14;
public static final int VERGETCONTEXT = 15;
// other may include Versioned Save, Query...
// types for type-casting
public static final int STRING = 1;
public static final int INT = 2;
public static final int FLOAT = 3;
public static final int DOUBLE = 4;
public static final int BOOLEAN = 5;
public static final int CHAR = 6;
public static final int OBJECT = 7;
public static final int VECTOR = 8;
public static final int PARENTS = 9;
public static final int CHILDREN = 10;
public static final int UNIQUE_ID = 11;
public static final int ARRAY = 12;
public static final int CONTAINERS = 9; // matches that of PersistentObject's
public static final int CONTENTS = 10; // PARENTS and CHILDREN
// indicators for the declaration of functions with same name
// by different input type
// initial values do not matter
public static final String STRING_INDICATOR = "str";
public static final int INT_INDICATOR = 0;
public static final float FLOAT_INDICATOR = 1;
public static final double DOUBLE_INDICATOR = 2;
public static final boolean BOOLEAN_INDICATOR = true;
public static final char CHAR_INDICATOR = 'c';
public static final Object OBJECT_INDICATOR = null;
public static double[] ARRAY_INDICATOR;
public static Vector VECTOR_INDICATOR = null;
// responses from backend DB server
public static final int OK_VAL = 200;
public static final int DUPLICATE_VAL = 300;
public static final int BAD_REQUEST_VAL = 400;
public static final int NOT_FOUND_VAL = 404;
public static final int NOT_FOUND_A_VAL = 405;
public static final int NOT_FOUND_B_VAL = 406;
public static final int EMPTY_REQUEST_VAL = 407;
public static final int NO_ATTACH_VAL = 408;
public static final int SELF_ATTACH_VAL = 409;
public static final int PERM_ERROR_VAL = 410;
public static final int CONT_ERROR_VAL = 411;
public static final int NOT_VERSIONOBJ_VAL = 412;
public static final int INTERNAL_ERROR_VAL = 500;
public static final int ATTACH_NOT_FOUND_VAL = 501;
// operation responses
public static final int OK = 0;
public static final int ERROR = 1;
public static final int DO_NOT_PROCEED = 2;
public static final int NOT_ATTACHED = 3;
// values of version Flag
public static final int NO_VERSION = 0;
public static final int POINT_VERSION = 1;
public static final int TREE_VERSION = 2;
// permission values
public static final int READ_ONLY = 0;
public static final int READ_WRITE = 1;