Class Column
java.lang.Object
org.nuxeo.ecm.core.storage.sql.jdbc.db.Column
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DialectPostgreSQL.ArraySubQueryPostgreSQL.ArraySubQueryPostgreSQLColumn
An SQL
column
.- Author:
- Florent Guillaume
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncheckJdbcType
(int actual, String actualName, int actualSize) getFromResultSet
(ResultSet rs, int index) int
int
protected static String
getJDBCTypeName
(int expected) getKey()
getTable()
getType()
boolean
isArray()
boolean
boolean
boolean
isOpaque()
boolean
void
setDefaultValue
(String defaultValue) void
setIdentity
(boolean identity) void
setNullable
(boolean nullable) void
setPrimary
(boolean primary) void
setReferences
(Table foreignTable, String foreignKey) void
setToPreparedStatement
(PreparedStatement ps, int index, Serializable value) toString()
-
Field Details
-
table
-
dialect
-
physicalName
-
-
Constructor Details
-
Column
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
Creates a column from an existing column and an aliased table.
-
-
Method Details
-
getTable
-
getPhysicalName
-
getQuotedName
-
getFullQuotedName
-
getJdbcType
public int getJdbcType() -
getJdbcBaseType
public int getJdbcBaseType() -
getType
-
getBaseType
-
getFreeVariableSetter
-
isArray
public boolean isArray() -
isOpaque
public boolean isOpaque() -
checkJdbcType
-
getJDBCTypeName
-
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
-
setDefaultValue
-
setReferences
-
getForeignTable
-
getForeignKey
-
getSqlTypeString
-
getSqlBaseTypeString
-
setToPreparedStatement
public void setToPreparedStatement(PreparedStatement ps, int index, Serializable value) throws SQLException - Throws:
SQLException
-
getFromResultSet
- Throws:
SQLException
-
toString
-