Class SpannerSession
- java.lang.Object
-
- migratedb.v1.core.internal.database.base.BaseSession
-
- migratedb.v1.core.internal.database.spanner.SpannerSession
-
- All Implemented Interfaces:
AutoCloseable,Session
public class SpannerSession extends BaseSession
-
-
Field Summary
-
Fields inherited from class migratedb.v1.core.internal.database.base.BaseSession
jdbcTemplate, originalSchemaNameOrSearchPath
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSpannerSession(SpannerDatabase database, Connection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetCurrentSchemaNameOrSearchPath()SpannerDatabasegetDatabase()SpannerSchemagetSchema(String name)Retrieves the schema with this name in the database.<T> Tlock(Table table, Callable<T> callable)Locks this table and executes this callable.-
Methods inherited from class migratedb.v1.core.internal.database.base.BaseSession
changeCurrentSchemaTo, close, doChangeCurrentSchemaOrSearchPathTo, doGetCurrentSchema, doRestoreOriginalState, getCurrentSchema, getJdbcConnection, getJdbcTemplate, restoreOriginalState
-
-
-
-
Constructor Detail
-
SpannerSession
protected SpannerSession(SpannerDatabase database, Connection connection)
-
-
Method Detail
-
getCurrentSchemaNameOrSearchPath
protected String getCurrentSchemaNameOrSearchPath()
- Specified by:
getCurrentSchemaNameOrSearchPathin classBaseSession
-
getSchema
public SpannerSchema getSchema(String name)
Description copied from interface:SessionRetrieves the schema with this name in the database.
-
getDatabase
public SpannerDatabase getDatabase()
- Overrides:
getDatabasein classBaseSession
-
-