| java.lang.Object org.hsqldb.BaseTable org.hsqldb.Table org.hsqldb.TextTable
TextTable | class TextTable extends org.hsqldb.Table (Code) | | Subclass of Table to handle TEXT data source.
Extends Table to provide the notion of an SQL base table object whose
data is read from and written to a text format data file.
author: sqlbob@users (RMP) version: 1.8.0 |
TextTable | TextTable(Database db, HsqlNameManager.HsqlName name, int type) throws HsqlException(Code) | | Constructs a new TextTable from the given arguments.
Parameters: db - the owning database Parameters: name - the table's HsqlName Parameters: type - (normal or temp text table) Parameters: sessionid - the id of the owning session (for temp table) exception: HsqlException - Description of the Exception |
checkDataReadOnly | void checkDataReadOnly() throws HsqlException(Code) | | Used by INSERT, DELETE, UPDATE operations. This class will return
a more appropriate message when there is no data source.
|
isConnected | public boolean isConnected()(Code) | | |
isDataReadOnly | public boolean isDataReadOnly()(Code) | | |
isDescDataSource | protected boolean isDescDataSource()(Code) | | |
isIndexCached | boolean isIndexCached()(Code) | | |
setDataSource | protected void setDataSource(Session session, String dataSourceNew, boolean isReversedNew, boolean newFile) throws HsqlException(Code) | | High level command to assign a data source to the table definition.
Reassigns only if the data source or direction has changed.
|
Methods inherited from org.hsqldb.Table | void addColumn(Column column) throws HsqlException(Code)(Java Doc) void addColumns(Result.ResultMetaData metadata, int count) throws HsqlException(Code)(Java Doc) void addColumns(Select select) throws HsqlException(Code)(Java Doc) void addConstraint(Constraint c)(Code)(Java Doc) void addTrigger(TriggerDef trigDef)(Code)(Java Doc) static void checkCascadeDelete(Session session, Table table, HashMappedList tableUpdateLists, Row row, boolean delete, HashSet path) throws HsqlException(Code)(Java Doc) static void checkCascadeUpdate(Session session, Table table, HashMappedList tableUpdateLists, Row orow, Object[] nrow, int[] cols, Table ref, HashSet path) throws HsqlException(Code)(Java Doc) void checkColumnInCheckConstraint(String colname) throws HsqlException(Code)(Java Doc) void checkColumnInFKConstraint(int colIndex) throws HsqlException(Code)(Java Doc) void checkColumnInFKConstraint(int colIndex, int actionType) throws HsqlException(Code)(Java Doc) void checkColumnsMatch(int[] col, Table other, int[] othercol) throws HsqlException(Code)(Java Doc) void checkDataReadOnly() throws HsqlException(Code)(Java Doc) void checkDropIndex(String indexname, HashSet ignore, boolean dropPK) throws HsqlException(Code)(Java Doc) void checkRowDataInsert(Session session, Object[] data) throws HsqlException(Code)(Java Doc) void checkRowDataUpdate(Session session, Object[] data, int[] cols) throws HsqlException(Code)(Java Doc) void clearAllRows(Session session)(Code)(Java Doc) static void clearUpdateLists(HashMappedList tableUpdateList)(Code)(Java Doc) void commitRowToStore(Row row)(Code)(Java Doc) public void connect(Session session) throws HsqlException(Code)(Java Doc) Index createIndex(Session session, int[] column, HsqlName name, boolean unique, boolean constraint, boolean forward) throws HsqlException(Code)(Java Doc) Index createIndexStructure(int[] columns, HsqlName name, boolean unique, boolean constraint, boolean forward) throws HsqlException(Code)(Java Doc) int createIndexStructureGetNo(int[] column, HsqlName name, boolean unique, boolean constraint, boolean forward) throws HsqlException(Code)(Java Doc) void createPrimaryIndex(int[] pkcols, HsqlName name) throws HsqlException(Code)(Java Doc) void createPrimaryKey(int[] cols) throws HsqlException(Code)(Java Doc) void createPrimaryKey() throws HsqlException(Code)(Java Doc) void createPrimaryKey(HsqlName indexName, int[] columns, boolean columnsNotNull) throws HsqlException(Code)(Java Doc) int delete(Session session, HsqlArrayList deleteList) throws HsqlException(Code)(Java Doc) public void deleteNoCheckFromLog(Session session, Object[] data) throws HsqlException(Code)(Java Doc) void deleteNoCheckRollback(Session session, Row row, boolean log) throws HsqlException(Code)(Java Doc) public void disconnect(Session session) throws HsqlException(Code)(Java Doc) void drop() throws HsqlException(Code)(Java Doc) void dropIndex(Session session, String indexname) throws HsqlException(Code)(Java Doc) void dropIndexFromRows(Session session, int index) throws HsqlException(Code)(Java Doc) void dropTrigger(String name)(Code)(Java Doc) void dropTriggers()(Code)(Java Doc) protected Table duplicate() throws HsqlException(Code)(Java Doc) void enforceFieldValueLimits(Object[] data, int[] cols) throws HsqlException(Code)(Java Doc) protected void enforceNullConstraints(Object[] data) throws HsqlException(Code)(Java Doc) boolean equals(Session session, String name)(Code)(Java Doc) boolean equals(String name)(Code)(Java Doc) boolean equals(HsqlName name)(Code)(Java Doc) int findColumn(String c)(Code)(Java Doc) void fireAll(Session session, int trigVecIndx, Object[] oldrow, Object[] newrow)(Code)(Java Doc) void fireAll(Session session, int trigVecIndex)(Code)(Java Doc) int[] getBestRowIdentifiers()(Code)(Java Doc) DataFileCache getCache()(Code)(Java Doc) String getCatalogName()(Code)(Java Doc) Column getColumn(int i)(Code)(Java Doc) public int getColumnCount()(Code)(Java Doc) int[] getColumnMap()(Code)(Java Doc) int getColumnNr(String c) throws HsqlException(Code)(Java Doc) public int[] getColumnTypes()(Code)(Java Doc) Constraint getConstraint(String constraintName)(Code)(Java Doc) Constraint getConstraintForColumns(Table tablemain, int[] colmain, int[] colref)(Code)(Java Doc) int getConstraintIndex(String constraintName)(Code)(Java Doc) Constraint[] getConstraints()(Code)(Java Doc) protected String getDataSource()(Code)(Java Doc) public Object[] getEmptyRowData()(Code)(Java Doc) public String getHeader()(Code)(Java Doc) public int getId()(Code)(Java Doc) int getIdentityColumn()(Code)(Java Doc) Index getIndex(int[] exclude, int colIndex)(Code)(Java Doc) Index getIndex(String indexName)(Code)(Java Doc) public Index getIndex(int i)(Code)(Java Doc) public int getIndexCount()(Code)(Java Doc) Index getIndexForColumn(Session session, int column)(Code)(Java Doc) Index getIndexForColumns(boolean[] columnCheck)(Code)(Java Doc) Index getIndexForColumns(int[] col, boolean unique) throws HsqlException(Code)(Java Doc) int getIndexIndex(String indexName)(Code)(Java Doc) String getIndexRoots()(Code)(Java Doc) public int[] getIndexRootsArray()(Code)(Java Doc) final int getIndexType()(Code)(Java Doc) public Index[] getIndexes()(Code)(Java Doc) int getInternalColumnCount()(Code)(Java Doc) public HsqlName getName()(Code)(Java Doc) boolean[] getNewColumnCheckList()(Code)(Java Doc) int[] getNewColumnMap()(Code)(Java Doc) Object[] getNewRowData(Session session, boolean[] exists) throws HsqlException(Code)(Java Doc) int getNextConstraintIndex(int from, int type)(Code)(Java Doc) Constraint getPrimaryConstraint()(Code)(Java Doc) public Index getPrimaryIndex()(Code)(Java Doc) public int[] getPrimaryKey()(Code)(Java Doc) public int[] getPrimaryKeyTypes()(Code)(Java Doc) CachedRow getRow(int pos, Node primarynode) throws HsqlException(Code)(Java Doc) CachedRow getRow(int pos)(Code)(Java Doc) CachedRow getRow(long id)(Code)(Java Doc) public int getRowCount(Session session) throws HsqlException(Code)(Java Doc) public String getSchemaName()(Code)(Java Doc) final public int getTableType()(Code)(Java Doc) Constraint getUniqueConstraintForColumns(int[] cols)(Code)(Java Doc) Index getUniqueConstraintIndexForColumns(int[] col)(Code)(Java Doc) Constraint getUniqueOrPKConstraintForIndex(Index index)(Code)(Java Doc) public boolean hasPrimaryKey()(Code)(Java Doc) void indexRow(Session session, Row row) throws HsqlException(Code)(Java Doc) int insert(Session session, Result ins) throws HsqlException(Code)(Java Doc) void insert(Session session, Object[] data) throws HsqlException(Code)(Java Doc) public void insertData(Session session, Object[] data) throws HsqlException(Code)(Java Doc) public void insertFromScript(Object[] data) throws HsqlException(Code)(Java Doc) protected void insertFromTextSource(CachedRow row) throws HsqlException(Code)(Java Doc) void insertIntoTable(Session session, Result result) throws HsqlException(Code)(Java Doc) public void insertNoCheckFromLog(Session session, Object[] data) throws HsqlException(Code)(Java Doc) void insertNoCheckRollback(Session session, Row row, boolean log) throws HsqlException(Code)(Java Doc) int insertResult(Session session, Result ins) throws HsqlException(Code)(Java Doc) int insertSys(Result ins) throws HsqlException(Code)(Java Doc) public void insertSys(Object[] data) throws HsqlException(Code)(Java Doc) boolean isBestRowIdentifiersStrict()(Code)(Java Doc) public boolean isCached()(Code)(Java Doc) public boolean isConnected()(Code)(Java Doc) public boolean isDataReadOnly()(Code)(Java Doc) protected boolean isDescDataSource()(Code)(Java Doc) public boolean isEmpty(Session session)(Code)(Java Doc) boolean isFileBased()(Code)(Java Doc) boolean isIndexCached()(Code)(Java Doc) boolean isIndexingMutable()(Code)(Java Doc) final public boolean isReadOnly()(Code)(Java Doc) final public boolean isTemp()(Code)(Java Doc) final public boolean isText()(Code)(Java Doc) final boolean isView()(Code)(Java Doc) boolean isWritable()(Code)(Java Doc) HsqlName makeSysPKName() throws HsqlException(Code)(Java Doc) static boolean mergeKeepUpdate(Session session, HashMappedList rowSet, int[] cols, int[] colTypes, Row row, Object[] newData) throws HsqlException(Code)(Java Doc) static void mergeUpdate(HashMappedList rowSet, Row row, Object[] newData, int[] cols)(Code)(Java Doc) void moveData(Session session, Table from, int colindex, int adjust) throws HsqlException(Code)(Java Doc) Table moveDefinition(int[] removeIndex, Column newColumn, int colIndex, int adjust) throws HsqlException(Code)(Java Doc) Table moveDefinitionPK(int[] pkCols, boolean withIdentity) throws HsqlException(Code)(Java Doc) Row newRow(Object[] o) throws HsqlException(Code)(Java Doc) void releaseRowFromStore(Row row) throws HsqlException(Code)(Java Doc) void removeConstraint(String name)(Code)(Java Doc) void removeRowFromStore(Row row) throws HsqlException(Code)(Java Doc) void rename(Session session, String newname, boolean isquoted) throws HsqlException(Code)(Java Doc) void renameColumn(Column column, String newName, boolean isquoted) throws HsqlException(Code)(Java Doc) void resetDefaultsFlag()(Code)(Java Doc) public void resetRowId(Session session) throws HsqlException(Code)(Java Doc) Row restoreRow(Row oldrow) throws HsqlException(Code)(Java Doc) void setBestRowIdentifiers()(Code)(Java Doc) void setColumnTypeVars(int i)(Code)(Java Doc) void setDataReadOnly(boolean value) throws HsqlException(Code)(Java Doc) protected void setDataSource(Session s, String source, boolean isDesc, boolean newFile) throws HsqlException(Code)(Java Doc) void setDefaultExpression(int columnIndex, Expression def)(Code)(Java Doc) public void setHeader(String header) throws HsqlException(Code)(Java Doc) protected void setIdentityColumn(Session session, Object[] data) throws HsqlException(Code)(Java Doc) public void setIndexRoots(int[] roots) throws HsqlException(Code)(Java Doc) void setIndexRoots(String s) throws HsqlException(Code)(Java Doc) protected void setIsReadOnly(boolean newReadOnly)(Code)(Java Doc) int update(Session session, HashMappedList updateList, int[] cols) throws HsqlException(Code)(Java Doc) void updateConstraintsTables(Session session, Table old, int colindex, int adjust) throws HsqlException(Code)(Java Doc) protected void updateIdentityValue(Object[] data) throws HsqlException(Code)(Java Doc) void updateRowSet(Session session, HashMappedList rowSet, int[] cols, boolean nodelete) throws HsqlException(Code)(Java Doc)
|
|
|