Class ModelFieldType

java.lang.Object
org.ofbiz.core.entity.model.ModelFieldType

public class ModelFieldType extends Object
Generic Entity - FieldType model class
Since:
2.0
Version:
$Revision: 1.1 $
Author:
David E. Jones
  • Field Details

    • type

      protected String type
      The type of the Field
    • javaType

      protected String javaType
      The java-type of the Field
    • sqlType

      protected String sqlType
      The sql-type of the Field
    • sqlTypeAlias

      protected String sqlTypeAlias
      The sql-type-alias of the Field, this is optional
    • validators

      protected List<String> validators
      validators to be called when an update is done
  • Constructor Details

    • ModelFieldType

      public ModelFieldType()
      Default Constructor
    • 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
    • getSqlType

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

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

      public List<String> 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