Methods for the implementation of the Session interface to implement.
Type | Name and description |
---|---|
void |
addPendingInsert(PendingInsert insert) |
void |
addPendingUpdate(PendingUpdate update) |
void |
addPostFlushOperation(java.lang.Runnable runnable) |
void |
cacheCollection(PersistentEntity entity, java.io.Serializable key, java.util.Collection collection, java.lang.String name) |
void |
cacheEntry(PersistentEntity entity, java.io.Serializable key, T entry) |
void |
cacheInstance(java.lang.Class type, java.io.Serializable key, java.lang.Object instance) |
java.util.Collection |
getCachedCollection(PersistentEntity entity, java.io.Serializable key, java.lang.String name) |
T |
getCachedEntry(PersistentEntity entity, java.io.Serializable key) |
T |
getCachedEntry(PersistentEntity entity, java.io.Serializable key, boolean forDirtyCheck) |
java.lang.Object |
getCachedInstance(java.lang.Class type, java.io.Serializable key) Get the cached instance if it exists. |
java.util.Collection<java.lang.Runnable> |
getPendingDeletes() |
java.util.Map<PersistentEntity, java.util.Collection<PendingInsert>> |
getPendingInserts() |
java.util.Map<PersistentEntity, java.util.Collection<PendingUpdate>> |
getPendingUpdates() |
boolean |
isCached(java.lang.Class type, java.io.Serializable key) Whether an object with the specified key is contained within the first level cache. |
Get the cached instance if it exists.
null
type
- the object typekey
- the object keyWhether an object with the specified key is contained within the first level cache.
true
if it istype
- the object typekey
- The key to check