Class ModelFieldType

java.lang.Object
org.apache.ofbiz.entity.model.ModelFieldType
All Implemented Interfaces:
Serializable

public class ModelFieldType extends Object implements Serializable
Generic Entity - FieldType model class
See Also:
  • Constructor Details

    • ModelFieldType

      public ModelFieldType(Element fieldTypeElement)
      XML Constructor
  • Method Details

    • getType

      public String getType()
      The type of the Field
    • getJavaType

      public String getJavaType()
      The java-type of the Field
    • getJdbcValueHandler

      public JdbcValueHandler<?> getJdbcValueHandler()
      Returns the JDBC value handler for this field type
    • getSqlType

      public String getSqlType()
      The sql-type of the Field
    • getSqlTypeAlias

      public 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