com.healthmarketscience.jackcess.impl
Class TableCreator
java.lang.Object
com.healthmarketscience.jackcess.impl.TableMutator
com.healthmarketscience.jackcess.impl.TableCreator
public class TableCreator
- extends TableMutator
Helper class used to maintain state during table creation.
- Author:
- James Ahlborn
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableCreator
public TableCreator(DatabaseImpl database)
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
createTable
public TableImpl createTable(TableBuilder table)
throws IOException
- Creates the table in the database.
- Throws:
IOException
withErrorContext
protected String withErrorContext(String msg)
- Specified by:
withErrorContext in class TableMutator
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)
getDbSortOrder
protected ColumnImpl.SortOrder getDbSortOrder()
Copyright © 2005-2017 Health Market Science. All Rights Reserved.