Class SpannerTable
java.lang.Object
migratedb.v1.core.internal.database.base.BaseSchemaObject<D,S>
migratedb.v1.core.internal.database.base.BaseTable<SpannerDatabase,SpannerSchema>
migratedb.v1.core.internal.database.spanner.SpannerTable
- All Implemented Interfaces:
SchemaObject<SpannerDatabase,,SpannerSchema> Table<SpannerDatabase,SpannerSchema>
-
Field Summary
Fields inherited from class migratedb.v1.core.internal.database.base.BaseSchemaObject
database, jdbcTemplate, name, schema -
Constructor Summary
ConstructorsConstructorDescriptionSpannerTable(JdbcTemplate jdbcTemplate, SpannerDatabase database, SpannerSchema schema, String name) -
Method Summary
Methods inherited from class migratedb.v1.core.internal.database.base.BaseTable
doUnlock, exists, exists, lock, unlockMethods inherited from class migratedb.v1.core.internal.database.base.BaseSchemaObject
drop, getDatabase, getName, getSchemaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface migratedb.v1.core.api.internal.database.base.SchemaObject
drop, getDatabase, getName, getSchema
-
Constructor Details
-
SpannerTable
public SpannerTable(JdbcTemplate jdbcTemplate, SpannerDatabase database, SpannerSchema schema, String name)
-
-
Method Details
-
doExists
Description copied from class:BaseTableChecks whether this table exists.- Specified by:
doExistsin classBaseTable<SpannerDatabase,SpannerSchema> - Throws:
SQLException- when the check failed.
-
doLock
protected void doLock()Description copied from class:BaseTableLocks this table in this schema using a read/write pessimistic lock until the end of the current transaction. Note thatunlock()still needs to be called even if your database unlocks the table implicitly (in which casedoUnlock()may be a no-op) in order to maintain the lock count correctly.- Specified by:
doLockin classBaseTable<SpannerDatabase,SpannerSchema>
-
doDrop
- Specified by:
doDropin classBaseSchemaObject<SpannerDatabase,SpannerSchema> - Throws:
SQLException- when the drop failed.
-
toString
- Specified by:
toStringin interfaceSchemaObject<SpannerDatabase,SpannerSchema> - Overrides:
toStringin classBaseSchemaObject<SpannerDatabase,SpannerSchema> - Returns:
- The quoted qualified name of this schema object.
-