|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The IFieldDescriptor inteface defines entity fields (often corresponds to columns in relational databases) and their properties in the CEL framework. Note tha fields are aware of what entity descriptor the are part of and the relations they are a component in.
Field Summary | |
static int |
AUTOGEN
Flag that states if the field is autogenerated or not. |
static int |
HIDDEN_FIELD
This flag defines the field as hidden meaning that data of the fields type should never be displayed for the end-user. |
static int |
HINT_FIELD
This flag states if the field is suitable hint field for the entity it is a part of for the end-user. |
static int |
IDENTITY_FIELD
Constant used to define that the field is a part of the entity´s identity (primary key in a relational database). |
static int |
INDEXED
Constant used to state if the field is a preferred field to qualify on. |
static int |
NAME_FIELD
This flag states if the field is suitable name field to define the identity of the entity it is a part of for the end-user. |
static int |
NATURAL_ORDER
Constant used to define the natural order for the entities it is a part of. |
static int |
OVERVIEW_FIELD
This flag states that the field is suitable for limited overview of the entity it is a part of. |
static int |
READ_ONLY_FIELD
This flag defines the field as read-only meaning that data of the fields type should never be edited by the end-user. |
static int |
REQUIRED
Constant used to define if the field is required and allows null values or not. |
Method Summary | |
boolean |
canValidate(IDataProvider dataProvider)
This method returns true if the called field descriptor can validate data described by the field in the context of the provided IDataProvider object. |
java.lang.String |
getCodeName()
Return the code name for the field. |
DataType |
getDataType()
Returns the data type for the field. |
java.lang.Object |
getDefaultValue()
Return the default value for the field or null if none is set. |
java.lang.String |
getDisplayName()
Returns the display name for the field. |
IEntityDescriptor |
getEntityDescriptor()
Access method that returns the entity descriptor that the described field is part of. |
java.util.Iterator |
getFieldRelations()
Access method that returns an iterator for all IFieldRelation objects that the called field descripyor is a part of. |
int |
getLength()
Returns the length of the data type if the type is a scalar type. |
IFieldRelation |
getReferenceFieldRelation()
Access method that returns the field relation that the called field is a reference to. |
java.lang.String |
getSourceName()
Returns the source name for the field. |
boolean |
isAutoGenerated()
Access method that returns true if the field is autogenerated or not. |
boolean |
isHiddenField()
Access method that returns true if the field is hidden, meaning that data of the fields type should never be displayed for the end-user. |
boolean |
isHintField()
Access method that returns true if the field is a suitable hint field for the entity it is a part of for the end-user. |
boolean |
isIdentityField()
Access method that returns true if the field is a part of the entity´s identity (primary key in a relational database). |
boolean |
isIndexed()
Access method that returns true if the field is a preferred field to qualify on. |
boolean |
isNameField()
Access method that returns true if the field is suitable name field to define the identify of the entity it is a part of for the end-user. |
boolean |
isNaturalOrder()
Access method that returns true if the field is the natural order field for the entities it is a part of. |
boolean |
isOverviewField()
Access method that returns true if the field is suitable for limited overview of the entity it is a part of. |
boolean |
isReadOnly()
Access method that returns true if the field as read-only meaning that data of the fields type should never be edited by the end-user. |
boolean |
isReferenceField()
Access method that returns true if the field is apart of an entity reference. |
boolean |
isRequired()
Access method that returns true if the field is required and allows null values or not. |
ValidationResult |
validateData(java.lang.Object data,
IDataProvider dataProvider)
This method validates the provided data object as described by the called field descriptor in the context of the provided IDataProvider object. |
Field Detail |
public static final int IDENTITY_FIELD
public static final int NATURAL_ORDER
public static final int REQUIRED
public static final int INDEXED
public static final int AUTOGEN
public static final int NAME_FIELD
public static final int OVERVIEW_FIELD
public static final int HINT_FIELD
public static final int HIDDEN_FIELD
public static final int READ_ONLY_FIELD
Method Detail |
public java.lang.String getCodeName()
public java.lang.String getSourceName()
public java.lang.String getDisplayName()
public DataType getDataType()
public int getLength()
public java.lang.Object getDefaultValue()
public boolean isIdentityField()
public boolean isNaturalOrder()
public boolean isRequired()
public boolean isIndexed()
public boolean isAutoGenerated()
public boolean isNameField()
public boolean isOverviewField()
public boolean isHintField()
public boolean isHiddenField()
public boolean isReadOnly()
public boolean isReferenceField()
public IEntityDescriptor getEntityDescriptor()
public boolean canValidate(IDataProvider dataProvider)
public ValidationResult validateData(java.lang.Object data, IDataProvider dataProvider)
public IFieldRelation getReferenceFieldRelation()
public java.util.Iterator getFieldRelations()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |