org.nuxeo.ecm.platform.tag.sql
Class Column
java.lang.Object
org.nuxeo.ecm.platform.tag.sql.Column
- All Implemented Interfaces:
- java.io.Serializable
public class Column
- extends java.lang.Object
- implements java.io.Serializable
An SQL column.
- Author:
- mcedica
- See Also:
- Serialized Form
Constructor Summary |
Column(java.lang.String name,
int sqlType)
Creates a new column with the given name and SQL type. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Column
public Column(java.lang.String name,
int sqlType)
- Creates a new column with the given name and SQL type.
- Parameters:
name
- the column name.sqlType
- the SQL type.
getName
public java.lang.String getName()
getQuotedName
public java.lang.String getQuotedName(Dialect dialect)
getSqlType
public int getSqlType()
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)
getSqlTypeString
public java.lang.String getSqlTypeString(Dialect dialect)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2010 Nuxeo SAS. All Rights Reserved.