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, fNew
Fields 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 FList
createFieldArray
(String name, int number, int type, String descr) protected static void
protected static void
protected static void
final boolean
Takes an flist specifying a field and checks if it's a custom field.void
void
generateJavaFldFile
(String directory, String packageName) void
getIcon()
static ImageIcon
getIcon
(int index) Changes Portal-style naming to Java style, i.e.int
static int
getTypeIndex
(String typeString) static String
getTypeString
(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:
clone
in classObject
- Throws:
CloneNotSupportedException
-
createFieldArray
protected FList createFieldArray(String name, int number, int type, String descr) throws EBufException - Throws:
EBufException
-
getNumber
- Overrides:
getNumber
in classDDBase
- Throws:
EBufException
-
getTypeIndex
public int getTypeIndex()- Overrides:
getTypeIndex
in classDDBase
-
getTypeString
- Overrides:
getTypeString
in classDDBase
-
getJavaTypeString
-
getIcon
-
generateJavaFldFile
public void generateJavaFldFile(String directory, String packageName) throws EBufException, IOException - Throws:
EBufException
IOException
-
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
-