Class HSQLDBConnection
- java.lang.Object
-
- migratedb.core.internal.database.base.BaseConnection<HSQLDBDatabase>
-
- migratedb.core.internal.database.hsqldb.HSQLDBConnection
-
- All Implemented Interfaces:
AutoCloseable,Connection<HSQLDBDatabase>
public class HSQLDBConnection extends BaseConnection<HSQLDBDatabase>
HSQLDB connection.
-
-
Field Summary
-
Fields inherited from class migratedb.core.internal.database.base.BaseConnection
database, jdbcTemplate, originalSchemaNameOrSearchPath
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoChangeCurrentSchemaOrSearchPathTo(String schema)protected StringgetCurrentSchemaNameOrSearchPath()Schema<?,?>getSchema(String name)Retrieves the schema with this name in the database.-
Methods inherited from class migratedb.core.internal.database.base.BaseConnection
changeCurrentSchemaTo, close, doGetCurrentSchema, doRestoreOriginalState, getCurrentSchema, getJdbcConnection, getJdbcTemplate, lock, restoreOriginalState
-
-
-
-
Method Detail
-
getCurrentSchemaNameOrSearchPath
protected String getCurrentSchemaNameOrSearchPath() throws SQLException
- Specified by:
getCurrentSchemaNameOrSearchPathin classBaseConnection<HSQLDBDatabase>- Throws:
SQLException- when the current schema name or search path could not be retrieved.
-
doChangeCurrentSchemaOrSearchPathTo
public void doChangeCurrentSchemaOrSearchPathTo(String schema) throws SQLException
- Overrides:
doChangeCurrentSchemaOrSearchPathToin classBaseConnection<HSQLDBDatabase>- Parameters:
schema- The new current schema for this connection.- Throws:
SQLException- when the current schema could not be set.
-
getSchema
public Schema<?,?> getSchema(String name)
Description copied from interface:ConnectionRetrieves the schema with this name in the database.
-
-