Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.storage.sql.jdbc.db
Class Column

java.lang.Object
  extended by 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

Constructor Summary
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.
 
Method Summary
 String getDefaultValue()
           
 String getForeignKey()
           
 Table getForeignTable()
           
 String getFreeVariableSetter()
           
 Serializable getFromResultSet(ResultSet rs, int index)
           
 String getFullQuotedName()
           
 int getJdbcType()
           
 String getKey()
           
 String getPhysicalName()
           
 String getQuotedName()
           
 String getSqlTypeString()
           
 Table getTable()
           
 ColumnType getType()
           
 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()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 table
physicalName - the column physical name
type - the column's type
key - the associated field name

Column

public Column(Column column,
              Table table)
Creates a column from an existing column and an aliased table.

Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.