public class Column extends AbstractSimpleValue
Value.JdbcCodes
Modifier | Constructor and Description |
---|---|
protected |
Column(TableSpecification table,
int position,
Identifier name) |
protected |
Column(TableSpecification table,
int position,
String name) |
Modifier and Type | Method and Description |
---|---|
String |
getAlias(Dialect dialect)
For any column name, generate an alias that is unique
to that column name, unique across tables, and within
alias size constraints determined by
Dialect.getMaxAliasLength() . |
String |
getCheckCondition() |
Identifier |
getColumnName() |
String |
getComment() |
String |
getDefaultValue() |
String |
getReadFragment() |
Size |
getSize() |
String |
getSqlType() |
String |
getWriteFragment() |
void |
initialize(ColumnRelationalState state,
boolean forceNonNullable,
boolean forceUnique) |
boolean |
isNullable() |
boolean |
isUnique() |
void |
setCheckCondition(String checkCondition) |
void |
setComment(String comment) |
void |
setDefaultValue(String defaultValue) |
void |
setNullable(boolean nullable) |
void |
setReadFragment(String readFragment) |
void |
setSize(Size size) |
void |
setSqlType(String sqlType) |
void |
setUnique(boolean unique) |
void |
setWriteFragment(String writeFragment) |
String |
toLoggableString()
Obtain the string representation of this value usable in log statements.
|
getDatatype, getPosition, getTable, setDatatype, validateJdbcTypes
protected Column(TableSpecification table, int position, String name)
protected Column(TableSpecification table, int position, Identifier name)
public void initialize(ColumnRelationalState state, boolean forceNonNullable, boolean forceUnique)
public Identifier getColumnName()
public boolean isNullable()
public void setNullable(boolean nullable)
public boolean isUnique()
public void setUnique(boolean unique)
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
public String getCheckCondition()
public void setCheckCondition(String checkCondition)
public String getSqlType()
public void setSqlType(String sqlType)
public String getReadFragment()
public void setReadFragment(String readFragment)
public String getWriteFragment()
public void setWriteFragment(String writeFragment)
public String getComment()
public void setComment(String comment)
public Size getSize()
public void setSize(Size size)
public String toLoggableString()
Value
public String getAlias(Dialect dialect)
SimpleValue
Dialect.getMaxAliasLength()
.dialect
- the dialect.Copyright © 2018 JBoss by Red Hat. All rights reserved.