Package org.apache.ofbiz.entity.model
Class ModelFieldType
- java.lang.Object
-
- org.apache.ofbiz.entity.model.ModelFieldType
-
- All Implemented Interfaces:
java.io.Serializable
public class ModelFieldType extends java.lang.Object implements java.io.Serializable
Generic Entity - FieldType model class- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
javaType
The java-type of the Fieldprotected JdbcValueHandler<?>
jdbcValueHandler
The JDBC value handler for this Fieldstatic java.lang.String
module
protected java.lang.String
sqlType
The sql-type of the Fieldprotected java.lang.String
sqlTypeAlias
The sql-type-alias of the Field, this is optionalprotected java.lang.String
type
The type of the Field
-
Constructor Summary
Constructors Constructor Description ModelFieldType()
Default ConstructorModelFieldType(org.w3c.dom.Element fieldTypeElement)
XML Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getJavaType()
The java-type of the FieldJdbcValueHandler<?>
getJdbcValueHandler()
Returns the JDBC value handler for this field typejava.lang.String
getSqlType()
The sql-type of the Fieldjava.lang.String
getSqlTypeAlias()
The sql-type-alias of the Fieldjava.lang.String
getType()
The type of the Fieldint
stringLength()
A simple function to derive the max length of a String created from the field value, based on the sql-type
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
type
protected java.lang.String type
The type of the Field
-
javaType
protected java.lang.String javaType
The java-type of the Field
-
jdbcValueHandler
protected JdbcValueHandler<?> jdbcValueHandler
The JDBC value handler for this Field
-
sqlType
protected java.lang.String sqlType
The sql-type of the Field
-
sqlTypeAlias
protected java.lang.String sqlTypeAlias
The sql-type-alias of the Field, this is optional
-
-
Method Detail
-
getType
public java.lang.String getType()
The type of the Field
-
getJavaType
public java.lang.String getJavaType()
The java-type of the Field
-
getJdbcValueHandler
public JdbcValueHandler<?> getJdbcValueHandler()
Returns the JDBC value handler for this field type
-
getSqlType
public java.lang.String getSqlType()
The sql-type of the Field
-
getSqlTypeAlias
public java.lang.String getSqlTypeAlias()
The sql-type-alias of the Field
-
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
-
-