The ISessionImplementor type exposes the following members.
Methods
Name | Description | |
---|---|---|
AfterTransactionBegin |
Notify the session that an NHibernate transaction has begun.
| |
AfterTransactionCompletion |
Notify the session that the transaction completed, so we no longer own the old locks.
(Also we should release cache softlocks). May be called multiple times during the transaction
completion process.
| |
BeforeTransactionCompletion |
Notify the session that the transaction is about to complete
| |
BestGuessEntityName | The best guess entity name for an entity not in an association | |
CloseSessionFromDistributedTransaction | ||
CreateQuery |
Create a new instance of Query for the given query expression
A hibernate query expression Return ValueThe query | |
Enumerable(String, QueryParameters) |
Execute an Iterate() query
| |
Enumerable<(Of <<'(T>)>>)(String, QueryParameters) |
Strongly-typed version of Enumerable(String, QueryParameters) | |
EnumerableFilter(Object, String, QueryParameters) |
Collection from a filter
| |
EnumerableFilter<(Of <<'(T>)>>)(Object, String, QueryParameters) |
Strongly-typed version of EnumerableFilter(Object, String, QueryParameters) | |
ExecuteNativeUpdate | Execute a native SQL update or delete query | |
ExecuteUpdate | Execute a HQL update or delete query | |
Flush | ||
GetContextEntityIdentifier |
Return the identifier of the persistent object, or null if transient
| |
GetEntityPersister | Get the IEntityPersister for any instance | |
GetEntityUsingInterceptor |
Get the entity instance associated with the given Key,
calling the Interceptor if necessary
| |
GetFilterParameterType |
Retrieve the type for a given filter parameter.
| |
GetFilterParameterValue |
Retrieve the currently set value for a filter parameter.
| |
GetNamedQuery | ||
GetNamedSQLQuery | ||
GetQueries | ||
GuessEntityName | The guessed entity name for an entity not in an association | |
ImmediateLoad |
Load an instance immediately. Do not return a proxy.
| |
Initialize |
Initialize the session after its construction was complete
| |
InitializeCollection |
Initialize the collection (if not already initialized)
| |
Instantiate |
Instantiate the entity class, initializing with the given identifier
| |
InternalLoad |
Load an instance without checking if it was deleted. If it does not exist and isn't nullable, throw an exception.
This method may create a new proxy or return an existing proxy.
| |
List(CriteriaImpl) | ||
List(String, QueryParameters) |
Execute a List() query
| |
List(CriteriaImpl, IList) | ||
List(IQueryExpression, QueryParameters) |
Execute a List() expression query
| |
List(NativeSQLQuerySpecification, QueryParameters) |
Execute an SQL Query
| |
List(String, QueryParameters, IList) | ||
List(NativeSQLQuerySpecification, QueryParameters, IList) | ||
List<(Of <<'(T>)>>)(CriteriaImpl) |
Strongly-typed version of List(CriteriaImpl) | |
List<(Of <<'(T>)>>)(String, QueryParameters) |
Strongly-typed version of List(String, QueryParameters) | |
List<(Of <<'(T>)>>)(NativeSQLQuerySpecification, QueryParameters) |
Strongly-typed version of List(NativeSQLQuerySpecification, QueryParameters) | |
ListCustomQuery(ICustomQuery, QueryParameters, IList) | Execute an SQL Query | |
ListCustomQuery<(Of <<'(T>)>>)(ICustomQuery, QueryParameters) | ||
ListFilter(Object, String, QueryParameters) |
Execute a filter
| |
ListFilter<(Of <<'(T>)>>)(Object, String, QueryParameters) |
Execute a filter (strongly-typed version).
|
Properties
Name | Description | |
---|---|---|
Batcher |
Get the prepared statement Batcher for this session
| |
CacheMode | ||
Connection | ||
ConnectionManager | ||
DontFlushFromFind | ||
EnabledFilters |
Return the currently enabled filters. The filter map is keyed by filter
name, with values corresponding to the FilterImpl
instance.
| |
EntityMode | Retrieve the entity mode in effect for this session. | |
Factory |
Get the creating SessionFactoryImplementor
| |
FetchProfile | ||
FlushMode | ||
FutureCriteriaBatch | ||
FutureQueryBatch | ||
Interceptor | ||
IsClosed | Determine whether the session is closed. Provided separately from
{@link #isOpen()} as this method does not attempt any JTA synch
registration, where as {@link #isOpen()} does; which makes this one
nicer to use for most internal purposes.
| |
IsConnected |
Is the ISession currently connected?
| |
IsEventSource | ||
IsOpen |
Is the ISession still open?
| |
Listeners | Retrieves the configured event listeners from this event source. | |
PersistenceContext | Get the persistence context for this session | |
SessionId | ||
Timestamp |
System time before the start of the transaction
| |
TransactionContext | ||
TransactionInProgress |
Does this Session have an active Hibernate transaction
or is there a JTA transaction in progress?
|