Elexis API documentation
Version 2.1.6 as of December 11 2011

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.

Author:
James Ahlborn

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 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
 Table toTable(Database db)
          Creates a new Table in the given Database with the currently configured attributes.
 
Methods inherited from class java.lang.Object
equals, 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.


setEscapeIdentifiers

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


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 API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis