Class DbColumnInfo


  • public final class DbColumnInfo
    extends Object
    Column data in the database in form that is needed for Celesta.
    • Field Detail

      • SEQUENCE_NEXT_VAL_PATTERN

        public static final String SEQUENCE_NEXT_VAL_PATTERN
        Pattern for getting auto incremented value from a sequence.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DbColumnInfo

        public DbColumnInfo()
    • Method Detail

      • getName

        public String getName()
        Returns column name.
      • getType

        public Class<? extends Column<?>> getType()
        Returns column type.
      • isNullable

        public boolean isNullable()
        Whether column is nullable.
      • getDefaultValue

        public String getDefaultValue()
        Column default value.
      • getLength

        public int getLength()
        Column length.
      • isMax

        public boolean isMax()
      • setName

        public void setName​(String name)
        Sets column name.
        Parameters:
        name - column name
      • setType

        public void setType​(Class<? extends Column<?>> type)
        Sets column type.
        Parameters:
        type - column type
      • setNullable

        public void setNullable​(boolean nullable)
        Sets if column is nullable.
        Parameters:
        nullable - true if column is nullable otherwise false
      • setDefaultValue

        public void setDefaultValue​(String defaultValue)
        Sets column default value.
        Parameters:
        defaultValue - column default value
      • setLength

        public void setLength​(int length)
        Sets column length.
        Parameters:
        length - column length
      • getScale

        public int getScale()
      • setScale

        public void setScale​(int scale)
      • setMax

        public void setMax​(boolean max)
      • reflects

        public boolean reflects​(Column<?> value)