Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013

com.healthmarketscience.jackcess
Class TableBuilder

java.lang.Object
  extended by com.healthmarketscience.jackcess.TableBuilder

public class TableBuilder
extends java.lang.Object

Builder style class for constructing a Column.


Constructor Summary
TableBuilder(java.lang.String name)
           
TableBuilder(java.lang.String name, boolean escapeIdentifiers)
           
 
Method Summary
 TableBuilder addColumn(Column column)
          Adds a Column to the new table.
 TableBuilder addColumn(ColumnBuilder columnBuilder)
          Adds a Column to the new table.
 TableBuilder addIndex(IndexBuilder index)
          Adds an IndexBuilder to the new table.
 TableBuilder escapeName()
          Escapes the new table's name using Database.escapeIdentifier(java.lang.String).
 TableBuilder setEscapeIdentifiers(boolean escapeIdentifiers)
          Sets whether or not subsequently added columns will have their names automatically escaped
 TableBuilder setPrimaryKey(java.lang.String... colNames)
          Sets the names of the primary key columns for this table.
 Table toTable(Database db)
          Creates a new Table in the given Database with the currently configured attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableBuilder

public TableBuilder(java.lang.String name)

TableBuilder

public TableBuilder(java.lang.String name,
                    boolean escapeIdentifiers)
Method Detail

addColumn

public TableBuilder addColumn(Column column)
Adds a Column to the new table.


addColumn

public TableBuilder addColumn(ColumnBuilder columnBuilder)
Adds a Column to the new table.


addIndex

public TableBuilder addIndex(IndexBuilder index)
Adds an IndexBuilder to the new table.


setEscapeIdentifiers

public TableBuilder setEscapeIdentifiers(boolean escapeIdentifiers)
Sets whether or not subsequently added columns will have their names automatically escaped


setPrimaryKey

public TableBuilder setPrimaryKey(java.lang.String... colNames)
Sets the names of the primary key columns for this table. Convenience method for creating a primary key index on a table.


escapeName

public TableBuilder escapeName()
Escapes the new table's name using Database.escapeIdentifier(java.lang.String).


toTable

public Table toTable(Database db)
              throws java.io.IOException
Creates a new Table in the given Database with the currently configured attributes.

Throws:
java.io.IOException

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013