Class AnnotatedColumn

    • Constructor Detail

      • AnnotatedColumn

        public AnnotatedColumn()
    • Method Detail

      • setTable

        public void setTable​(Table table)
      • getLogicalColumnName

        public String getLogicalColumnName()
      • getSqlType

        public String getSqlType()
      • getLength

        public Long getLength()
      • getPrecision

        public Integer getPrecision()
      • getScale

        public Integer getScale()
      • isUnique

        public boolean isUnique()
      • isFormula

        public boolean isFormula()
      • getFormulaString

        public String getFormulaString()
      • getExplicitTableName

        public String getExplicitTableName()
      • setExplicitTableName

        public void setExplicitTableName​(String explicitTableName)
      • setFormula

        public void setFormula​(String formula)
      • isImplicit

        public boolean isImplicit()
      • setInsertable

        public void setInsertable​(boolean insertable)
      • setUpdatable

        public void setUpdatable​(boolean updatable)
      • setImplicit

        public void setImplicit​(boolean implicit)
      • setSqlType

        public void setSqlType​(String sqlType)
      • setLength

        public void setLength​(Long length)
      • setPrecision

        public void setPrecision​(Integer precision)
      • setScale

        public void setScale​(Integer scale)
      • setLogicalColumnName

        public void setLogicalColumnName​(String logicalColumnName)
      • setPropertyName

        public void setPropertyName​(String propertyName)
      • getPropertyName

        public String getPropertyName()
      • setUnique

        public void setUnique​(boolean unique)
      • isNullable

        public boolean isNullable()
      • getDefaultValue

        public String getDefaultValue()
      • getCheckConstraint

        public String getCheckConstraint()
      • setDefaultValue

        public void setDefaultValue​(String defaultValue)
      • setCheckConstraint

        public void setCheckConstraint​(String checkConstraint)
      • getComment

        public String getComment()
      • setComment

        public void setComment​(String comment)
      • getGeneratedAs

        public String getGeneratedAs()
      • bind

        public void bind()
      • initMappingColumn

        protected void initMappingColumn​(String columnName,
                                         String propertyName,
                                         Long length,
                                         Integer precision,
                                         Integer scale,
                                         boolean nullable,
                                         String sqlType,
                                         boolean unique,
                                         boolean applyNamingStrategy)
      • isNameDeferred

        public boolean isNameDeferred()
      • redefineColumnName

        public void redefineColumnName​(String columnName,
                                       String propertyName,
                                       boolean applyNamingStrategy)
      • getName

        public String getName()
      • getMappingColumn

        public Column getMappingColumn()
      • isInsertable

        public boolean isInsertable()
      • isUpdatable

        public boolean isUpdatable()
      • setNullable

        public void setNullable​(boolean nullable)
      • setPropertyHolder

        public void setPropertyHolder​(PropertyHolder propertyHolder)
      • setMappingColumn

        protected void setMappingColumn​(Column mappingColumn)
      • linkWithValue

        public void linkWithValue​(SimpleValue value)
      • addColumnBinding

        protected void addColumnBinding​(SimpleValue value)
      • getTable

        public Table getTable()
        Find appropriate table of the column. It can come from a secondary table or from the main table of the persistent class
        Returns:
        appropriate table
        Throws:
        AnnotationException - missing secondary table
      • isSecondary

        public boolean isSecondary()
      • getJoin

        public Join getJoin()
      • forceNotNull

        public void forceNotNull()
      • checkPropertyConsistency

        public static void checkPropertyConsistency​(AnnotatedColumn[] columns,
                                                    String propertyName)
      • addIndex

        public void addIndex​(Index index,
                             boolean inSecondPass)