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.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv String | |
| pack-priv boolean | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | TextTable(Database
the owning database db, HsqlNameManager.the table's HsqlName name,code (normal or temp text table) type)Constructs a new TextTable from the given arguments. |
| Modifier and Type | Method and Description |
|---|---|
| public void | checkDataReadOnly()
Overrides org. Used by INSERT, DELETE, UPDATE operations. |
| public void | |
| private void | |
| public void | |
| public String | |
| pack-priv String | |
| pack-priv String | getDataSourceHeader()
Generates the |
| private String | |
| public void | insertData(Session session, PersistentStore store, Object[] data, boolean enforceUnique)
Overrides org. Adds commitPersistence() call |
| public boolean | |
| public boolean | |
| public boolean | |
| private void | |
| private void | readDataIntoTable(Session session, PersistentStore store, TextFileReader reader, TextFileSettings settings)
|
| public void | |
| pack-priv void | setDataSource(Session session, String dataSourceNew, boolean isReversedNew, boolean createFile)
High level command to assign a data source to the table definition. |
| public void | |
| public void |
| dataSource | back to summary |
|---|---|
| pack-priv String dataSource | |
| isConnected | back to summary |
|---|---|
| pack-priv boolean isConnected | |
| isReversed | back to summary |
|---|---|
| pack-priv boolean isReversed | |
| TextTable | back to summary |
|---|---|
| pack-priv TextTable(Database db, HsqlNameManager. Constructs a new TextTable from the given arguments.
| |
| checkDataReadOnly | back to summary |
|---|---|
| public void checkDataReadOnly() Overrides org. Used by INSERT, DELETE, UPDATE operations. This class will return a more appropriate message when there is no data source. | |
| connect | back to summary |
|---|---|
| public void connect(Session session) connects to the data source | |
| connect | back to summary |
|---|---|
| private void connect(Session session, boolean withReadOnlyData) connects to the data source | |
| disconnect | back to summary |
|---|---|
| public void disconnect() disconnects from the data source | |
| getDataSource | back to summary |
|---|---|
| public String getDataSource() | |
| getDataSourceDDL | back to summary |
|---|---|
| pack-priv String getDataSourceDDL() | |
| getDataSourceHeader | back to summary |
|---|---|
| pack-priv String getDataSourceHeader() Generates the | |
| getHeader | back to summary |
|---|---|
| private String getHeader() | |
| insertData | back to summary |
|---|---|
| public void insertData(Session session, PersistentStore store, Object[] data, boolean enforceUnique) Overrides org. Adds commitPersistence() call | |
| isConnected | back to summary |
|---|---|
| public boolean isConnected() Overrides org. | |
| isDataReadOnly | back to summary |
|---|---|
| public boolean isDataReadOnly() Overrides org. | |
| isDescDataSource | back to summary |
|---|---|
| public boolean isDescDataSource() | |
| openCache | back to summary |
|---|---|
| private void openCache(Session session, String dataSourceNew, boolean isReversedNew, boolean isReadOnlyNew) This method does some of the work involved with managing the creation and opening of the cache, the rest is done in Log.java and TextCache.java. Better clarification of the role of the methods is needed. | |
| readDataIntoTable | back to summary |
|---|---|
| private void readDataIntoTable(Session session, PersistentStore store, TextFileReader reader, TextFileSettings settings) | |
| setDataReadOnly | back to summary |
|---|---|
| public void setDataReadOnly(boolean readonly) Overrides org. | |
| setDataSource | back to summary |
|---|---|
| pack-priv void setDataSource(Session session, String dataSourceNew, boolean isReversedNew, boolean createFile) High level command to assign a data source to the table definition. Reassigns only if the data source or direction has changed. | |
| setDataSource | back to summary |
|---|---|
| public void setDataSource(String source, boolean desc) | |
| setHeader | back to summary |
|---|---|
| public void setHeader(String header) | |