Nuxeo Enterprise Platform 5.4

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

java.lang.Object
  extended by org.nuxeo.ecm.directory.sql.repository.Table
All Implemented Interfaces:
Serializable

public class Table
extends Object
implements Serializable

A SQL table.

Author:
Florent Guillaume
See Also:
Serialized Form

Constructor Summary
Table(String name)
          Creates a new empty table.
 
Method Summary
 void addColumn(Column column)
          Adds a Column to the table.
 Column getColumn(String name)
           
 List<Column> getColumns()
           
 String getCreateSql(Dialect dialect)
          Computes the SQL statement to create the table.
 String getDropSql(Dialect dialect)
          Computes the SQL statement to drop the table.
 String getName()
           
 Column getPrimaryColumn()
           
 String getQuotedName(Dialect dialect)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Table

public Table(String name)
Creates a new empty table.

Parameters:
name - the table name.
Method Detail

getName

public String getName()

getQuotedName

public String getQuotedName(Dialect dialect)

getColumns

public List<Column> getColumns()

addColumn

public void addColumn(Column column)
               throws ConfigurationException
Adds a Column to the table.

Parameters:
column - the column
Throws:
ConfigurationException

getCreateSql

public String getCreateSql(Dialect dialect)
Computes the SQL statement to create the table.

Parameters:
dialect - the dialect.
Returns:
the SQL create string.

getDropSql

public String getDropSql(Dialect dialect)
Computes the SQL statement to drop the table.

Parameters:
dialect - the dialect.
Returns:
the SQL drop string.

getColumn

public Column getColumn(String name)

toString

public String toString()
Overrides:
toString in class Object

getPrimaryColumn

public Column getPrimaryColumn()

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.