Class SnowflakeSession
- java.lang.Object
-
- migratedb.v1.core.internal.database.base.BaseSession
-
- migratedb.v1.core.internal.database.snowflake.SnowflakeSession
-
- All Implemented Interfaces:
AutoCloseable,Session
public class SnowflakeSession extends BaseSession
-
-
Field Summary
-
Fields inherited from class migratedb.v1.core.internal.database.base.BaseSession
jdbcTemplate, originalSchemaNameOrSearchPath
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoChangeCurrentSchemaOrSearchPathTo(String schema)protected voiddoRestoreOriginalState()protected StringgetCurrentSchemaNameOrSearchPath()SnowflakeDatabasegetDatabase()SnowflakeSchemagetSchema(String name)Retrieves the schema with this name in the database.-
Methods inherited from class migratedb.v1.core.internal.database.base.BaseSession
changeCurrentSchemaTo, close, doGetCurrentSchema, getCurrentSchema, getJdbcConnection, getJdbcTemplate, lock, restoreOriginalState
-
-
-
-
Method Detail
-
doRestoreOriginalState
protected void doRestoreOriginalState() throws SQLException- Overrides:
doRestoreOriginalStatein classBaseSession- Throws:
SQLException
-
getCurrentSchemaNameOrSearchPath
protected String getCurrentSchemaNameOrSearchPath() throws SQLException
- Specified by:
getCurrentSchemaNameOrSearchPathin classBaseSession- Throws:
SQLException- when the current schema name or search path could not be retrieved.
-
doChangeCurrentSchemaOrSearchPathTo
public void doChangeCurrentSchemaOrSearchPathTo(String schema) throws SQLException
- Overrides:
doChangeCurrentSchemaOrSearchPathToin classBaseSession- Parameters:
schema- The new current schema for this connection.- Throws:
SQLException- when the current schema could not be set.
-
getSchema
public SnowflakeSchema getSchema(String name)
Description copied from interface:SessionRetrieves the schema with this name in the database.
-
getDatabase
public SnowflakeDatabase getDatabase()
- Overrides:
getDatabasein classBaseSession
-
-