Class AbstractType

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String PARAM_POSTFIX_DECIMALS
      Postfix of decimals parameters for types in ddl.properties file.
      protected static java.lang.String PARAM_POSTFIX_LENGTH
      Postfix of length parameters for types in ddl.properties file.
      protected static java.lang.String PARAM_POSTFIX_PRECISION
      Postfix of precision parameters for types in ddl.properties file.
      protected static java.lang.String PARAM_PREFIX
      Prefix of all parameters for types in ddl.properties file.
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractType​(java.lang.String jdbcType, java.lang.String sqlType)
      Construct a new TypeInfo instance with given Configuration, JDBC type and SQL type.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getJdbcType()
      Get JDBC type.
      java.lang.String getSqlType()
      Get SQL type.
      void merge​(TypeInfo type)
      Merge 2 TypeInfo's.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.castor.ddlgen.typeinfo.TypeInfo

        toDDL
    • Field Detail

      • PARAM_PREFIX

        protected static final java.lang.String PARAM_PREFIX
        Prefix of all parameters for types in ddl.properties file.
        See Also:
        Constant Field Values
      • PARAM_POSTFIX_LENGTH

        protected static final java.lang.String PARAM_POSTFIX_LENGTH
        Postfix of length parameters for types in ddl.properties file.
        See Also:
        Constant Field Values
      • PARAM_POSTFIX_PRECISION

        protected static final java.lang.String PARAM_POSTFIX_PRECISION
        Postfix of precision parameters for types in ddl.properties file.
        See Also:
        Constant Field Values
      • PARAM_POSTFIX_DECIMALS

        protected static final java.lang.String PARAM_POSTFIX_DECIMALS
        Postfix of decimals parameters for types in ddl.properties file.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractType

        public AbstractType​(java.lang.String jdbcType,
                            java.lang.String sqlType)
        Construct a new TypeInfo instance with given Configuration, JDBC type and SQL type.
        Parameters:
        jdbcType - The JDBC type.
        sqlType - The SQL type.
    • Method Detail

      • getJdbcType

        public final java.lang.String getJdbcType()
        Get JDBC type.
        Specified by:
        getJdbcType in interface TypeInfo
        Returns:
        The JDBC type.
      • getSqlType

        public final java.lang.String getSqlType()
        Get SQL type.
        Specified by:
        getSqlType in interface TypeInfo
        Returns:
        The SQL type.