org.nuxeo.ecm.platform.tag.sql
Class Column
java.lang.Object
org.nuxeo.ecm.platform.tag.sql.Column
- All Implemented Interfaces:
- Serializable
public class Column
- extends Object
- implements Serializable
An SQL column.
- Author:
- mcedica
- See Also:
- Serialized Form
Constructor Summary |
Column(String name,
int sqlType)
Creates a new column with the given name and SQL type. |
Column
public Column(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 String getName()
getQuotedName
public 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 String getDefaultValue()
setDefaultValue
public void setDefaultValue(String defaultValue)
getSqlTypeString
public String getSqlTypeString(Dialect dialect)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011 Nuxeo SAS. All Rights Reserved.