abstract
void
|
afterScrollOperation()
|
abstract
void
|
afterTransactionCompletion(boolean successful, Transaction tx)
Notify the session that the transaction completed, so we no longer
own the old locks.
|
abstract
void
|
applyNonFlushedChanges(NonFlushedChanges nonFlushedChanges)
Apply non-flushed changes from a different session to this session.
|
abstract
void
|
beforeTransactionCompletion(Transaction tx)
Notify the session that the transaction is about to complete
|
abstract
String
|
bestGuessEntityName(Object object)
The best guess entity name for an entity not in an association
|
abstract
Connection
|
connection()
|
abstract
int
|
executeNativeUpdate(NativeSQLQuerySpecification specification, QueryParameters queryParameters)
Execute a native SQL update or delete query
|
abstract
int
|
executeUpdate(String query, QueryParameters queryParameters)
Execute a HQL update or delete query
|
abstract
void
|
flush()
|
abstract
Batcher
|
getBatcher()
Get the prepared statement Batcher for this session
|
abstract
CacheMode
|
getCacheMode()
|
abstract
Serializable
|
getContextEntityIdentifier(Object object)
Return the identifier of the persistent object, or null if
not associated with the session
|
abstract
int
|
getDontFlushFromFind()
|
abstract
Map
|
getEnabledFilters()
This method is deprecated.
use #getLoadQueryInfluencers instead
|
abstract
EntityMode
|
getEntityMode()
|
abstract
EntityPersister
|
getEntityPersister(String entityName, Object object)
Get the EntityPersister for any instance
|
abstract
Object
|
getEntityUsingInterceptor(EntityKey key)
Get the entity instance associated with the given Key,
calling the Interceptor if necessary
|
abstract
SessionFactoryImplementor
|
getFactory()
Get the creating SessionFactoryImplementor
|
abstract
String
|
getFetchProfile()
This method is deprecated.
use #getLoadQueryInfluencers instead
|
abstract
Type
|
getFilterParameterType(String filterParameterName)
This method is deprecated.
use #getLoadQueryInfluencers instead
|
abstract
Object
|
getFilterParameterValue(String filterParameterName)
This method is deprecated.
use #getLoadQueryInfluencers instead
|
abstract
FlushMode
|
getFlushMode()
|
abstract
Interceptor
|
getInterceptor()
Retrieves the interceptor currently in use by this event source.
|
abstract
JDBCContext
|
getJDBCContext()
|
abstract
EventListeners
|
getListeners()
Retrieves the configured event listeners from this event source.
|
abstract
LoadQueryInfluencers
|
getLoadQueryInfluencers()
Get the load query influencers associated with this session.
|
abstract
Query
|
getNamedQuery(String name)
Get a Query instance for a named query or named native SQL query
|
abstract
Query
|
getNamedSQLQuery(String name)
Get a Query instance for a named native SQL query
|
abstract
NonFlushedChanges
|
getNonFlushedChanges()
Return changes to this session that have not been flushed yet.
|
abstract
PersistenceContext
|
getPersistenceContext()
Get the persistence context for this session
|
abstract
long
|
getTimestamp()
System time before the start of the transaction
|
abstract
String
|
guessEntityName(Object entity)
The guessed entity name for an entity not in an association
|
abstract
Object
|
immediateLoad(String entityName, Serializable id)
Load an instance immediately.
|
abstract
void
|
initializeCollection(PersistentCollection collection, boolean writing)
Initialize the collection (if not already initialized)
|
abstract
Object
|
instantiate(String entityName, Serializable id)
Instantiate the entity class, initializing with the given identifier
|
abstract
Object
|
internalLoad(String entityName, Serializable id, boolean eager, boolean nullable)
Load an instance without checking if it was deleted.
|
abstract
boolean
|
isClosed()
Determine whether the session is closed.
|
abstract
boolean
|
isConnected()
|
abstract
boolean
|
isEventSource()
|
abstract
boolean
|
isOpen()
|
abstract
boolean
|
isTransactionInProgress()
Does this Session have an active Hibernate transaction
or is there a JTA transaction in progress?
|
abstract
Iterator
|
iterate(String query, QueryParameters queryParameters)
Execute an iterate() query
|
abstract
Iterator
|
iterateFilter(Object collection, String filter, QueryParameters queryParameters)
Iterate a filter
|
abstract
List
|
list(NativeSQLQuerySpecification spec, QueryParameters queryParameters)
Execute a native SQL query, and return the results as a fully built list.
|
abstract
List
|
list(String query, QueryParameters queryParameters)
Execute a find() query
|
abstract
List
|
list(CriteriaImpl criteria)
Execute a criteria query
|
abstract
List
|
listCustomQuery(CustomQuery customQuery, QueryParameters queryParameters)
Execute an SQL Query
|
abstract
List
|
listFilter(Object collection, String filter, QueryParameters queryParameters)
Execute a filter
|
abstract
ScrollableResults
|
scroll(CriteriaImpl criteria, ScrollMode scrollMode)
Execute a criteria query
|
abstract
ScrollableResults
|
scroll(String query, QueryParameters queryParameters)
Execute a scroll() query
|
abstract
ScrollableResults
|
scroll(NativeSQLQuerySpecification spec, QueryParameters queryParameters)
Execute a native SQL query, and return the results as a scrollable result.
|
abstract
ScrollableResults
|
scrollCustomQuery(CustomQuery customQuery, QueryParameters queryParameters)
Execute an SQL Query
|
abstract
void
|
setAutoClear(boolean enabled)
Enable/disable automatic cache clearing from after transaction
completion (for EJB3)
|
abstract
void
|
setCacheMode(CacheMode cm)
|
abstract
void
|
setFetchProfile(String name)
This method is deprecated.
use #getLoadQueryInfluencers instead
|
abstract
void
|
setFlushMode(FlushMode fm)
|