@java.lang.SuppressWarnings("rawtypes")
public interface SessionImplementor<T>
Methods for the implementation of the Session interface to implement.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
addPendingInsert(PendingInsert insert)Adds a pending insert operation |
|
public void |
addPendingUpdate(PendingUpdate update)Adds a pending update operation |
|
public void |
addPostFlushOperation(java.lang.Runnable runnable)Adds an operation to be executed after a flush |
|
public void |
cacheCollection(PersistentEntity entity, java.io.Serializable key, java.util.Collection collection, java.lang.String name)Caches a collection |
|
public void |
cacheEntry(PersistentEntity entity, java.io.Serializable key, T entry)Caches a native entry |
|
public void |
cacheInstance(java.lang.Class type, java.io.Serializable key, java.lang.Object instance)Caches an instance |
|
public EntityAccess |
createEntityAccess(PersistentEntity entity, java.lang.Object instance) |
|
public java.util.Collection |
getCachedCollection(PersistentEntity entity, java.io.Serializable key, java.lang.String name)Obtains a cached collection |
|
public T |
getCachedEntry(PersistentEntity entity, java.io.Serializable key)Obtains a cached entry |
|
public T |
getCachedEntry(PersistentEntity entity, java.io.Serializable key, boolean forDirtyCheck)Obtains a cached entry |
|
public java.lang.Object |
getCachedInstance(java.lang.Class type, java.io.Serializable key)Get the cached instance if it exists. |
|
public java.util.Map<PersistentEntity, java.util.Collection<PendingDelete>> |
getPendingDeletes()
|
|
public java.util.Map<PersistentEntity, java.util.Collection<PendingInsert>> |
getPendingInserts()
|
|
public java.util.Map<PersistentEntity, java.util.Collection<PendingUpdate>> |
getPendingUpdates()
|
|
public boolean |
isCached(java.lang.Class type, java.io.Serializable key)Whether an object with the specified key is contained within the first level cache. |
|
public boolean |
isPendingAlready(T obj)
|
|
public boolean |
isStateless()
|
|
public boolean |
isStateless(PersistentEntity entity)
|
|
public void |
registerPending(T obj)Register a pending object |
Adds a pending insert operation
insert - The pending insert operationAdds a pending update operation
update - The pending update operationAdds an operation to be executed after a flush
runnable - The runnableCaches a collection
entity - The entitykey - The keycollection - The collectionname - The name of the collectionCaches a native entry
entity - The entitykey - The keyentry - The native entryCaches an instance
type - The typekey - The keyinstance - The instanceObtains a cached collection
entity - The entitykey - The keyname - The nameObtains a cached entry
entity - The entitykey - The keyObtains a cached entry
entity - The entitykey - The keyforDirtyCheck - Whether to obtain for purposes for dirty checkingGet the cached instance if it exists.
type - the object typekey - the object keynull
Whether an object with the specified key is contained within the first level cache.
type - the object typekey - The key to checktrue if it is
obj - Whether the given object is already pending
Register a pending object
obj - The object to register