public class TableDef extends Object
Constructor and Description |
---|
TableDef(String name,
String acl,
String type) |
Modifier and Type | Method and Description |
---|---|
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() |
public TableDef addColumn(TableColumn col)
col
- the column to addpublic TableColumn addColumn(String name, TableColumn.Type type, boolean primary)
name
- the name of the columntype
- the type of the columnprimary
- public TableColumn addColumn(String name, TableColumn.Type type)
name
- type
- public Iterable<TableColumn> getColumns()
public String getAcl()
public String getName()
public String getType()
Copyright © 2010-2016 Oracle Corporation. All Rights Reserved.