public class Column extends Object implements Selectable, Serializable, Cloneable
Modifier and Type | Method and Description |
---|---|
String |
checkConstraint() |
Column |
clone()
Shallow copy, the value is not copied
|
boolean |
equals(Column column) |
boolean |
equals(Object object) |
String |
getAlias(Dialect dialect) |
String |
getAlias(Dialect dialect,
Table table)
Generate a column alias that is unique across multiple tables
|
String |
getCanonicalName() |
String |
getCheckConstraint() |
String |
getComment() |
String |
getCustomRead() |
String |
getCustomReadExpression()
Any custom read expression for this selectable.
|
String |
getCustomWrite() |
String |
getCustomWriteExpression()
Any custom write expression for this selectable.
|
String |
getDefaultValue() |
Long |
getLength() |
String |
getName() |
Integer |
getPrecision() |
String |
getQuotedName()
returns quoted name as it would be in the mapping file.
|
String |
getQuotedName(Dialect d) |
String |
getReadExpr(Dialect dialect) |
Integer |
getScale() |
String |
getSqlType() |
String |
getSqlType(Dialect dialect,
Mapping mapping) |
Integer |
getSqlTypeCode()
Returns the underlying columns SqlTypeCode.
|
int |
getSqlTypeCode(Mapping mapping) |
String |
getTemplate(Dialect dialect,
SqmFunctionRegistry functionRegistry) |
String |
getText()
The selectable's "canonical" text representation
|
String |
getText(Dialect d)
The selectable's text representation accounting for the Dialect's
quoting, if quoted
|
int |
getTypeIndex() |
Value |
getValue() |
String |
getWriteExpr() |
boolean |
hasCheckConstraint() |
boolean |
hasCustomRead() |
int |
hashCode() |
boolean |
isFormula()
Does this selectable represent a formula?
true indicates
it is a formula; false indicates it is a physical column |
boolean |
isNullable() |
boolean |
isQuoted() |
boolean |
isUnique() |
void |
setCheckConstraint(String checkConstraint) |
void |
setComment(String comment) |
void |
setCustomRead(String customRead) |
void |
setCustomWrite(String customWrite) |
void |
setDefaultValue(String defaultValue) |
void |
setLength(Integer length) |
void |
setLength(Long length) |
void |
setName(String name) |
void |
setNullable(boolean nullable) |
void |
setPrecision(Integer precision) |
void |
setResolvedCustomRead(String customRead) |
void |
setScale(Integer scale) |
void |
setSqlType(String sqlType) |
void |
setSqlTypeCode(Integer typeCode) |
void |
setTypeIndex(int typeIndex) |
void |
setUnique(boolean unique) |
void |
setValue(Value value) |
String |
toString() |
public Column()
public Column(String columnName)
public Long getLength()
public void setLength(Long length)
public void setLength(Integer length)
public Value getValue()
public void setValue(Value value)
public String getName()
public void setName(String name)
public String getQuotedName()
public String getAlias(Dialect dialect)
getAlias
in interface Selectable
public String getAlias(Dialect dialect, Table table)
getAlias
in interface Selectable
public boolean isNullable()
public void setNullable(boolean nullable)
public int getTypeIndex()
public void setTypeIndex(int typeIndex)
public boolean isUnique()
public boolean equals(Column column)
public int getSqlTypeCode(Mapping mapping) throws MappingException
MappingException
public Integer getSqlTypeCode()
public void setSqlTypeCode(Integer typeCode)
public String getSqlType(Dialect dialect, Mapping mapping) throws HibernateException
HibernateException
public String getSqlType()
public void setSqlType(String sqlType)
public void setUnique(boolean unique)
public boolean isQuoted()
public String getCheckConstraint()
public void setCheckConstraint(String checkConstraint)
public boolean hasCheckConstraint()
public String checkConstraint()
public String getTemplate(Dialect dialect, SqmFunctionRegistry functionRegistry)
getTemplate
in interface Selectable
public boolean hasCustomRead()
public String getWriteExpr()
public boolean isFormula()
Selectable
true
indicates
it is a formula; false
indicates it is a physical columnisFormula
in interface Selectable
public String getText(Dialect d)
Selectable
getText
in interface Selectable
public String getText()
Selectable
getText
in interface Selectable
public String getCustomReadExpression()
Selectable
getCustomReadExpression
in interface Selectable
ColumnTransformer
public String getCustomWriteExpression()
Selectable
getCustomWriteExpression
in interface Selectable
ColumnTransformer
public Integer getPrecision()
public void setPrecision(Integer precision)
public Integer getScale()
public void setScale(Integer scale)
public String getComment()
public void setComment(String comment)
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
public String getCustomWrite()
public void setCustomWrite(String customWrite)
public String getCustomRead()
public void setResolvedCustomRead(String customRead)
public void setCustomRead(String customRead)
public String getCanonicalName()
Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.