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:
- java.io.Serializable
public class Column
- extends java.lang.Object
- implements java.io.Serializable
An SQL column
.
- Author:
- Florent Guillaume
- See Also:
- Serialized Form
Constructor Summary |
Column(Column column,
Table table)
Creates a column from an existing column and an aliased table. |
Column(Table table,
java.lang.String physicalName,
ColumnType type,
java.lang.String key)
Creates a new column with the given name and type. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Column
public Column(Table table,
java.lang.String physicalName,
ColumnType type,
java.lang.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 java.lang.String getPhysicalName()
getQuotedName
public java.lang.String getQuotedName()
getFullQuotedName
public java.lang.String getFullQuotedName()
getJdbcType
public int getJdbcType()
getType
public ColumnType getType()
getFreeVariableSetter
public java.lang.String getFreeVariableSetter()
isOpaque
public boolean isOpaque()
setJdbcType
public boolean setJdbcType(int actual,
java.lang.String actualName,
int actualSize)
getKey
public java.lang.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 java.lang.String getDefaultValue()
setDefaultValue
public void setDefaultValue(java.lang.String defaultValue)
setReferences
public void setReferences(Table foreignTable,
java.lang.String foreignKey)
getForeignTable
public Table getForeignTable()
getForeignKey
public java.lang.String getForeignKey()
getSqlTypeString
public java.lang.String getSqlTypeString()
setToPreparedStatement
public void setToPreparedStatement(java.sql.PreparedStatement ps,
int index,
java.io.Serializable value)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getFromResultSet
public java.io.Serializable getFromResultSet(java.sql.ResultSet rs,
int index)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2010 Nuxeo SAS. All Rights Reserved.