Class IgniteThinTable
java.lang.Object
migratedb.v1.core.internal.database.base.BaseSchemaObject<D,S>
migratedb.v1.core.internal.database.base.BaseTable<IgniteThinDatabase,IgniteThinSchema>
migratedb.v1.core.internal.database.ignite.thin.IgniteThinTable
- All Implemented Interfaces:
SchemaObject<IgniteThinDatabase,,IgniteThinSchema> Table<IgniteThinDatabase,IgniteThinSchema>
Ignite Thin-specific table.
-
Field Summary
Fields inherited from class migratedb.v1.core.internal.database.base.BaseSchemaObject
database, jdbcTemplate, name, schema -
Constructor Summary
ConstructorsConstructorDescriptionIgniteThinTable(JdbcTemplate jdbcTemplate, IgniteThinDatabase database, IgniteThinSchema schema, String name) Creates a new Ignite table. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoDrop()protected booleandoExists()Checks whether this table exists.protected voiddoLock()Locks this table in this schema using a read/write pessimistic lock until the end of the current transaction.protected voiddoUnlock()For databases that require an explicit unlocking, not an implicit end-of-transaction one.Methods inherited from class migratedb.v1.core.internal.database.base.BaseTable
exists, exists, lock, unlockMethods inherited from class migratedb.v1.core.internal.database.base.BaseSchemaObject
drop, getDatabase, getName, getSchema, toStringMethods 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, toString
-
Constructor Details
-
IgniteThinTable
public IgniteThinTable(JdbcTemplate jdbcTemplate, IgniteThinDatabase database, IgniteThinSchema schema, String name) Creates a new Ignite table.- Parameters:
jdbcTemplate- The Jdbc Template for communicating with the DB.database- The database-specific support.schema- The schema this table lives in.name- The name of the table.
-
-
Method Details
-
doDrop
- Specified by:
doDropin classBaseSchemaObject<IgniteThinDatabase,IgniteThinSchema> - Throws:
SQLException- when the drop failed.
-
doExists
Description copied from class:BaseTableChecks whether this table exists.- Specified by:
doExistsin classBaseTable<IgniteThinDatabase,IgniteThinSchema> - Throws:
SQLException- when the check failed.
-
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<IgniteThinDatabase,IgniteThinSchema> - Throws:
SQLException- when this table in this schema could not be locked.
-
doUnlock
Description copied from class:BaseTableFor databases that require an explicit unlocking, not an implicit end-of-transaction one.- Overrides:
doUnlockin classBaseTable<IgniteThinDatabase,IgniteThinSchema> - Throws:
SQLException- when this table in this schema could not be unlocked.
-