Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

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

public class Table
extends Object
implements Serializable

Table creation manager.

Author:
mcedica
See Also:
Serialized Form

Constructor Summary
Table(String name)
          Creates a new empty table.
 
Method Summary
 void addColumn(Column column)
           
 List<Column> getColumns()
           
 String getCreateSql(Dialect dialect)
          Computes the SQL statement to create the table.
 String getName()
           
 String getQuotedName(Dialect dialect)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, 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)

getCreateSql

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

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.