Package ru.curs.celesta.dbutils.meta
Class DbColumnInfo
java.lang.Object
ru.curs.celesta.dbutils.meta.DbColumnInfo
Column data in the database in form that is needed for Celesta.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPattern for getting auto incremented value from a sequence. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionColumn default value.intColumn length.getName()Returns column name.intgetScale()getType()Returns column type.booleanisMax()booleanWhether column is nullable.booleanvoidsetDefaultValue(String defaultValue) Sets column default value.voidsetLength(int length) Sets column length.voidsetMax(boolean max) voidSets column name.voidsetNullable(boolean nullable) Sets if column is nullable.voidsetScale(int scale) voidSets column type.
-
Field Details
-
SEQUENCE_NEXT_VAL_PATTERN
Pattern for getting auto incremented value from a sequence.- See Also:
-
-
Constructor Details
-
DbColumnInfo
public DbColumnInfo()
-
-
Method Details
-
getName
Returns column name. -
getType
Returns column type. -
isNullable
public boolean isNullable()Whether column is nullable. -
getDefaultValue
Column default value. -
getLength
public int getLength()Column length. -
isMax
public boolean isMax() -
setName
Sets column name.- Parameters:
name- column name
-
setType
Sets column type.- Parameters:
type- column type
-
setNullable
public void setNullable(boolean nullable) Sets if column is nullable.- Parameters:
nullable-trueif column is nullable otherwisefalse
-
setDefaultValue
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
-