Class 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 Field
      protected JdbcValueHandler<?> jdbcValueHandler
      The JDBC value handler for this Field
      static java.lang.String module  
      protected java.lang.String sqlType
      The sql-type of the Field
      protected java.lang.String sqlTypeAlias
      The sql-type-alias of the Field, this is optional
      protected java.lang.String type
      The type of the Field
    • Constructor Summary

      Constructors 
      Constructor Description
      ModelFieldType()
      Default Constructor
      ModelFieldType​(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 Field
      JdbcValueHandler<?> getJdbcValueHandler()
      Returns the JDBC value handler for this field type
      java.lang.String getSqlType()
      The sql-type of the Field
      java.lang.String getSqlTypeAlias()
      The sql-type-alias of the Field
      java.lang.String getType()
      The type of the Field
      int stringLength()
      A simple function to derive the max length of a String created from the field value, based on the sql-type
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • ModelFieldType

        public ModelFieldType()
        Default Constructor
      • ModelFieldType

        public ModelFieldType​(org.w3c.dom.Element fieldTypeElement)
        XML Constructor
    • 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