org.nuxeo.ecm.platform.tag.sql
Class Table
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Table
public Table(java.lang.String name)
- Creates a new empty table.
- Parameters:
name
- the table name.
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.
Copyright © 2010 Nuxeo SAS. All Rights Reserved.