org.nuxeo.ecm.core.storage.sql.jdbc.db
Class Column
java.lang.Object
org.nuxeo.ecm.core.storage.sql.jdbc.db.Column
- All Implemented Interfaces:
- Serializable
public class Column
- extends Object
- implements Serializable
An SQL column
.
- Author:
- Florent Guillaume
- See Also:
- Serialized Form
Column
public Column(Table table,
String physicalName,
ColumnType type,
String key)
- Creates a new column with the given name and type.
- Parameters:
table
- the column's tablephysicalName
- the column physical nametype
- the column's typekey
- the associated field name
Column
public Column(Column column,
Table table)
- Creates a column from an existing column and an aliased table.
getTable
public Table getTable()
getPhysicalName
public String getPhysicalName()
getQuotedName
public String getQuotedName()
getFullQuotedName
public String getFullQuotedName()
getJdbcType
public int getJdbcType()
getType
public ColumnType getType()
getFreeVariableSetter
public String getFreeVariableSetter()
isOpaque
public boolean isOpaque()
setJdbcType
public boolean setJdbcType(int actual,
String actualName,
int actualSize)
getKey
public String getKey()
setIdentity
public void setIdentity(boolean identity)
isIdentity
public boolean isIdentity()
setPrimary
public void setPrimary(boolean primary)
isPrimary
public boolean isPrimary()
setNullable
public void setNullable(boolean nullable)
isNullable
public boolean isNullable()
getDefaultValue
public String getDefaultValue()
setDefaultValue
public void setDefaultValue(String defaultValue)
setReferences
public void setReferences(Table foreignTable,
String foreignKey)
getForeignTable
public Table getForeignTable()
getForeignKey
public String getForeignKey()
getSqlTypeString
public String getSqlTypeString()
setToPreparedStatement
public void setToPreparedStatement(PreparedStatement ps,
int index,
Serializable value)
throws SQLException
- Throws:
SQLException
getFromResultSet
public Serializable getFromResultSet(ResultSet rs,
int index)
throws SQLException
- Throws:
SQLException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011 Nuxeo SAS. All Rights Reserved.