| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private transient ActionQueue | |
| private transient boolean | |
| private transient boolean | |
| private transient CacheMode | |
| private transient Map | |
| private transient ConnectionReleaseMode | |
| private transient int | |
| private transient EntityMode | |
| private transient EntityNameResolver | |
| private transient boolean | |
| private transient FlushMode | |
| private transient Interceptor | |
| private transient JDBCContext | |
| private transient EventListeners | |
| private transient LoadQueryInfluencers | |
| private transient SessionImpl. | |
| private static final Logger | |
| private transient StatefulPersistenceContext | |
| private transient Session | |
| private transient long |
| Access | Constructor and Description |
|---|---|
| private | SessionImpl(SessionImpl
The parent session parent, EntityMode entityMode)Constructor used in building "child sessions". |
| pack-priv | SessionImpl(final Connection
The user-supplied connection to use for this session. connection, final SessionFactoryImpl The factory from which this session was obtained factory, final boolean NOT USED autoclose, final long The timestamp for this session timestamp, final Interceptor The interceptor to be applied to this session interceptor, final EntityMode The entity-mode for this session entityMode, final boolean Should we auto flush before completion of transaction flushBeforeCompletionEnabled, final boolean Should we auto close after completion of transaction autoCloseSessionEnabled, final ConnectionReleaseMode The mode by which we should release JDBC connections. connectionReleaseMode)Constructor used for openSession(...) processing, as well as construction of sessions for getCurrentSession(). |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterOperation(boolean success)
Check if there is a Hibernate or JTA transaction in progress and, if there is not, flush if necessary, make sure the connection has been committed (if it is not in autocommit mode) and run the after completion processing |
| public void | |
| public void | afterTransactionBegin(Transaction tx)
Implements org. |
| public void | afterTransactionCompletion(boolean success, Transaction tx)
Implements org. |
| public void | applyNonFlushedChanges(NonFlushedChanges
the non-flushed changes nonFlushedChanges)Implements org. |
| protected boolean | autoFlushIfRequired(Set<E> querySpaces)
detect in-memory changes, determine if the changes are to tables named in the query and, if so, complete execution the flush |
| public void | beforeTransactionCompletion(Transaction tx)
Implements org. |
| public Transaction | beginTransaction()
Implements org. |
| public String | bestGuessEntityName(Object object)
Implements org. |
| public Session. | buildLockRequest(LockOptions
contains the lock level lockOptions)Implements org. |
| public void | cancelQuery()
Implements org. |
| private void | |
| private void | cleanup()
clear all the internal collections, just to help the garbage collector, does not clear anything that is needed during the afterTransactionCompletion() phase |
| public void | |
| public Connection | close()
Implements org. |
| public Connection | connection()
Implements org. |
| public boolean | contains(Object
an instance of a persistent class object)Implements org. |
| public Criteria | createCriteria(Class<T>
a class, which is persistent, or has persistent subclasses persistentClass, String alias)Implements org. |
| public Criteria | createCriteria(String entityName, String alias)
Implements org. |
| public Criteria | createCriteria(Class<T>
a class, which is persistent, or has persistent subclasses persistentClass)Implements org. |
| public Criteria | createCriteria(String entityName)
Implements org. |
| public Query | createFilter(Object
a persistent collection collection, String a Hibernate query queryString)Implements org. |
| public Query | createQuery(String
a HQL query queryString)Overrides org. Implements org. |
| public SQLQuery | createSQLQuery(String
a SQL query sql)Overrides org. Implements org. |
| public Query | createSQLQuery(String
a query expressed in SQL sql, String a table alias that appears inside {} in the SQL string returnAlias, Class<T> the returned persistent class returnClass)Implements org. |
| public Query | createSQLQuery(String
a query expressed in SQL sql, String[] an array of table aliases that appear inside {} in the SQL string returnAliases, Class<T>[] the returned persistent classes returnClasses)Implements org. |
| public void | delete(Object
the instance to be removed object)Implements org. |
| public void | delete(String
The entity name for the instance to be removed. entityName, Object the instance to be removed object)Implements org. |
| public void | delete(String entityName, Object object, boolean isCascadeDeleteEnabled, Set<E> transientEntities)
Implements org. |
| public int | delete(String
the query string query)Implements org. |
| public int | delete(String
the query string query, Object a value to be witten to a "?" placeholder in the query string. value, Type the hibernate type of value. type)Implements org. |
| public int | delete(String
the query string query, Object[] a list of values to be written to "?" placeholders in the query. values, Type[] a list of Hibernate types of the values types)Implements org. |
| public void | disableFetchProfile(String
The name of the fetch profile to be disabled. name)Implements org. |
| public void | disableFilter(String
The name of the filter to be disabled. filterName)Implements org. |
| public Connection | disconnect()
Implements org. |
| public void | doWork(Work
The work to be performed. work)Implements org. |
| public void | enableFetchProfile(String
The name of the fetch profile to be enabled. name)Implements org. |
| public Filter | enableFilter(String
The name of the filter to be enabled. filterName)Implements org. |
| public void | evict(Object
a persistent instance object)Implements org. |
| public Object | execute(LobCreationContext.
The callback to execute . callbackImplements org. Connection.
|
| public int | executeNativeUpdate(NativeSQLQuerySpecification nativeQuerySpecification, QueryParameters queryParameters)
Implements org. |
| public int | executeUpdate(String query, QueryParameters queryParameters)
Implements org. |
| public Collection | filter(Object
a persistent collection to filter collection, String a filter query string filter)Implements org. |
| public Collection | |
| public Collection | filter(Object
a persistent collection to filter collection, String a filter query string filter, Object[] a list of values to be written to "?" placeholders in the query values, Type[] a list of Hibernate types of the values types)Implements org. |
| public List | find(String
a query expressed in Hibernate's query language query)Implements org. |
| public List | find(String
the query string query, Object a value to be bound to a "?" placeholder (JDBC IN parameter). value, Type the Hibernate type of the value type)Implements org. |
| public List | find(String
the query string query, Object[] an array of values to be bound to the "?" placeholders (JDBC IN parameters). values, Type[] an array of Hibernate types of the values types)Implements org. |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private Object | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private Serializable | |
| private void | |
| private void | |
| private Object | |
| private void | |
| public void | flush()
Implements org. |
| public void | forceFlush(EntityEntry entityEntry)
Implements org. |
| public Object | get(Class<T>
a persistent class entityClass, Serializable an identifier id)Implements org. |
| public Object | get(String
the entity name entityName, Serializable an identifier id)Implements org. |
| public Object | get(Class<T>
a persistent class entityClass, Serializable an identifier id, LockMode the lock mode lockMode)Implements org. |
| public Object | get(Class<T>
a persistent class entityClass, Serializable an identifier id, LockOptions the lock mode lockOptions)Implements org. |
| public Object | get(String
the entity name entityName, Serializable an identifier id, LockMode the lock mode lockMode)Implements org. |
| public Object | get(String
the entity name entityName, Serializable an identifier id, LockOptions contains the lock mode lockOptions)Implements org. |
| public ActionQueue | getActionQueue()
Implements org. |
| public Batcher | getBatcher()
Implements org. |
| public CacheMode | getCacheMode()
Implements org. |
| public ConnectionReleaseMode | |
| public Serializable | getContextEntityIdentifier(Object object)
Implements org. |
| public LockMode | getCurrentLockMode(Object
a persistent instance object)Implements org. |
| public int | |
| public Filter | getEnabledFilter(String
The name of the filter to be retrieved. filterName)Implements org. |
| public Map | getEnabledFilters()
Implements org. |
| public EntityMode | getEntityMode()
Implements org. |
| public String | getEntityName(Object
a persistent entity object)Implements org. |
| public EntityPersister | getEntityPersister(final String
optional entity name entityName, final Object the entity instance object)Implements org. |
| public Object | getEntityUsingInterceptor(EntityKey key)
Implements org. |
| public String | getFetchProfile()
Implements org. |
| public Type | getFilterParameterType(String
The filter parameter name in the format
{FILTER_NAME.PARAMETER_NAME}. filterParameterName)Implements org. |
| public Object | getFilterParameterValue(String
The filter parameter name in the format
{FILTER_NAME.PARAMETER_NAME}. filterParameterName)Implements org. |
| private FilterQueryPlan | |
| public FlushMode | getFlushMode()
Implements org. |
| public Serializable | getIdentifier(Object
a persistent instance object)Implements org. |
| public Interceptor | getInterceptor()
Implements org. |
| public JDBCContext | |
| public EventListeners | getListeners()
Implements org. |
| public LoadQueryInfluencers | getLoadQueryInfluencers()
Implements org. |
| public LobHelper | getLobHelper()
Implements org. |
| public Query | getNamedQuery(String
the name of a query defined externally queryName)Overrides org. Implements org. |
| public NonFlushedChanges | Returns: The non-flushed changes.Implements org. |
| private OuterJoinLoadable | |
| public PersistenceContext | getPersistenceContext()
Implements org. |
| private Serializable | |
| public Session | getSession(EntityMode
The entity mode to use for the new session. entityMode)Implements org. |
| public SessionFactory | getSessionFactory()
Implements org. |
| public SessionStatistics | |
| public long | getTimestamp()
Implements org. |
| public Transaction | getTransaction()
Implements org. |
| public TypeHelper | getTypeHelper()
Implements org. TypeHelper associated with this session's SessionFactory.
|
| public String | guessEntityName(Object object)
Implements org. |
| public Object | immediateLoad(String entityName, Serializable id)
Implements org. |
| public void | initializeCollection(PersistentCollection collection, boolean writing)
Implements org. |
| public Object | instantiate(String entityName, Serializable id)
Implements org. |
| public Object | instantiate(EntityPersister persister, Serializable id)
Implements org. |
| public Object | internalLoad(String entityName, Serializable id, boolean eager, boolean nullable)
Implements org. |
| public boolean | |
| public boolean | isConnected()
Implements org. |
| public boolean | isDefaultReadOnly()
Implements org. |
| public boolean | isDirty()
Implements org. |
| public boolean | |
| public boolean | isFetchProfileEnabled(String
The name of the profile to be checked. name)Implements org. |
| public boolean | |
| public boolean | |
| public boolean | isOpen()
Implements org. |
| public boolean | isReadOnly(Object
an entity or HibernateProxy entityOrProxy)Implements org. |
| public boolean | isTransactionInProgress()
Implements org. |
| public Iterator | iterate(String
the query string query)Implements org. |
| public Iterator | iterate(String
the query string query, Object a value to be witten to a "?" placeholder in the query string value, Type the hibernate type of value type)Implements org. |
| public Iterator | iterate(String
the query string query, Object[] a list of values to be written to "?" placeholders in the query values, Type[] a list of Hibernate types of the values types)Implements org. |
| public Iterator | iterate(String query, QueryParameters queryParameters)
Implements org. |
| public Iterator | iterateFilter(Object collection, String filter, QueryParameters queryParameters)
Implements org. |
| public List | list(String query, QueryParameters queryParameters)
Implements org. |
| public List | list(CriteriaImpl criteria)
Implements org. |
| public List | listCustomQuery(CustomQuery customQuery, QueryParameters queryParameters)
Implements org. |
| public List | listFilter(Object collection, String filter, QueryParameters queryParameters)
Implements org. |
| public void | load(Object
an "empty" instance of the persistent class object, Serializable a valid identifier of an existing persistent instance of the class id)Implements org. |
| public Object | load(Class<T>
a persistent class entityClass, Serializable a valid identifier of an existing persistent instance of the class id)Implements org. |
| public Object | load(String
a persistent class entityName, Serializable a valid identifier of an existing persistent instance of the class id)Implements org. |
| public Object | load(Class<T>
a persistent class entityClass, Serializable a valid identifier of an existing persistent instance of the class id, LockMode the lock level lockMode)Implements org. |
| public Object | load(Class<T>
a persistent class entityClass, Serializable a valid identifier of an existing persistent instance of the class id, LockOptions contains the lock level lockOptions)Implements org. |
| public Object | load(String
a persistent class entityName, Serializable a valid identifier of an existing persistent instance of the class id, LockMode the lock level lockMode)Implements org. |
| public Object | load(String
a persistent class entityName, Serializable a valid identifier of an existing persistent instance of the class id, LockOptions contains the lock level lockOptions)Implements org. |
| public void | lock(String entityName, Object
a persistent or transient instance object, LockMode the lock level lockMode)Implements org. |
| public void | lock(Object
a persistent or transient instance object, LockMode the lock level lockMode)Implements org. |
| public void | |
| public void | |
| public Object | merge(String entityName, Object
a detached instance with state to be copied object)Implements org. |
| public Object | merge(Object
a detached instance with state to be copied object)Implements org. |
| public void | merge(String entityName, Object object, Map<K, V> copiedAlready)
Implements org. |
| public void | persist(String entityName, Object
a transient instance to be made persistent object)Implements org. |
| public void | persist(Object
a transient instance to be made persistent object)Implements org. |
| public void | persist(String entityName, Object object, Map<K, V> copiedAlready)
Implements org. |
| public void | |
| public void | |
| public void | persistOnFlush(String entityName, Object object, Map<K, V> copiedAlready)
Implements org. |
| private void | readObject(ObjectInputStream
The input stream from which we are being read... ois)Used by JDK serialization... |
| public void | |
| public void | reconnect(Connection
a JDBC connection conn)Implements org. |
| public void | refresh(Object
a persistent or detached instance object)Implements org. |
| public void | refresh(Object
a persistent or detached instance object, LockMode the lock mode to use lockMode)Implements org. |
| public void | refresh(Object
a persistent or detached instance object, LockOptions contains the lock mode to use lockOptions)Implements org. |
| public void | refresh(Object object, Map<K, V> refreshedAlready)
Implements org. |
| private void | |
| private void | |
| public void | replicate(Object
a detached instance of a persistent class obj, ReplicationMode replicationMode)Implements org. |
| public void | replicate(String entityName, Object
a detached instance of a persistent class obj, ReplicationMode replicationMode)Implements org. |
| public void | save(Object
a transient instance of a persistent class obj, Serializable an unused valid identifier id)Implements org. |
| public Serializable | save(Object
a transient instance of a persistent class obj)Implements org. |
| public Serializable | save(String entityName, Object
a transient instance of a persistent class object)Implements org. |
| public void | save(String entityName, Object
a transient instance of a persistent class object, Serializable an unused valid identifier id)Implements org. |
| public void | saveOrUpdate(Object
a transient or detached instance containing new or updated state object)Implements org. save(Object) or update(Object) the given
instance, depending upon resolution of the unsaved-value checks (see the
manual for discussion of unsaved-value checking).
|
| public void | saveOrUpdate(String entityName, Object
a transient or detached instance containing new or updated state obj)Implements org. save(String, Object) or update(String, Object)
the given instance, depending upon resolution of the unsaved-value checks
(see the manual for discussion of unsaved-value checking).
|
| public Object | saveOrUpdateCopy(String entityName, Object
a transient instance with state to be copied object)Implements org. |
| public Object | saveOrUpdateCopy(Object
a transient instance with state to be copied object)Implements org. |
| public Object | saveOrUpdateCopy(String entityName, Object
a persistent or transient instance with state to be copied object, Serializable the identifier of the instance to copy to id)Implements org. |
| public Object | saveOrUpdateCopy(Object
a persistent or transient instance with state to be copied object, Serializable the identifier of the instance to copy to id)Implements org. |
| public void | saveOrUpdateCopy(String entityName, Object object, Map<K, V> copiedAlready)
Implements org. |
| public ScrollableResults | scroll(String query, QueryParameters queryParameters)
Implements org. |
| public ScrollableResults | scroll(CriteriaImpl criteria, ScrollMode scrollMode)
Implements org. |
| public ScrollableResults | scrollCustomQuery(CustomQuery customQuery, QueryParameters queryParameters)
Implements org. |
| private static byte[] | |
| private static byte[] | |
| public void | setAutoClear(boolean enabled)
Implements org. |
| public void | setCacheMode(CacheMode
The new cache mode. cacheMode)Implements org. |
| public void | setDefaultReadOnly(boolean
true, the default for loaded entities/proxies is read-only;
false, the default for loaded entities/proxies is modifiable defaultReadOnly)Implements org. |
| public void | setFetchProfile(String
The internal fetch profile name to use fetchProfile)Implements org. |
| public void | setFlushMode(FlushMode
the new flush mode flushMode)Implements org. |
| public void | setReadOnly(Object
an entity or HibernateProxy entity, boolean if true, the entity or proxy is made read-only;
if false, the entity or proxy is made modifiable. readOnly)Implements org. |
| public boolean | |
| private void | |
| public String | |
| public void | update(Object
a detached instance containing updated state obj)Implements org. |
| public void | update(Object
a detached instance containing updated state obj, Serializable identifier of persistent instance id)Implements org. |
| public void | update(String entityName, Object
a detached instance containing updated state object)Implements org. |
| public void | update(String entityName, Object
a detached instance containing updated state object, Serializable identifier of persistent instance id)Implements org. |
| private void | writeObject(ObjectOutputStream
The output stream to which we are being written... oos)Used by JDK serialization... |