Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.directory.sql.repository
Class Column

java.lang.Object
  extended by 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.
 
Method Summary
 String getDefaultValue()
           
 Serializable getFromResultSet(ResultSet rs, int columnIndex)
           
 String getKey()
           
 int getLength()
           
 String getName()
           
 int getPrecision()
           
 String getQuotedName(Dialect dialect)
           
 int getScale()
           
 int getSqlType()
           
 String getSqlTypeString(Dialect dialect)
           
 boolean isIdentity()
           
 boolean isNullable()
           
 boolean isPrimary()
           
 void setDefaultValue(String defaultValue)
           
 void setIdentity(boolean identity)
           
 void setLength(int length)
           
 void setNullable(boolean nullable)
           
 void setPrecision(int scale)
           
 void setPrimary(boolean primary)
           
 void setScale(int scale)
           
 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,
              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.
Method Detail

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

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.