Nuxeo Enterprise Platform 5.4

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

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

public class Table
extends java.lang.Object
implements java.io.Serializable

Table creation manager.

Author:
mcedica
See Also:
Serialized Form

Constructor Summary
Table(java.lang.String name)
          Creates a new empty table.
 
Method Summary
 void addColumn(Column column)
           
 java.util.List<Column> getColumns()
           
 java.lang.String getCreateSql(Dialect dialect)
          Computes the SQL statement to create the table.
 java.lang.String getName()
           
 java.lang.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(java.lang.String name)
Creates a new empty table.

Parameters:
name - the table name.
Method Detail

getName

public java.lang.String getName()

getQuotedName

public java.lang.String getQuotedName(Dialect dialect)

getColumns

public java.util.List<Column> getColumns()

addColumn

public void addColumn(Column column)

getCreateSql

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

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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.