Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.tag.sql
Class Column

java.lang.Object
  extended by 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.
 
Method Summary
 String getDefaultValue()
           
 String getName()
           
 String getQuotedName(Dialect dialect)
           
 int getSqlType()
           
 String getSqlTypeString(Dialect dialect)
           
 boolean isNullable()
           
 boolean isPrimary()
           
 void setDefaultValue(String defaultValue)
           
 void setNullable(boolean nullable)
           
 void setPrimary(boolean primary)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.