com.fatwire.gst.foundation.facade.sql.table
Class TableDef

java.lang.Object
  extended by com.fatwire.gst.foundation.facade.sql.table.TableDef

public class TableDef
extends Object

The definition of a ContentServer database table

Author:
Dolf Dijkstra

Constructor Summary
TableDef(String name, String acl, String type)
           
 
Method Summary
 TableColumn addColumn(String name, TableColumn.Type type)
          Adds a non primary column to this table.
 TableColumn addColumn(String name, TableColumn.Type type, boolean primary)
          Adds a column to this table.
 TableDef addColumn(TableColumn col)
           
 String getAcl()
           
 Iterable<TableColumn> getColumns()
           
 String getName()
           
 String getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableDef

public TableDef(String name,
                String acl,
                String type)
Parameters:
name - the name of the table
acl - the acl for the table
type - the type of the table
Method Detail

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 column
type - the type of the column
primary -
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.