Package com.portal.pfc.infranet.datadict
Class DDField
java.lang.Object
com.portal.pfc.infranet.datadict.DDBase
com.portal.pfc.infranet.datadict.DDField
- All Implemented Interfaces:
IConstants,Cloneable,Comparable
- Direct Known Subclasses:
DDClassField
-
Field Summary
FieldsFields inherited from class com.portal.pfc.infranet.datadict.DDBase
fFlist, fIsToModify, fNewFields inherited from interface com.portal.pfc.infranet.datadict.IConstants
CLS_NAME, FIELD_NOT_FOUND_TYPE, FIELD_NUM, kEditable, kEditableColor, kElementID, kFirstElementID, kHGap, kMagentaColor, kNewObject, kNonExistent, kNotEditableColor, kNumberDDFields, kStringLength, kVGap, PKG_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()protected FListcreateFieldArray(String name, int number, int type, String descr) protected static voidprotected static voidprotected static voidfinal booleanTakes an flist specifying a field and checks if it's a custom field.voidvoidgenerateJavaFldFile(String directory, String packageName) voidgetIcon()static ImageIcongetIcon(int index) Changes Portal-style naming to Java style, i.e.intstatic intgetTypeIndex(String typeString) static StringgetTypeString(int index) Methods inherited from class com.portal.pfc.infranet.datadict.DDBase
compareTo, createFList, getAuditable, getColumn, getCreatePermission, getDescription, getEncryptable, getFList, getLabel, getLength, getModifyPermission, getName, getOrder, getReadAccess, getStartSequenceNumber, getStorage, getTable, getWriteAccess, isNew, isOpenedForModifications, setFieldProperties, setFList, setIsNew, setIsOpenedForModifications, toString
-
Field Details
-
fType
protected int fType
-
-
Constructor Details
-
DDField
public DDField(DataDictionary dictionary, String name, String desc, int type, int id) throws EBufException - Throws:
EBufException
-
DDField
- Throws:
EBufException
-
-
Method Details
-
createTypeArray
protected static void createTypeArray() -
createJavaTypeArray
protected static void createJavaTypeArray() -
createIconArray
protected static void createIconArray() -
getIcon
-
getTypeString
-
getTypeIndex
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
createFieldArray
protected FList createFieldArray(String name, int number, int type, String descr) throws EBufException - Throws:
EBufException
-
getNumber
- Overrides:
getNumberin classDDBase- Throws:
EBufException
-
getTypeIndex
public int getTypeIndex()- Overrides:
getTypeIndexin classDDBase
-
getTypeString
- Overrides:
getTypeStringin classDDBase
-
getJavaTypeString
-
getIcon
-
generateJavaFldFile
public void generateJavaFldFile(String directory, String packageName) throws EBufException, IOException - Throws:
EBufExceptionIOException
-
getJavaClassName
Changes Portal-style naming to Java style, i.e. PIN_FLD_ALIAS_NAME to PinFldAliasName- Returns:
- Java class name corresponding to DDField.
- Throws:
EBufException
-
customField
Takes an flist specifying a field and checks if it's a custom field. Custom field is defined outside the number space reserved for Portal: field number reserved for ------------------------------------ 0 - 9999 Portal Only 10,000 - 999,999 Customer Use 1,000,000 - 9,999,999 Portal Only 10,000,000+ Customer Use- Returns:
- true if field is a custom-defined field and false if field is a Portal-reserved field
- Throws:
EBufException
-
generateJavaPropertiesEntry
- Throws:
EBufException
-
generateCHeaderfileEntry
- Throws:
EBufException
-