org.hsqldb
Class TextTable
- java.lang.Object
-
- org.hsqldb.TableBase
-
- org.hsqldb.Table
-
- org.hsqldb.TextTable
-
- All Implemented Interfaces:
- SchemaObject
public class TextTable extends Table
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hsqldb.SchemaObject
SchemaObject.ConstraintTypes, SchemaObject.Deferable, SchemaObject.Nullability, SchemaObject.ParameterModes, SchemaObject.ReferentialAction, SchemaObject.ViewCheckModes
-
-
Field Summary
-
Fields inherited from class org.hsqldb.Table
columnList, emptyArray
-
Fields inherited from class org.hsqldb.TableBase
CACHED_TABLE, CHANGE_SET_TABLE, database, FUNCTION_TABLE, INFO_SCHEMA_TABLE, isSessionBased, MEMORY_TABLE, persistenceId, persistenceScope, RESULT_TABLE, SCOPE_FULL, SCOPE_ROUTINE, SCOPE_SESSION, SCOPE_STATEMENT, SCOPE_TRANSACTION, store, SYSTEM_SUBQUERY, SYSTEM_TABLE, TEMP_TABLE, TEMP_TEXT_TABLE, TEXT_TABLE, TRANSITION_TABLE, VIEW_TABLE
-
Fields inherited from interface org.hsqldb.SchemaObject
ASSERTION, CATALOG, CHARSET, COLLATION, COLUMN, CONSTRAINT, CURSOR, DOMAIN, FUNCTION, GRANTEE, INDEX, LABEL, PARAMETER, PROCEDURE, ROUTINE, SCHEMA, SEARCH, SEQUENCE, SERVER, SPECIFIC_ROUTINE, SUBQUERY, TABLE, TRANSITION, TRIGGER, TYPE, VARIABLE, VIEW, WRAPPER
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcheckDataReadOnly()Used by INSERT, DELETE, UPDATE operations.voidconnect(Session session)connects to the data sourcevoiddisconnect()disconnects from the data sourcejava.lang.StringgetDataSource()voidinsertData(Session session, PersistentStore store, java.lang.Object[] data)Adds commitPersistence() callbooleanisConnected()booleanisDataReadOnly()booleanisDescDataSource()voidsetDataReadOnly(boolean value)voidsetHeader(java.lang.String header)-
Methods inherited from class org.hsqldb.Table
addColumn, addColumnNoCheck, addConstraint, clearAllData, clearAllData, compareRows, compile, createPrimaryKey, createPrimaryKey, createPrimaryKeyConstraint, enforceRowConstraints, enforceTypeLimits, findColumn, getBaseTable, getBaseTableColumnMap, getBestRowIdentifiers, getCatalogName, getChangeTimestamp, getClusteredIndex, getColumn, getColumnIndex, getColumnListSQL, getColumnListWithTypeSQL, getColumnNames, getColumnNameSet, getColumnNameSet, getColumnNameSet, getComponents, getConstraint, getConstraints, getDataExpression, getDefaultRanges, getDeleteRowFromLog, getDependentExternalConstraints, getFKConstraints, getId, getIndexRootsArray, getIndexRootsSQL, getName, getNextIdentity, getOwner, getPrimaryConstraint, getQueryExpression, getReferences, getReferencesForDependents, getRowStore, getSchemaName, getSQL, getSQLForClustered, getSQLForReadOnly, getSQLForTableSpace, getSQLForTextSource, getTriggerIndex, getTriggers, getTriggerSQL, getType, getUniqueConstraintForIndex, getUniqueOrPKConstraintForIndex, getUniquePKConstraintNames, getUpdatableColumns, hasGeneratedColumn, hasIdentityColumn, hasLobColumn, insertFromScript, insertNoCheckFromLog, insertSys, insertSys, isBestRowIdentifiersStrict, isCached, isDropped, isFileBased, isInsertable, isQueryBased, isReadOnly, isSchemaBaseTable, isTemp, isText, isTriggerDeletable, isTriggerInsertable, isTriggerUpdatable, isUpdatable, isView, isWithDataSource, isWritable, materialise, materialiseCorrelated, prepareTable, rowIteratorClustered, rowIteratorClustered, setGeneratedColumns, setIndexRoots, setName, systemSetIdentityColumn
-
Methods inherited from class org.hsqldb.TableBase
createAndAddIndexStructure, createIndex, createPrimaryIndex, dropIndex, duplicate, getColumnCount, getColumnNotNull, getColumnTypes, getDataColumnCount, getEmptyRowData, getFullIndex, getIndex, getIndexCount, getIndexList, getNewColumnCheckList, getPersistenceId, getPrimaryIndex, getPrimaryKey, getPrimaryKeyTypes, getSpaceID, getTableType, hasPrimaryKey, isEmpty, isTransactional, onCommitPreserve, rowIterator, rowIterator, setBestRowIdentifiers, setIndexes, setSpaceID, setTransactional
-
-
-
-
Method Detail
-
isConnected
public boolean isConnected()
- Overrides:
isConnectedin classTable
-
connect
public void connect(Session session)
connects to the data source
-
disconnect
public void disconnect()
disconnects from the data source
-
getDataSource
public java.lang.String getDataSource()
-
isDescDataSource
public boolean isDescDataSource()
-
setHeader
public void setHeader(java.lang.String header)
-
checkDataReadOnly
public void checkDataReadOnly()
Used by INSERT, DELETE, UPDATE operations. This class will return a more appropriate message when there is no data source.- Overrides:
checkDataReadOnlyin classTable
-
isDataReadOnly
public boolean isDataReadOnly()
- Overrides:
isDataReadOnlyin classTable
-
setDataReadOnly
public void setDataReadOnly(boolean value)
- Overrides:
setDataReadOnlyin classTable
-
insertData
public void insertData(Session session, PersistentStore store, java.lang.Object[] data)
Adds commitPersistence() call- Overrides:
insertDatain classTable
-
-
DataMelt 3.0 © DataMelt by jWork.ORG