com.healthmarketscience.jackcess.impl
Class TableCreator

java.lang.Object
  extended by com.healthmarketscience.jackcess.impl.TableMutator
      extended by com.healthmarketscience.jackcess.impl.TableCreator

public class TableCreator
extends TableMutator

Helper class used to maintain state during table creation.

Author:
James Ahlborn
Usage:
Advanced: This class is for advanced/internal use.

Constructor Summary
TableCreator(DatabaseImpl database)
           
 
Method Summary
static int calculateNameLength(String name)
           
 short countNonLongVariableLength()
           
 TableImpl createTable(TableBuilder table)
          Creates the table in the database.
 Charset getCharset()
           
 List<ColumnBuilder> getColumns()
           
 com.healthmarketscience.jackcess.impl.TableMutator.ColumnState getColumnState(ColumnBuilder col)
           
 DatabaseImpl getDatabase()
           
 JetFormat getFormat()
           
 int getIndexCount()
           
 com.healthmarketscience.jackcess.impl.TableMutator.IndexDataState getIndexDataState(IndexBuilder idx)
           
 List<com.healthmarketscience.jackcess.impl.TableMutator.IndexDataState> getIndexDataStates()
           
 List<IndexBuilder> getIndexes()
           
 int getLogicalIndexCount()
           
 List<ColumnBuilder> getLongValueColumns()
           
 String getName()
           
 PageChannel getPageChannel()
           
 int getTdefPageNumber()
           
 int getUmapPageNumber()
           
 boolean hasIndexes()
           
 int reservePageNumber()
           
 
Methods inherited from class com.healthmarketscience.jackcess.impl.TableMutator
getColumnOffsets, getForeignKey, setColumnOffsets
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableCreator

public TableCreator(DatabaseImpl database)
Method Detail

getName

public String getName()

getTdefPageNumber

public int getTdefPageNumber()
Specified by:
getTdefPageNumber in class TableMutator

getUmapPageNumber

public int getUmapPageNumber()

getColumns

public List<ColumnBuilder> getColumns()

getIndexes

public List<IndexBuilder> getIndexes()

hasIndexes

public boolean hasIndexes()

getIndexCount

public int getIndexCount()

getLogicalIndexCount

public int getLogicalIndexCount()

getIndexDataState

public com.healthmarketscience.jackcess.impl.TableMutator.IndexDataState getIndexDataState(IndexBuilder idx)
Specified by:
getIndexDataState in class TableMutator

getIndexDataStates

public List<com.healthmarketscience.jackcess.impl.TableMutator.IndexDataState> getIndexDataStates()

getColumnState

public com.healthmarketscience.jackcess.impl.TableMutator.ColumnState getColumnState(ColumnBuilder col)
Specified by:
getColumnState in class TableMutator

getLongValueColumns

public List<ColumnBuilder> getLongValueColumns()

countNonLongVariableLength

public short countNonLongVariableLength()
Returns:
The number of variable length columns which are not long values found in the list
Usage:
Advanced: This method is for advanced/internal use.

createTable

public TableImpl createTable(TableBuilder table)
                      throws IOException
Creates the table in the database.

Throws:
IOException
Usage:
Advanced: This method is for advanced/internal use.

getDatabase

public DatabaseImpl getDatabase()

getFormat

public JetFormat getFormat()

getPageChannel

public PageChannel getPageChannel()

getCharset

public Charset getCharset()

reservePageNumber

public int reservePageNumber()
                      throws IOException
Throws:
IOException

calculateNameLength

public static int calculateNameLength(String name)


Copyright © 2005–2017 Health Market Science. All rights reserved.