public interface ColumnSource extends RelationalValueSource
Contract for source information pertaining to a physical column definition specific to a particular attribute context. <p/> Conceptual note: this really describes a column from the perspective of its binding to an attribute, not necessarily the column itself.
RelationalValueSource.Nature
Modifier and Type | Method and Description |
---|---|
String |
getCheckCondition()
Obtain the specified check constraint condition
|
String |
getComment()
Obtain the specified SQL comment
|
JdbcDataType |
getDatatype()
The deduced (and dialect convertible) type for this column
|
String |
getDefaultValue()
Obtain a specified default value for the column
|
Set<String> |
getIndexConstraintNames() |
String |
getName()
Obtain the name of the column.
|
String |
getReadFragment()
A SQL fragment to apply to the column value on read.
|
SizeSource |
getSizeSource()
Obtain the source for the specified column size.
|
String |
getSqlType()
Obtain the free-hand definition of the column’s type.
|
Set<String> |
getUniqueKeyConstraintNames() |
String |
getWriteFragment()
A SQL fragment to apply to the column value on write.
|
TruthValue |
isNullable()
Is this column nullable?
|
boolean |
isUnique()
Is this column unique?
|
getContainingTableName, getNature
String getName()
Obtain the name of the column.
null
, in which case a naming strategy is applied.String getReadFragment()
A SQL fragment to apply to the column value on read.
String getWriteFragment()
A SQL fragment to apply to the column value on write.
TruthValue isNullable()
Is this column nullable?
true
indicates it is nullable; false
non-nullable.String getDefaultValue()
Obtain a specified default value for the column
String getSqlType()
Obtain the free-hand definition of the column’s type.
JdbcDataType getDatatype()
The deduced (and dialect convertible) type for this column
SizeSource getSizeSource()
Obtain the source for the specified column size.
boolean isUnique()
Is this column unique?
true
indicates it is unique; false
non-unique.String getCheckCondition()
Obtain the specified check constraint condition
String getComment()
Obtain the specified SQL comment
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.