org.nuxeo.ecm.directory.sql.repository
Class Column
java.lang.Object
org.nuxeo.ecm.directory.sql.repository.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(String name,
int sqlType,
String key)
Creates a new column with the given name and SQL type. |
Column
public Column(String name,
int sqlType,
String key)
- Creates a new column with the given name and SQL type.
- Parameters:
name
- the column name.sqlType
- the SQL type.key
- the associated field name.
getName
public String getName()
getQuotedName
public String getQuotedName(Dialect dialect)
getSqlType
public int getSqlType()
getKey
public String getKey()
setIdentity
public void setIdentity(boolean identity)
isIdentity
public boolean isIdentity()
setPrimary
public void setPrimary(boolean primary)
isPrimary
public boolean isPrimary()
getLength
public int getLength()
setLength
public void setLength(int length)
getPrecision
public int getPrecision()
setPrecision
public void setPrecision(int scale)
getScale
public int getScale()
setScale
public void setScale(int scale)
setNullable
public void setNullable(boolean nullable)
isNullable
public boolean isNullable()
getDefaultValue
public String getDefaultValue()
setDefaultValue
public void setDefaultValue(String defaultValue)
getSqlTypeString
public String getSqlTypeString(Dialect dialect)
getFromResultSet
public Serializable getFromResultSet(ResultSet rs,
int columnIndex)
throws SQLException
- Throws:
SQLException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011 Nuxeo SAS. All Rights Reserved.