Package org.ofbiz.core.entity.model
Class ModelFieldType
java.lang.Object
org.ofbiz.core.entity.model.ModelFieldType
Generic Entity - FieldType model class
- Since:
- 2.0
- Version:
- $Revision: 1.1 $
- Author:
- David E. Jones
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault ConstructorModelFieldType(Element fieldTypeElement) XML Constructor -
Method Summary
Modifier and TypeMethodDescriptionThe java-type of the FieldThe sql-type of the FieldThe sql-type-alias of the FieldgetType()The type of the Fieldvalidators to be called when an update is doneintA simple function to derive the max length of a String created from the field value, based on the sql-type
-
Field Details
-
type
The type of the Field -
javaType
The java-type of the Field -
sqlType
The sql-type of the Field -
sqlTypeAlias
The sql-type-alias of the Field, this is optional -
validators
validators to be called when an update is done
-
-
Constructor Details
-
ModelFieldType
public ModelFieldType()Default Constructor -
ModelFieldType
XML Constructor
-
-
Method Details
-
getType
The type of the Field -
getJavaType
The java-type of the Field -
getSqlType
The sql-type of the Field -
getSqlTypeAlias
The sql-type-alias of the Field -
getValidators
validators to be called when an update is done -
stringLength
public int stringLength()A simple function to derive the max length of a String created from the field value, based on the sql-type- Returns:
- max length of a String representing the Field value
-