public class Column extends Object implements Serializable
column
.Modifier and Type | Field and Description |
---|---|
protected Dialect |
dialect |
protected String |
physicalName |
protected Table |
table |
Constructor and Description |
---|
Column(Column column,
Table table)
Creates a column from an existing column and an aliased table.
|
Column(Table table,
String physicalName,
ColumnType type,
String key)
Creates a new column with the given name and type.
|
Modifier and Type | Method and Description |
---|---|
ColumnType |
getBaseType() |
String |
getDefaultValue() |
String |
getForeignKey() |
Table |
getForeignTable() |
String |
getFreeVariableSetter() |
Serializable |
getFromResultSet(ResultSet rs,
int index) |
String |
getFullQuotedName() |
int |
getJdbcBaseType() |
int |
getJdbcType() |
String |
getKey() |
String |
getPhysicalName() |
String |
getQuotedName() |
String |
getSqlBaseTypeString() |
String |
getSqlTypeString() |
Table |
getTable() |
ColumnType |
getType() |
boolean |
isArray() |
boolean |
isIdentity() |
boolean |
isNullable() |
boolean |
isOpaque() |
boolean |
isPrimary() |
void |
setDefaultValue(String defaultValue) |
void |
setIdentity(boolean identity) |
boolean |
setJdbcType(int actual,
String actualName,
int actualSize) |
void |
setNullable(boolean nullable) |
void |
setPrimary(boolean primary) |
void |
setReferences(Table foreignTable,
String foreignKey) |
void |
setToPreparedStatement(PreparedStatement ps,
int index,
Serializable value) |
String |
toString() |
protected final String physicalName
public Column(Table table, String physicalName, ColumnType type, String key)
table
- the column's tablephysicalName
- the column physical nametype
- the column's typekey
- the associated field namepublic String getPhysicalName()
public String getQuotedName()
public String getFullQuotedName()
public int getJdbcType()
public int getJdbcBaseType()
public ColumnType getType()
public ColumnType getBaseType()
public String getFreeVariableSetter()
public boolean isArray()
public boolean isOpaque()
public boolean setJdbcType(int actual, String actualName, int actualSize)
public void setIdentity(boolean identity)
public boolean isIdentity()
public void setPrimary(boolean primary)
public boolean isPrimary()
public void setNullable(boolean nullable)
public boolean isNullable()
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
public void setReferences(Table foreignTable, String foreignKey)
public Table getForeignTable()
public String getForeignKey()
public String getSqlTypeString()
public String getSqlBaseTypeString()
public void setToPreparedStatement(PreparedStatement ps, int index, Serializable value) throws SQLException
SQLException
public Serializable getFromResultSet(ResultSet rs, int index) throws SQLException
SQLException
Copyright © 2017 Nuxeo. All rights reserved.