com.fatwire.gst.foundation.facade.sql.table
Class TableDef
java.lang.Object
com.fatwire.gst.foundation.facade.sql.table.TableDef
public class TableDef
- extends Object
The definition of a ContentServer database table
- Author:
- Dolf Dijkstra
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableDef
public TableDef(String name,
String acl,
String type)
- Parameters:
name
- the name of the tableacl
- the acl for the tabletype
- the type of the table
addColumn
public TableDef addColumn(TableColumn col)
- Parameters:
col
- the column to add
- Returns:
- the current TableDef, this.
addColumn
public TableColumn addColumn(String name,
TableColumn.Type type,
boolean primary)
- Adds a column to this table.
- Parameters:
name
- the name of the columntype
- the type of the columnprimary
-
- Returns:
- the added TableColumn.
addColumn
public TableColumn addColumn(String name,
TableColumn.Type type)
- Adds a non primary column to this table.
- Parameters:
name
- type
-
- Returns:
- the added TableColumn.
getColumns
public Iterable<TableColumn> getColumns()
getAcl
public String getAcl()
- Returns:
- the acl value
getName
public String getName()
- Returns:
- the name value
getType
public String getType()
- Returns:
- the type value
Copyright © 2010-2013 Oracle Corporation. All Rights Reserved.