com.healthmarketscience.jackcess.impl
Class TableUpdater

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

public class TableUpdater
extends TableMutator

Helper class used to maintain state during table mutation.

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

Constructor Summary
TableUpdater(TableImpl table)
           
 
Method Summary
 ColumnImpl addColumn(ColumnBuilder column)
           
 IndexImpl addIndex(IndexBuilder index)
           
static int calculateNameLength(String name)
           
 Charset getCharset()
           
 ColumnBuilder getColumn()
           
 com.healthmarketscience.jackcess.impl.TableMutator.ColumnState getColumnState(ColumnBuilder col)
           
 DatabaseImpl getDatabase()
           
 IndexImpl.ForeignKeyReference getForeignKey(IndexBuilder idx)
           
 JetFormat getFormat()
           
 IndexBuilder getIndex()
           
 com.healthmarketscience.jackcess.impl.TableMutator.IndexDataState getIndexDataState(IndexBuilder idx)
           
 PageChannel getPageChannel()
           
 int getTdefPageNumber()
           
 int reservePageNumber()
           
 
Methods inherited from class com.healthmarketscience.jackcess.impl.TableMutator
getColumnOffsets, setColumnOffsets
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableUpdater

public TableUpdater(TableImpl table)
Method Detail

getColumn

public ColumnBuilder getColumn()

getIndex

public IndexBuilder getIndex()

getTdefPageNumber

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

getColumnState

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

getIndexDataState

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

getForeignKey

public IndexImpl.ForeignKeyReference getForeignKey(IndexBuilder idx)
Overrides:
getForeignKey in class TableMutator

addColumn

public ColumnImpl addColumn(ColumnBuilder column)
                     throws IOException
Throws:
IOException

addIndex

public IndexImpl addIndex(IndexBuilder index)
                   throws IOException
Throws:
IOException

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.