The IEventSource type exposes the following members.

Methods

  NameDescription
Public methodAfterTransactionBegin
Notify the session that an NHibernate transaction has begun.
(Inherited from ISessionImplementor.)
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.
(Inherited from ISessionImplementor.)
Public methodBeforeTransactionCompletion
Notify the session that the transaction is about to complete
(Inherited from ISessionImplementor.)
Public methodBeginTransaction()()()()
Begin a unit of work and return the associated ITransaction object.
(Inherited from ISession.)
Public methodBeginTransaction(IsolationLevel)
Begin a transaction with the specified isolationLevel
(Inherited from ISession.)
Public methodBestGuessEntityName
The best guess entity name for an entity not in an association
(Inherited from ISessionImplementor.)
Public methodCancelQuery
Cancel execution of the current query.
(Inherited from ISession.)
Public methodClear
Completely clear the session. Evict all loaded instances and cancel all pending saves, updates and deletions. Do not close open enumerables or instances of ScrollableResults.
(Inherited from ISession.)
Public methodClose
End the ISession by disconnecting from the ADO.NET connection and cleaning up.
(Inherited from ISession.)
Public methodCloseSessionFromDistributedTransaction (Inherited from ISessionImplementor.)
Public methodContains
Is this instance associated with this Session?
(Inherited from ISession.)
Public methodCreateCriteria(String)
Create a new Criteria instance, for the given entity name.
(Inherited from ISession.)
Public methodCreateCriteria(Type)
Creates a new Criteria for the entity class.
(Inherited from ISession.)
Public methodCreateCriteria(String, String)
Create a new Criteria instance, for the given entity name, with the given alias.
(Inherited from ISession.)
Public methodCreateCriteria(Type, String)
Creates a new Criteria for the entity class with a specific alias
(Inherited from ISession.)
Public methodCreateCriteria<(Of <<'(T>)>>)()()()()
Creates a new Criteria for the entity class.
(Inherited from ISession.)
Public methodCreateCriteria<(Of <<'(T>)>>)(String)
Creates a new Criteria for the entity class with a specific alias
(Inherited from ISession.)
Public methodCreateFilter
Create a new instance of Query for the given collection and filter string
(Inherited from ISession.)
Public methodCreateMultiCriteria
An IMultiCriteria that can return a list of all the results of all the criterias.
(Inherited from ISession.)
Public methodCreateMultiQuery
Create a multi query, a query that can send several queries to the server, and return all their results in a single call.
(Inherited from ISession.)
Public methodCreateQuery(String)
Create a new instance of Query for the given query string
(Inherited from ISession.)
Public methodCreateQuery(IQueryExpression)
Create a new instance of Query for the given query expression A hibernate query expression

Return Value

The query
(Inherited from ISessionImplementor.)
Public methodCreateSQLQuery
Create a new instance of ISQLQuery for the given SQL query string.
(Inherited from ISession.)
Public methodDelete(Object)
Remove a persistent instance from the datastore.
(Inherited from ISession.)
Public methodDelete(String)
Delete all objects returned by the query.
(Inherited from ISession.)
Public methodDelete(String, Object)
Remove a persistent instance from the datastore. The object argument may be an instance associated with the receiving ISession or a transient instance with an identifier associated with existing persistent state. This operation cascades to associated instances if the association is mapped with cascade="delete".
(Inherited from ISession.)
Public methodDelete(String, Object, IType)
Delete all objects returned by the query.
(Inherited from ISession.)
Public methodDelete(String, array<Object>[]()[][], array<IType>[]()[][])
Delete all objects returned by the query.
(Inherited from ISession.)
Public methodDelete(String, Object, Boolean, ISet)
Cascade delete an entity instance
Public methodDisableFilter
Disable the named filter for the current session.
(Inherited from ISession.)
Public methodDisconnect
Disconnect the ISession from the current ADO.NET connection.
(Inherited from ISession.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodEnableFilter
Enable the named filter for this current session.
(Inherited from ISession.)
Public methodEnumerable(String, QueryParameters)
Execute an Iterate() query
(Inherited from ISessionImplementor.)
Public methodEnumerable<(Of <<'(T>)>>)(String, QueryParameters)
Strongly-typed version of Enumerable(String, QueryParameters)
(Inherited from ISessionImplementor.)
Public methodEnumerableFilter(Object, String, QueryParameters)
Collection from a filter
(Inherited from ISessionImplementor.)
Public methodEnumerableFilter<(Of <<'(T>)>>)(Object, String, QueryParameters) (Inherited from ISessionImplementor.)
Public methodEvict
Remove this instance from the session cache.
(Inherited from ISession.)
Public methodExecuteNativeUpdate
Execute a native SQL update or delete query
(Inherited from ISessionImplementor.)
Public methodExecuteUpdate
Execute a HQL update or delete query
(Inherited from ISessionImplementor.)
Public methodFlush()()()()
Force the ISession to flush.
(Inherited from ISession.)
Public methodFlush()()()() (Inherited from ISessionImplementor.)
Public methodForceFlush
Force an immediate flush
Public methodGet(String, Object)
Return the persistent instance of the given named entity with the given identifier, or null if there is no such persistent instance. (If the instance, or a proxy for the instance, is already associated with the session, return that instance or proxy.)
(Inherited from ISession.)
Public methodGet(Type, Object)
Return the persistent instance of the given entity class with the given identifier, or null if there is no such persistent instance. (If the instance, or a proxy for the instance, is already associated with the session, return that instance or proxy.)
(Inherited from ISession.)
Public methodGet(Type, Object, LockMode)
Return the persistent instance of the given entity class with the given identifier, or null if there is no such persistent instance. Obtain the specified lock mode if the instance exists.
(Inherited from ISession.)
Public methodGet<(Of <<'(T>)>>)(Object)
Strongly-typed version of Get(Type, Object)
(Inherited from ISession.)
Public methodGet<(Of <<'(T>)>>)(Object, LockMode)
Strongly-typed version of Get(Type, Object, LockMode)
(Inherited from ISession.)
Public methodGetContextEntityIdentifier
Return the identifier of the persistent object, or null if transient
(Inherited from ISessionImplementor.)
Public methodGetCurrentLockMode
Determine the current lock mode of the given object
(Inherited from ISession.)
Public methodGetEnabledFilter
Retrieve a currently enabled filter by name.
(Inherited from ISession.)
Public methodGetEntityName
Return the entity name for a persistent entity
(Inherited from ISession.)
Public methodGetEntityPersister
Get the IEntityPersister for any instance
(Inherited from ISessionImplementor.)
Public methodGetEntityUsingInterceptor
Get the entity instance associated with the given Key, calling the Interceptor if necessary
(Inherited from ISessionImplementor.)
Public methodGetFilterParameterType
Retrieve the type for a given filter parameter.
(Inherited from ISessionImplementor.)
Public methodGetFilterParameterValue
Retrieve the currently set value for a filter parameter.
(Inherited from ISessionImplementor.)
Public methodGetIdentifier
Return the identifier of an entity instance cached by the ISession
(Inherited from ISession.)
Public methodGetNamedQuery(String)
Obtain an instance of IQuery for a named query string defined in the mapping file.
(Inherited from ISession.)
Public methodGetNamedQuery(String) (Inherited from ISessionImplementor.)
Public methodGetNamedSQLQuery (Inherited from ISessionImplementor.)
Public methodGetQueries (Inherited from ISessionImplementor.)
Public methodGetSession
Starts a new Session with the given entity mode in effect. This secondary Session inherits the connection, transaction, and other context information from the primary Session. It doesn't need to be flushed or closed by the developer.
(Inherited from ISession.)
Public methodGetSessionImplementation
Gets the session implementation.
(Inherited from ISession.)
Public methodGuessEntityName
The guessed entity name for an entity not in an association
(Inherited from ISessionImplementor.)
Public methodImmediateLoad
Load an instance immediately. Do not return a proxy.
(Inherited from ISessionImplementor.)
Public methodInitialize
Initialize the session after its construction was complete
(Inherited from ISessionImplementor.)
Public methodInitializeCollection
Initialize the collection (if not already initialized)
(Inherited from ISessionImplementor.)
Public methodInstantiate(String, Object)
Instantiate the entity class, initializing with the given identifier
(Inherited from ISessionImplementor.)
Public methodInstantiate(IEntityPersister, Object)
Instantiate an entity instance, using either an interceptor, or the given persister
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.
(Inherited from ISessionImplementor.)
Public methodIsDirty
Does this ISession contain any changes which must be synchronized with the database? Would any SQL be executed if we flushed this session?
(Inherited from ISession.)
Public methodIsReadOnly
Is the specified entity (or proxy) read-only?
(Inherited from ISession.)
Public methodList(CriteriaImpl) (Inherited from ISessionImplementor.)
Public methodList(String, QueryParameters)
Execute a List() query
(Inherited from ISessionImplementor.)
Public methodList(CriteriaImpl, IList) (Inherited from ISessionImplementor.)
Public methodList(IQueryExpression, QueryParameters)
Execute a List() expression query
(Inherited from ISessionImplementor.)
Public methodList(NativeSQLQuerySpecification, QueryParameters)
Execute an SQL Query
(Inherited from ISessionImplementor.)
Public methodList(String, QueryParameters, IList) (Inherited from ISessionImplementor.)
Public methodList(NativeSQLQuerySpecification, QueryParameters, IList) (Inherited from ISessionImplementor.)
Public methodList<(Of <<'(T>)>>)(CriteriaImpl)
Strongly-typed version of List(CriteriaImpl)
(Inherited from ISessionImplementor.)
Public methodList<(Of <<'(T>)>>)(String, QueryParameters)
Strongly-typed version of List(String, QueryParameters)
(Inherited from ISessionImplementor.)
Public methodList<(Of <<'(T>)>>)(NativeSQLQuerySpecification, QueryParameters) (Inherited from ISessionImplementor.)
Public methodListCustomQuery(ICustomQuery, QueryParameters, IList)
Execute an SQL Query
(Inherited from ISessionImplementor.)
Public methodListCustomQuery<(Of <<'(T>)>>)(ICustomQuery, QueryParameters) (Inherited from ISessionImplementor.)
Public methodListFilter(Object, String, QueryParameters)
Execute a filter
(Inherited from ISessionImplementor.)
Public methodListFilter<(Of <<'(T>)>>)(Object, String, QueryParameters)
Execute a filter (strongly-typed version).
(Inherited from ISessionImplementor.)
Public methodLoad(Object, Object)
Read the persistent state associated with the given identifier into the given transient instance.
(Inherited from ISession.)
Public methodLoad(String, Object)
Return the persistent instance of the given entityName with the given identifier, assuming that the instance exists.
(Inherited from ISession.)
Public methodLoad(Type, Object)
Return the persistent instance of the given entity class with the given identifier, assuming that the instance exists.
(Inherited from ISession.)
Public methodLoad(String, Object, LockMode)
Return the persistent instance of the given entity class with the given identifier, obtaining the specified lock mode, assuming the instance exists.
(Inherited from ISession.)
Public methodLoad(Type, Object, LockMode)
Return the persistent instance of the given entity class with the given identifier, obtaining the specified lock mode.
(Inherited from ISession.)
Public methodLoad<(Of <<'(T>)>>)(Object)
Return the persistent instance of the given entity class with the given identifier, assuming that the instance exists.
(Inherited from ISession.)
Public methodLoad<(Of <<'(T>)>>)(Object, LockMode)
Return the persistent instance of the given entity class with the given identifier, obtaining the specified lock mode.
(Inherited from ISession.)
Public methodLock(Object, LockMode)
Obtain the specified lock level upon the given object.
(Inherited from ISession.)
Public methodLock(String, Object, LockMode)
Obtain the specified lock level upon the given object.
(Inherited from ISession.)
Public methodMerge(Object)
Copy the state of the given object onto the persistent object with the same identifier. If there is no persistent instance currently associated with the session, it will be loaded. Return the persistent instance. If the given instance is unsaved, save a copy of and return it as a newly persistent instance. The given instance does not become associated with the session. This operation cascades to associated instances if the association is mapped with cascade="merge".
The semantics of this method are defined by JSR-220.
(Inherited from ISession.)
Public methodMerge(String, Object)
Copy the state of the given object onto the persistent object with the same identifier. If there is no persistent instance currently associated with the session, it will be loaded. Return the persistent instance. If the given instance is unsaved, save a copy of and return it as a newly persistent instance. The given instance does not become associated with the session. This operation cascades to associated instances if the association is mapped with cascade="merge".
The semantics of this method are defined by JSR-220. Name of the entity.a detached instance with state to be copied

Return Value

an updated persistent instance
(Inherited from ISession.)
Public methodMerge(String, Object, IDictionary)
Cascade merge an entity instance
Public methodMerge<(Of <<'(T>)>>)(T)
Copy the state of the given object onto the persistent object with the same identifier. If there is no persistent instance currently associated with the session, it will be loaded. Return the persistent instance. If the given instance is unsaved, save a copy of and return it as a newly persistent instance. The given instance does not become associated with the session. This operation cascades to associated instances if the association is mapped with cascade="merge".
The semantics of this method are defined by JSR-220.
(Inherited from ISession.)
Public methodMerge<(Of <<'(T>)>>)(String, T)
Copy the state of the given object onto the persistent object with the same identifier. If there is no persistent instance currently associated with the session, it will be loaded. Return the persistent instance. If the given instance is unsaved, save a copy of and return it as a newly persistent instance. The given instance does not become associated with the session. This operation cascades to associated instances if the association is mapped with cascade="merge".
The semantics of this method are defined by JSR-220. Name of the entity.a detached instance with state to be copied

Return Value

an updated persistent instance
(Inherited from ISession.)
Public methodPersist(Object)
Make a transient instance persistent. This operation cascades to associated instances if the association is mapped with cascade="persist".
The semantics of this method are defined by JSR-220.
(Inherited from ISession.)
Public methodPersist(String, Object)
Make a transient instance persistent. This operation cascades to associated instances if the association is mapped with cascade="persist".
The semantics of this method are defined by JSR-220.
(Inherited from ISession.)
Public methodPersist(String, Object, IDictionary)
Cascade persist an entity instance
Public methodPersistOnFlush
Cascade persist an entity instance during the flush process
Public methodQueryOver<(Of <<'(T>)>>)()()()()
Creates a new IQueryOver<T> for the entity class.
(Inherited from ISession.)
Public methodQueryOver<(Of <<'(T>)>>)(Expression<(Of <<'(Func<(Of <<'(T>)>>)>)>>))
Creates a new IQueryOver<T> for the entity class.
(Inherited from ISession.)
Public methodQueryOver<(Of <<'(T>)>>)(String)
Creates a new IQueryOver{T}; for the entity class.
(Inherited from ISession.)
Public methodQueryOver<(Of <<'(T>)>>)(String, Expression<(Of <<'(Func<(Of <<'(T>)>>)>)>>))
Creates a new IQueryOver{T} for the entity class.
(Inherited from ISession.)
Public methodReconnect()()()()
Obtain a new ADO.NET connection.
(Inherited from ISession.)
Public methodReconnect(IDbConnection)
Reconnect to the given ADO.NET connection.
(Inherited from ISession.)
Public methodRefresh(Object)
Re-read the state of the given instance from the underlying database.
(Inherited from ISession.)
Public methodRefresh(Object, LockMode)
Re-read the state of the given instance from the underlying database, with the given LockMode.
(Inherited from ISession.)
Public methodRefresh(Object, IDictionary)
Cascade refresh an entity instance
Public methodReplicate(Object, ReplicationMode)
Persist all reachable transient objects, reusing the current identifier values. Note that this will not trigger the Interceptor of the Session.
(Inherited from ISession.)
Public methodReplicate(String, Object, ReplicationMode)
Persist the state of the given detached instance, reusing the current identifier value. This operation cascades to associated instances if the association is mapped with cascade="replicate".
(Inherited from ISession.)
Public methodSave(Object)
Persist the given transient instance, first assigning a generated identifier.
(Inherited from ISession.)
Public methodSave(Object, Object)
Persist the given transient instance, using the given identifier.
(Inherited from ISession.)
Public methodSave(String, Object)
Persist the given transient instance, first assigning a generated identifier. (Or using the current value of the identifier property if the assigned generator is used.)
(Inherited from ISession.)
Public methodSaveOrUpdate(Object)
Either Save() or Update() the given instance, depending upon the value of its identifier property.
(Inherited from ISession.)
Public methodSaveOrUpdate(String, Object)
Either 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).
(Inherited from ISession.)
Public methodSaveOrUpdateCopy(Object) Obsolete.
Copy the state of the given object onto the persistent object with the same identifier. If there is no persistent instance currently associated with the session, it will be loaded. Return the persistent instance. If the given instance is unsaved or does not exist in the database, save it and return it as a newly persistent instance. Otherwise, the given instance does not become associated with the session.
(Inherited from ISession.)
Public methodSaveOrUpdateCopy(Object, Object) Obsolete.
Copy the state of the given object onto the persistent object with the given identifier. If there is no persistent instance currently associated with the session, it will be loaded. Return the persistent instance. If there is no database row with the given identifier, save the given instance and return it as a newly persistent instance. Otherwise, the given instance does not become associated with the session.
(Inherited from ISession.)
Public methodSaveOrUpdateCopy(String, Object, IDictionary) Obsolete.
Cascade copy an entity instance
Public methodSetBatchSize
Sets the batch size of the session
(Inherited from ISession.)
Public methodSetReadOnly
Change the read-only status of an entity (or proxy).
(Inherited from ISession.)
Public methodUpdate(Object)
Update the persistent instance with the identifier of the given transient instance.
(Inherited from ISession.)
Public methodUpdate(Object, Object)
Update the persistent state associated with the given identifier.
(Inherited from ISession.)
Public methodUpdate(String, Object)
Update the persistent instance with the identifier of the given detached instance.
(Inherited from ISession.)

Extension Methods

  NameDescription
Public Extension MethodQuery<(Of <<'(T>)>>) (Defined by LinqExtensionMethods.)

Properties

  NameDescription
Public propertyActionQueue
Get the ActionQueue for this session
Public propertyActiveEntityMode
The entity mode in effect for this session.
(Inherited from ISession.)
Public propertyBatcher
Get the prepared statement Batcher for this session
(Inherited from ISessionImplementor.)
Public propertyCacheMode
The current cache mode.
(Inherited from ISession.)
Public propertyCacheMode (Inherited from ISessionImplementor.)
Public propertyConnection
Gets the ADO.NET connection.
(Inherited from ISession.)
Public propertyConnection (Inherited from ISessionImplementor.)
Public propertyConnectionManager (Inherited from ISessionImplementor.)
Public propertyDefaultReadOnly
The read-only status for entities (and proxies) loaded into this Session.
(Inherited from ISession.)
Public propertyDontFlushFromFind (Inherited from ISessionImplementor.)
Public propertyEnabledFilters
Return the currently enabled filters. The filter map is keyed by filter name, with values corresponding to the FilterImpl instance.
(Inherited from ISessionImplementor.)
Public propertyEntityMode
Retrieve the entity mode in effect for this session.
(Inherited from ISessionImplementor.)
Public propertyFactory
Get the creating SessionFactoryImplementor
(Inherited from ISessionImplementor.)
Public propertyFetchProfile (Inherited from ISessionImplementor.)
Public propertyFlushMode
Determines at which points Hibernate automatically flushes the session.
(Inherited from ISession.)
Public propertyFlushMode (Inherited from ISessionImplementor.)
Public propertyFutureCriteriaBatch (Inherited from ISessionImplementor.)
Public propertyFutureQueryBatch (Inherited from ISessionImplementor.)
Public propertyInterceptor (Inherited from ISessionImplementor.)
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.
(Inherited from ISessionImplementor.)
Public propertyIsConnected
Is the ISession currently connected?
(Inherited from ISession.)
Public propertyIsConnected
Is the ISession currently connected?
(Inherited from ISessionImplementor.)
Public propertyIsEventSource (Inherited from ISessionImplementor.)
Public propertyIsOpen
Is the ISession still open?
(Inherited from ISession.)
Public propertyIsOpen
Is the ISession still open?
(Inherited from ISessionImplementor.)
Public propertyListeners
Retrieves the configured event listeners from this event source.
(Inherited from ISessionImplementor.)
Public propertyPersistenceContext
Get the persistence context for this session
(Inherited from ISessionImplementor.)
Public propertySessionFactory
Get the ISessionFactory that created this instance.
(Inherited from ISession.)
Public propertySessionId (Inherited from ISessionImplementor.)
Public propertyStatistics
Get the statistics for this session.
(Inherited from ISession.)
Public propertyTimestamp
System time before the start of the transaction
(Inherited from ISessionImplementor.)
Public propertyTransaction
Get the current Unit of Work and return the associated ITransaction object.
(Inherited from ISession.)
Public propertyTransactionContext (Inherited from ISessionImplementor.)
Public propertyTransactionInProgress
Does this Session have an active Hibernate transaction or is there a JTA transaction in progress?
(Inherited from ISessionImplementor.)

See Also