Class Column

    • Field Detail

      • table

        protected final Table table
      • dialect

        protected final Dialect dialect
      • physicalName

        protected final String physicalName
    • Constructor Detail

      • Column

        public Column​(Table table,
                      String physicalName,
                      ColumnType type,
                      String key)
        Creates a new column with the given name and type.
        Parameters:
        table - the column's table
        physicalName - the column physical name
        type - the column's type
        key - the associated field name
      • Column

        public Column​(Column column,
                      Table table)
        Creates a column from an existing column and an aliased table.
    • Method Detail

      • getTable

        public Table getTable()
      • getPhysicalName

        public String getPhysicalName()
      • getQuotedName

        public String getQuotedName()
      • getFullQuotedName

        public String getFullQuotedName()
      • getJdbcType

        public int getJdbcType()
      • getJdbcBaseType

        public int getJdbcBaseType()
      • getFreeVariableSetter

        public String getFreeVariableSetter()
      • isArray

        public boolean isArray()
      • isOpaque

        public boolean isOpaque()
      • checkJdbcType

        public String checkJdbcType​(int actual,
                                    String actualName,
                                    int actualSize)
      • getJDBCTypeName

        protected static String getJDBCTypeName​(int expected)
      • getKey

        public String getKey()
      • setIdentity

        public void setIdentity​(boolean identity)
      • isIdentity

        public boolean isIdentity()
      • setPrimary

        public void setPrimary​(boolean primary)
      • isPrimary

        public boolean isPrimary()
      • setNullable

        public void setNullable​(boolean nullable)
      • isNullable

        public boolean isNullable()
      • getDefaultValue

        public String getDefaultValue()
      • setDefaultValue

        public void setDefaultValue​(String defaultValue)
      • setReferences

        public void setReferences​(Table foreignTable,
                                  String foreignKey)
      • getForeignTable

        public Table getForeignTable()
      • getForeignKey

        public String getForeignKey()
      • getSqlTypeString

        public String getSqlTypeString()
      • getSqlBaseTypeString

        public String getSqlBaseTypeString()