public class DDClass extends DDBase implements Cloneable
| Modifier and Type | Field and Description |
|---|---|
static String |
EVENT_STR |
static String |
EVENT_SUBCLASS_STR |
static String |
FLD_PURGE_NON_PURGABLE |
static String |
FLD_PURGE_PURGABLE |
fFlist, fIsToModify, fNewCLS_NAME, FIELD_NOT_FOUND_TYPE, FIELD_NUM, kEditable, kEditableColor, kElementID, kFirstElementID, kHGap, kMagentaColor, kNewObject, kNonExistent, kNotEditableColor, kNumberDDFields, kStringLength, kVGap, PKG_NAME| Constructor and Description |
|---|
DDClass(DataDictionary dictionary,
FList flist)
The input flist should have the following format
|
DDClass(DataDictionary dictionary,
String name,
String label,
String desc)
This constructor is used to create a new Subclass
|
DDClass(DataDictionary dictionary,
String name,
String label,
String desc,
String table,
String seqStart,
String storageSpec)
This constructor is used to create a new Base class
IMPORTANT:
For base storable classes (not subclasses), Sequence Start Number field
This is useful for creating objects with known POIDs.
|
DDClass(FList list,
boolean isNewObject)
This constructor is used when the class info is read from a file.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
This method returns a copy of the object.
|
protected FList |
createClassArray(String name,
String descr,
String readAccess,
String writeAccess,
String label)
Creates an FList with Name, Description, Label, Read Access and Write Access
information for the given class.
|
protected FList |
createClassArray(String name,
String descr,
String table,
String readAccess,
String writeAccess,
String label,
Integer seqNum,
String tableStorage)
Creates an FList with Name, Description, Label, Read Access, Write Access, SQL Table name,
Sequence Start Number and Storage Specifications information for the given class.
|
protected FList |
createElement(DDClassField classFieldObj)
This method is used to set the default properties for the dropped fields.
|
protected FList |
createElement(String name,
String type,
String createPerm,
String modPerm,
String table,
int fieldID)
This method is used by DDClass.java, to add the mandatory fields to a base
class when it is created.
|
Vector |
getDDClassFields()
Extracting the fields availabe in the class
|
String |
getDescription()
Extracting the Class Description from the FList
|
String |
getLabel()
Extracting Label for the class from the FList
|
String |
getName()
Extracting Class Name from the FList
|
String |
getPurgeProperty()
Extracting the Purge Property Spec info for a class from the FList
|
String |
getReadAccess()
Extracting Read Access info for the class from the FList
|
String |
getStartSequenceNumber()
Extracting Sequence Start Number from the FList
|
String |
getStorage()
Extracting the Storage Spec info for a class from the FList
|
String |
getTable()
Extracting the Table Name represting this class from the FList
|
String |
getWriteAccess()
Extracting Write Access info for the class from the FList
|
static boolean |
isASystemManagedFld(DDClassField classFieldObj)
Varifies whether the passed in DDClassField is to be managed by system
|
boolean |
isChildOf(DDClass classDesc)
Determine if this is a child of a class
|
static boolean |
isThisAMandatoryField(DDClassField classFieldObj)
Varifies whether the passed in DDClassField is a mandatory field for this
DDClass class |
protected void |
setMandatoryFieldsForBaseClass(FList classArray)
Creates an FList with Mandatory Fields (PIN_FLD_ACCOUNT_OBJ, PIN_FLD_CREATED_T
PIN_FLD_MOD_T, PIN_FLD_POID, PIN_FLD_READ_ACCESS, PIN_FLD_WRITE_ACCESS) for the
base class are included.
|
void |
updateFList(DDClassField fieldObject,
boolean objIsFromDDField) |
void |
updateFList(DDClassField parentObj,
DDClassField childObj,
boolean objIsFromDDField) |
void |
updateFList(Hashtable hashtable,
boolean isSubClass) |
compareTo, createFList, getAuditable, getColumn, getCreatePermission, getEncryptable, getFList, getIcon, getLength, getModifyPermission, getNumber, getOrder, getTypeIndex, getTypeString, isNew, isOpenedForModifications, setFieldProperties, setFList, setIsNew, setIsOpenedForModifications, toStringpublic static final String EVENT_STR
public static final String EVENT_SUBCLASS_STR
public static final String FLD_PURGE_NON_PURGABLE
public static final String FLD_PURGE_PURGABLE
public DDClass(DataDictionary dictionary, String name, String label, String desc) throws EBufException
EBufExceptionpublic DDClass(DataDictionary dictionary, String name, String label, String desc, String table, String seqStart, String storageSpec) throws EBufException
EBufExceptionpublic DDClass(DataDictionary dictionary, FList flist) throws EBufException
0 PIN_FLD_OBJ_DESC ARRAY [1] allocated 9, used 9
1 PIN_FLD_OBJ_ELEM ARRAY [0] allocated 9, used 9
2 PIN_FLD_DESCR STR [0] ""
2 PIN_FLD_MOD_PERMISSION STR [0] "Writeable"
2 PIN_FLD_CREATE_PERMISSION STR [0] "Required"
2 PIN_FLD_ORDER DECIMAL [0] 0
2 PIN_FLD_SM_ITEM_NAME STR [0] "account_obj"
2 PIN_FLD_AUDITABLE INT [0] 0
2 PIN_FLD_FIELD_NAME STR [0] "PIN_FLD_ACCOUNT_OBJ"
2 PIN_FLD_LABEL STR [0] ""
2 PIN_FLD_FIELD_NUM ENUM [0] 40
1 PIN_FLD_OBJ_ELEM ARRAY [1] allocated 9, used 9
2 PIN_FLD_DESCR STR [0] ""
2 PIN_FLD_MOD_PERMISSION STR [0] "System"
2 PIN_FLD_CREATE_PERMISSION STR [0] "System"
2 PIN_FLD_ORDER DECIMAL [0] 0
2 PIN_FLD_SM_ITEM_NAME STR [0] "created_t"
2 PIN_FLD_AUDITABLE INT [0] 0
2 PIN_FLD_FIELD_NAME STR [0] "PIN_FLD_CREATED_T"
2 PIN_FLD_LABEL STR [0] ""
2 PIN_FLD_FIELD_NUM ENUM [0] 19
1 PIN_FLD_OBJ_ELEM ARRAY [2] allocated 9, used 9
2 PIN_FLD_DESCR STR [0] ""
2 PIN_FLD_MOD_PERMISSION STR [0] "System"
2 PIN_FLD_CREATE_PERMISSION STR [0] "System"
2 PIN_FLD_ORDER DECIMAL [0] 0
2 PIN_FLD_SM_ITEM_NAME STR [0] "mod_t"
2 PIN_FLD_AUDITABLE INT [0] 0
2 PIN_FLD_FIELD_NAME STR [0] "PIN_FLD_MOD_T"
2 PIN_FLD_LABEL STR [0] ""
2 PIN_FLD_FIELD_NUM ENUM [0] 20
1 PIN_FLD_OBJ_ELEM ARRAY [3] allocated 9, used 9
2 PIN_FLD_DESCR STR [0] ""
2 PIN_FLD_MOD_PERMISSION STR [0] "System"
2 PIN_FLD_CREATE_PERMISSION STR [0] "System"
2 PIN_FLD_ORDER DECIMAL [0] 0
2 PIN_FLD_SM_ITEM_NAME STR [0] "poid"
2 PIN_FLD_AUDITABLE INT [0] 0
2 PIN_FLD_FIELD_NAME STR [0] "PIN_FLD_POID"
2 PIN_FLD_LABEL STR [0] ""
2 PIN_FLD_FIELD_NUM ENUM [0] 16
1 PIN_FLD_OBJ_ELEM ARRAY [4] allocated 11, used 11
2 PIN_FLD_DESCR STR [0] ""
2 PIN_FLD_MOD_PERMISSION STR [0] "Writeable"
2 PIN_FLD_CREATE_PERMISSION STR [0] "System"
2 PIN_FLD_ORDER DECIMAL [0] 0
2 PIN_FLD_SM_ITEM_NAME STR [0] "read_access"
2 PIN_FLD_ENCRYPTABLE INT [0] 0
2 PIN_FLD_AUDITABLE INT [0] 0
2 PIN_FLD_FIELD_NAME STR [0] "PIN_FLD_READ_ACCESS"
2 PIN_FLD_LABEL STR [0] ""
2 PIN_FLD_LENGTH INT [0] 60
2 PIN_FLD_FIELD_NUM ENUM [0] 1903
1 PIN_FLD_OBJ_ELEM ARRAY [5] allocated 11, used 11
2 PIN_FLD_DESCR STR [0] ""
2 PIN_FLD_MOD_PERMISSION STR [0] "Writeable"
2 PIN_FLD_CREATE_PERMISSION STR [0] "System"
2 PIN_FLD_ORDER DECIMAL [0] 0
2 PIN_FLD_SM_ITEM_NAME STR [0] "write_access"
2 PIN_FLD_ENCRYPTABLE INT [0] 0
2 PIN_FLD_AUDITABLE INT [0] 0
2 PIN_FLD_FIELD_NAME STR [0] "PIN_FLD_WRITE_ACCESS"
2 PIN_FLD_LABEL STR [0] ""
2 PIN_FLD_LENGTH INT [0] 60
2 PIN_FLD_FIELD_NUM ENUM [0] 1904
1 PIN_FLD_DESCR STR [0] ""
1 PIN_FLD_SM_INFO STR [0] ""
1 PIN_FLD_SM_ITEM_NAME STR [0] "NewClass_t"
1 PIN_FLD_SEQ_START INT [0] 1
1 PIN_FLD_NAME STR [0] "/NewClass"
1 PIN_FLD_LABEL STR [0] "new class"
1 PIN_FLD_WRITE_ACCESS STR [0] "Self"
1 PIN_FLD_READ_ACCESS STR [0] "Self"
0 PIN_FLD_POID POID [0] 0.0.0.1 /dd/objects -1 0
EBufExceptionpublic DDClass(FList list, boolean isNewObject) throws EBufException
list - The flist containg the object specifcation. Please refer to
DDClass(DataDictionary
dictionary, FList flist) for the format of the
input flist.EBufExceptionpublic static boolean isASystemManagedFld(DDClassField classFieldObj) throws EBufException
classFieldObj - Object of DDClassField which is to be
varified whether it is to be managed by system true if the passed in object of
DDClassField is to be managed by system;
false otherwiseEBufException - JAVAPCM API's EBufException is thrownpublic static boolean isThisAMandatoryField(DDClassField classFieldObj) throws EBufException
DDClass classclassFieldObj - Object of DDClassField which is to be
varified whether it is a mandatory field for this class true if the passed in object of
DDClassField is a mandatory field for this
class; flase otherwiseEBufException - JAVAPCM API's EBufException is thrownpublic Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic String getDescription() throws EBufException
getDescription in class DDBaseEBufExceptionpublic String getName() throws EBufException
getName in class DDBaseEBufExceptionpublic String getPurgeProperty() throws EBufException
EBufExceptionpublic String getLabel() throws EBufException
getLabel in class DDBaseEBufExceptionpublic String getTable() throws EBufException
getTable in class DDBaseEBufExceptionpublic String getStartSequenceNumber() throws EBufException
getStartSequenceNumber in class DDBaseEBufExceptionpublic String getReadAccess() throws EBufException
getReadAccess in class DDBaseEBufExceptionpublic String getWriteAccess() throws EBufException
getWriteAccess in class DDBaseEBufExceptionpublic String getStorage() throws EBufException
getStorage in class DDBaseEBufExceptionpublic boolean isChildOf(DDClass classDesc) throws EBufException
classDesc - The DDClass object to be checked
for the relationship with the current object.true if this class is a child of
the specified class.
false if this class is not a child
of the specified class.EBufExceptionpublic Vector getDDClassFields() throws EBufException
EBufExceptionprotected FList createClassArray(String name, String descr, String readAccess, String writeAccess, String label) throws EBufException
EBufExceptionprotected FList createClassArray(String name, String descr, String table, String readAccess, String writeAccess, String label, Integer seqNum, String tableStorage) throws EBufException
EBufExceptionprotected void setMandatoryFieldsForBaseClass(FList classArray) throws EBufException
EBufExceptionpublic void updateFList(DDClassField fieldObject, boolean objIsFromDDField) throws EBufException
EBufExceptionpublic void updateFList(DDClassField parentObj, DDClassField childObj, boolean objIsFromDDField) throws EBufException
EBufExceptionpublic void updateFList(Hashtable hashtable, boolean isSubClass) throws EBufException
EBufExceptionprotected FList createElement(DDClassField classFieldObj) throws EBufException
EBufExceptionprotected FList createElement(String name, String type, String createPerm, String modPerm, String table, int fieldID) throws EBufException
EBufExceptionCopyright © 2003, 2023, Oracle and/or its affiliates.