Package org.ofbiz.core.entity.model
Class ModelField
java.lang.Object
org.ofbiz.core.entity.model.ModelField
Generic Entity - Field model class
- Since:
- 2.0
- Version:
- $Revision: 1.1 $
- Author:
- David E. Jones
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault ConstructorModelField(DatabaseUtil.ColumnCheckInfo ccInfo, ModelFieldTypeReader modelFieldTypeReader) DB Names ConstructorModelField(Element fieldElement) XML Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidaddValidator(String validator) The col-name of the FieldbooleangetIsPk()boolean which specifies whether or not the Field is a Primary KeygetName()The name of the FieldgetType()The type of the FieldgetValidator(int index) validators to be called when an update is doneintremoveValidator(int index) voidsetColName(String colName) voidsetIsPk(boolean isPk) voidvoid
-
Field Details
-
name
The name of the Field -
type
The type of the Field -
colName
The col-name of the Field -
isPk
protected boolean isPkboolean which specifies whether or not the Field is a Primary Key -
validators
validators to be called when an update is done
-
-
Constructor Details
-
ModelField
public ModelField()Default Constructor -
ModelField
-
ModelField
XML Constructor -
ModelField
DB Names Constructor
-
-
Method Details
-
getName
The name of the Field -
setName
-
getType
The type of the Field -
setType
-
getColName
The col-name of the Field -
setColName
-
getIsPk
public boolean getIsPk()boolean which specifies whether or not the Field is a Primary Key -
setIsPk
public void setIsPk(boolean isPk) -
getValidator
validators to be called when an update is done -
getValidatorsSize
public int getValidatorsSize() -
addValidator
-
removeValidator
-