Package com.mckoi.database
Class ConnectionTriggerManager.CTMBackedCache
- java.lang.Object
-
- com.mckoi.database.TableBackedCache
-
- com.mckoi.database.ConnectionTriggerManager.CTMBackedCache
-
- Enclosing class:
- ConnectionTriggerManager
private class ConnectionTriggerManager.CTMBackedCache extends TableBackedCache
A TableBackedCache that manages the list of connection level triggers that are currently active on this connection.
-
-
Constructor Summary
Constructors Constructor Description CTMBackedCache()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
purgeCacheOfInvalidatedEntries(IntegerVector added_rows, IntegerVector removed_rows)
This method is called when the transaction starts and finishes and must purge the cache of all invalidated entries.-
Methods inherited from class com.mckoi.database.TableBackedCache
attachTo, detatchFrom, transactionFinished, transactionStarted
-
-
-
-
Method Detail
-
purgeCacheOfInvalidatedEntries
public void purgeCacheOfInvalidatedEntries(IntegerVector added_rows, IntegerVector removed_rows)
Description copied from class:TableBackedCache
This method is called when the transaction starts and finishes and must purge the cache of all invalidated entries.Note that this method must NOT make any queries on the database. It must only, at the most, purge the cache of invalid entries. A trivial implementation of this might completely clear the cache of all data if removed_row.size() > 0.
- Specified by:
purgeCacheOfInvalidatedEntries
in classTableBackedCache
-
-