The ISessionImplementor type exposes the following members.

Methods

  NameDescription
Public methodAfterTransactionBegin
Notify the session that an NHibernate transaction has begun.
Public methodAfterTransactionCompletion
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.
Public methodBeforeTransactionCompletion
Notify the session that the transaction is about to complete
Public methodBestGuessEntityName
The best guess entity name for an entity not in an association
Public methodCloseSessionFromDistributedTransaction
Public methodCreateQuery
Create a new instance of Query for the given query expression A hibernate query expression

Return Value

The query
Public methodEnumerable(String, QueryParameters)
Execute an Iterate() query
Public methodEnumerable<(Of <<'(T>)>>)(String, QueryParameters)
Strongly-typed version of Enumerable(String, QueryParameters)
Public methodEnumerableFilter(Object, String, QueryParameters)
Collection from a filter
Public methodEnumerableFilter<(Of <<'(T>)>>)(Object, String, QueryParameters)
Public methodExecuteNativeUpdate
Execute a native SQL update or delete query
Public methodExecuteUpdate
Execute a HQL update or delete query
Public methodFlush
Public methodGetContextEntityIdentifier
Return the identifier of the persistent object, or null if transient
Public methodGetEntityPersister
Get the IEntityPersister for any instance
Public methodGetEntityUsingInterceptor
Get the entity instance associated with the given Key, calling the Interceptor if necessary
Public methodGetFilterParameterType
Retrieve the type for a given filter parameter.
Public methodGetFilterParameterValue
Retrieve the currently set value for a filter parameter.
Public methodGetNamedQuery
Public methodGetNamedSQLQuery
Public methodGetQueries
Public methodGuessEntityName
The guessed entity name for an entity not in an association
Public methodImmediateLoad
Load an instance immediately. Do not return a proxy.
Public methodInitialize
Initialize the session after its construction was complete
Public methodInitializeCollection
Initialize the collection (if not already initialized)
Public methodInstantiate
Instantiate the entity class, initializing with the given identifier
Public methodInternalLoad
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.
Public methodList(CriteriaImpl)
Public methodList(String, QueryParameters)
Execute a List() query
Public methodList(CriteriaImpl, IList)
Public methodList(IQueryExpression, QueryParameters)
Execute a List() expression query
Public methodList(NativeSQLQuerySpecification, QueryParameters)
Execute an SQL Query
Public methodList(String, QueryParameters, IList)
Public methodList(NativeSQLQuerySpecification, QueryParameters, IList)
Public methodList<(Of <<'(T>)>>)(CriteriaImpl)
Strongly-typed version of List(CriteriaImpl)
Public methodList<(Of <<'(T>)>>)(String, QueryParameters)
Strongly-typed version of List(String, QueryParameters)
Public methodList<(Of <<'(T>)>>)(NativeSQLQuerySpecification, QueryParameters)
Public methodListCustomQuery(ICustomQuery, QueryParameters, IList)
Execute an SQL Query
Public methodListCustomQuery<(Of <<'(T>)>>)(ICustomQuery, QueryParameters)
Public methodListFilter(Object, String, QueryParameters)
Execute a filter
Public methodListFilter<(Of <<'(T>)>>)(Object, String, QueryParameters)
Execute a filter (strongly-typed version).

Properties

  NameDescription
Public propertyBatcher
Get the prepared statement Batcher for this session
Public propertyCacheMode
Public propertyConnection
Public propertyConnectionManager
Public propertyDontFlushFromFind
Public propertyEnabledFilters
Return the currently enabled filters. The filter map is keyed by filter name, with values corresponding to the FilterImpl instance.
Public propertyEntityMode
Retrieve the entity mode in effect for this session.
Public propertyFactory
Get the creating SessionFactoryImplementor
Public propertyFetchProfile
Public propertyFlushMode
Public propertyFutureCriteriaBatch
Public propertyFutureQueryBatch
Public propertyInterceptor
Public propertyIsClosed
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.
Public propertyIsConnected
Is the ISession currently connected?
Public propertyIsEventSource
Public propertyIsOpen
Is the ISession still open?
Public propertyListeners
Retrieves the configured event listeners from this event source.
Public propertyPersistenceContext
Get the persistence context for this session
Public propertySessionId
Public propertyTimestamp
System time before the start of the transaction
Public propertyTransactionContext
Public propertyTransactionInProgress
Does this Session have an active Hibernate transaction or is there a JTA transaction in progress?

See Also