The SessionImpl type exposes the following members.

Methods

  NameDescription
Protected methodAfterOperation (Inherited from AbstractSessionImpl.)
Public methodAfterTransactionBegin (Overrides AbstractSessionImpl..::..AfterTransactionBegin(ITransaction).)
Public methodAfterTransactionCompletion
Ensure that the locks are downgraded to None and that all of the softlocks in the NHibernate.Cache have been released.
(Overrides AbstractSessionImpl..::..AfterTransactionCompletion(Boolean, ITransaction).)
Public methodBeforeTransactionCompletion (Overrides AbstractSessionImpl..::..BeforeTransactionCompletion(ITransaction).)
Public methodBeginTransaction()()()()
Public methodBeginTransaction(IsolationLevel)
Public methodBestGuessEntityName (Overrides AbstractSessionImpl..::..BestGuessEntityName(Object).)
Public methodCancelQuery
Protected methodCheckAndUpdateSessionStatus (Inherited from AbstractSessionImpl.)
Public methodClear
Public methodClose
Close the session and release all resources

Remarks

Do not call this method inside a transaction scope, use Dispose instead, since Close() is not aware of distributed transactions
Public methodCloseSessionFromDistributedTransaction (Overrides AbstractSessionImpl..::..CloseSessionFromDistributedTransaction()()()().)
Public methodContains
Protected methodConvert (Inherited from AbstractSessionImpl.)
Public methodCreateCriteria(String)
Public methodCreateCriteria(Type)
Public methodCreateCriteria(String, String)
Public methodCreateCriteria(Type, String)
Public methodCreateCriteria<(Of <<'(T>)>>)()()()()
Public methodCreateCriteria<(Of <<'(T>)>>)(String)
Public methodCreateFilter
Public methodCreateMultiCriteria
Public methodCreateMultiQuery
Public methodCreateQuery(String) (Inherited from AbstractSessionImpl.)
Public methodCreateQuery(IQueryExpression) (Inherited from AbstractSessionImpl.)
Public methodCreateSQLQuery (Overrides AbstractSessionImpl..::..CreateSQLQuery(String).)
Public methodDelete(Object)
Delete a persistent object
Public methodDelete(String)
Public methodDelete(String, Object)
Delete a persistent object (by explicit entity name)
Public methodDelete(String, Object, IType)
Public methodDelete(String, array<Object>[]()[][], array<IType>[]()[][])
Public methodDelete(String, Object, Boolean, ISet)
Cascade delete an entity instance
Public methodDisableFilter
Public methodDisconnect
Public methodDispose
Perform a soft (distributed transaction aware) close of the session
Public methodEnableFilter
Protected methodEnlistInAmbientTransactionIfNeeded (Inherited from AbstractSessionImpl.)
Public methodEnumerable(String, QueryParameters) (Overrides AbstractSessionImpl..::..Enumerable(String, QueryParameters).)
Public methodEnumerable<(Of <<'(T>)>>)(String, QueryParameters) (Overrides AbstractSessionImpl..::..Enumerable(String, QueryParameters).)
Public methodEnumerableFilter(Object, String, QueryParameters) (Overrides AbstractSessionImpl..::..EnumerableFilter(Object, String, QueryParameters).)
Public methodEnumerableFilter<(Of <<'(T>)>>)(Object, String, QueryParameters) (Overrides AbstractSessionImpl..::..EnumerableFilter(Object, String, QueryParameters).)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodErrorIfClosed (Inherited from AbstractSessionImpl.)
Public methodEvict
remove any hard references to the entity that are held by the infrastructure (references held by application or other persistant instances are okay)
Public methodExecuteNativeUpdate (Overrides AbstractSessionImpl..::..ExecuteNativeUpdate(NativeSQLQuerySpecification, QueryParameters).)
Public methodExecuteUpdate (Overrides AbstractSessionImpl..::..ExecuteUpdate(String, QueryParameters).)
Protected methodFinalize
Finalizer that ensures the object is correctly disposed of.
(Overrides Object..::..Finalize()()()().)
Public methodFlush
Public methodForceFlush
Force an immediate flush
Public methodGet(String, Object)
Public methodGet(Type, Object)
Public methodGet(Type, Object, LockMode)
Load the data for the object with the specified id into a newly created object using "for update", if supported. A new key will be assigned to the object. This should return an existing proxy where appropriate. If the object does not exist in the database, null is returned.
Public methodGet<(Of <<'(T>)>>)(Object)
Public methodGet<(Of <<'(T>)>>)(Object, LockMode)
Public methodGetContextEntityIdentifier
Get the id value for an object that is actually associated with the session. This is a bit stricter than GetEntityIdentifierIfNotUnsaved().
(Overrides AbstractSessionImpl..::..GetContextEntityIdentifier(Object).)
Public methodGetCurrentLockMode
Public methodGetEnabledFilter
Public methodGetEntityName
Public methodGetEntityPersister (Overrides AbstractSessionImpl..::..GetEntityPersister(String, Object).)
Public methodGetEntityUsingInterceptor (Overrides AbstractSessionImpl..::..GetEntityUsingInterceptor(EntityKey).)
Public methodGetFilterParameterType (Overrides AbstractSessionImpl..::..GetFilterParameterType(String).)
Public methodGetFilterParameterValue (Overrides AbstractSessionImpl..::..GetFilterParameterValue(String).)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Protected methodGetHQLQueryPlan(String, Boolean) (Inherited from AbstractSessionImpl.)
Protected methodGetHQLQueryPlan(IQueryExpression, Boolean) (Inherited from AbstractSessionImpl.)
Public methodGetIdentifier
Not for internal use
Public methodGetNamedQuery (Inherited from AbstractSessionImpl.)
Public methodGetNamedSQLQuery (Inherited from AbstractSessionImpl.)
Protected methodGetNativeSQLQueryPlan (Inherited from AbstractSessionImpl.)
Public methodGetQueries (Overrides AbstractSessionImpl..::..GetQueries(String, Boolean).)
Public methodGetSession
Public methodGetSessionImplementation
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGuessEntityName (Overrides AbstractSessionImpl..::..GuessEntityName(Object).)
Public methodImmediateLoad
Load the data for the object with the specified id into a newly created object. This is only called when lazily initializing a proxy. Do NOT return a proxy.
(Overrides AbstractSessionImpl..::..ImmediateLoad(String, Object).)
Public methodInitialize (Inherited from AbstractSessionImpl.)
Public methodInitializeCollection
called by a collection that wants to initialize itself
(Overrides AbstractSessionImpl..::..InitializeCollection(IPersistentCollection, Boolean).)
Public methodInstantiate(String, Object) (Overrides AbstractSessionImpl..::..Instantiate(String, Object).)
Public methodInstantiate(IEntityPersister, Object)
Give the interceptor an opportunity to override the default instantiation
Public methodInternalLoad
Return the object with the specified id or throw exception if no row with that id exists. Defer the load, return a new proxy or return an existing proxy if possible. Do not check if the object was deleted.
(Overrides AbstractSessionImpl..::..InternalLoad(String, Object, Boolean, Boolean).)
Public methodIsDirty
Public methodIsReadOnly
Is the specified entity (or proxy) read-only?
Public methodList(CriteriaImpl) (Overrides AbstractSessionImpl..::..List<(Of <<'(T>)>>)(CriteriaImpl).)
Public methodList(String, QueryParameters) (Overrides AbstractSessionImpl..::..List(String, QueryParameters).)
Public methodList(CriteriaImpl, IList) (Overrides AbstractSessionImpl..::..List(CriteriaImpl, IList).)
Public methodList(IQueryExpression, QueryParameters) (Inherited from AbstractSessionImpl.)
Public methodList(NativeSQLQuerySpecification, QueryParameters) (Overrides AbstractSessionImpl..::..List(NativeSQLQuerySpecification, QueryParameters).)
Public methodList(String, QueryParameters, IList) (Overrides AbstractSessionImpl..::..List(String, QueryParameters, IList).)
Public methodList(IQueryExpression, QueryParameters, IList) (Overrides AbstractSessionImpl..::..List(IQueryExpression, QueryParameters, IList).)
Public methodList(NativeSQLQuerySpecification, QueryParameters, IList) (Overrides AbstractSessionImpl..::..List(NativeSQLQuerySpecification, QueryParameters, IList).)
Public methodList<(Of <<'(T>)>>)(CriteriaImpl) (Overrides AbstractSessionImpl..::..List<(Of <<'(T>)>>)(CriteriaImpl).)
Public methodList<(Of <<'(T>)>>)(String, QueryParameters) (Overrides AbstractSessionImpl..::..List(String, QueryParameters).)
Public methodList<(Of <<'(T>)>>)(NativeSQLQuerySpecification, QueryParameters) (Overrides AbstractSessionImpl..::..List(NativeSQLQuerySpecification, QueryParameters).)
Public methodListCustomQuery(ICustomQuery, QueryParameters, IList) (Overrides AbstractSessionImpl..::..ListCustomQuery(ICustomQuery, QueryParameters, IList).)
Public methodListCustomQuery<(Of <<'(T>)>>)(ICustomQuery, QueryParameters) (Overrides AbstractSessionImpl..::..ListCustomQuery<(Of <<'(T>)>>)(ICustomQuery, QueryParameters).)
Public methodListFilter(Object, String, QueryParameters) (Overrides AbstractSessionImpl..::..ListFilter(Object, String, QueryParameters).)
Public methodListFilter<(Of <<'(T>)>>)(Object, String, QueryParameters) (Overrides AbstractSessionImpl..::..ListFilter(Object, String, QueryParameters).)
Public methodLoad(Object, Object)
Public methodLoad(String, Object)
Public methodLoad(Type, Object)
Public methodLoad(String, Object, LockMode)
Public methodLoad(Type, Object, LockMode)
Load the data for the object with the specified id into a newly created object using "for update", if supported. A new key will be assigned to the object. This should return an existing proxy where appropriate. If the object does not exist in the database, an exception is thrown.
Public methodLoad<(Of <<'(T>)>>)(Object)
Public methodLoad<(Of <<'(T>)>>)(Object, LockMode)
Public methodLock(Object, LockMode)
Public methodLock(String, Object, LockMode)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMerge(Object)
Public methodMerge(String, Object)
Public methodMerge(String, Object, IDictionary)
Cascade merge an entity instance
Public methodMerge<(Of <<'(T>)>>)(T)
Public methodMerge<(Of <<'(T>)>>)(String, T)
Public methodPersist(Object)
Public methodPersist(String, Object)
Public methodPersist(String, Object, IDictionary)
Cascade persist an entity instance
Public methodPersistOnFlush(Object)
Public methodPersistOnFlush(String, Object)
Public methodPersistOnFlush(String, Object, IDictionary)
Cascade persist an entity instance during the flush process
Public methodQueryOver<(Of <<'(T>)>>)()()()()
Public methodQueryOver<(Of <<'(T>)>>)(Expression<(Of <<'(Func<(Of <<'(T>)>>)>)>>))
Public methodQueryOver<(Of <<'(T>)>>)(String)
Public methodQueryOver<(Of <<'(T>)>>)(String, Expression<(Of <<'(Func<(Of <<'(T>)>>)>)>>))
Public methodReconnect()()()()
Public methodReconnect(IDbConnection)
Public methodRefresh(Object)
Public methodRefresh(Object, LockMode)
Public methodRefresh(Object, IDictionary)
Cascade refresh an entity instance
Public methodReplicate(Object, ReplicationMode)
Public methodReplicate(String, Object, ReplicationMode)
Public methodSave(Object)
Save a transient object. An id is generated, assigned to the object and returned
Public methodSave(Object, Object)
Save a transient object with a manually assigned ID
Public methodSave(String, Object)
Public methodSaveOrUpdate(Object)
Public methodSaveOrUpdate(String, Object)
Public methodSaveOrUpdateCopy(Object) Obsolete.
Public methodSaveOrUpdateCopy(Object, Object) Obsolete.
Public methodSaveOrUpdateCopy(String, Object, IDictionary) Obsolete.
Cascade copy an entity instance
Public methodSetBatchSize
Protected methodSetClosed (Inherited from AbstractSessionImpl.)
Public methodSetReadOnly
Change the read-only status of an entity (or proxy).
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate(Object)
Public methodUpdate(Object, Object)
Public methodUpdate(String, Object)

Extension Methods

  NameDescription
Public Extension MethodAs<(Of <<'(T>)>>) (Defined by TypeHelperExtensionMethods.)
Public Extension MethodIsBetween
Apply a "between" constraint to the named property Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.)
Public Extension MethodIsIn(array<Object>[]()[][])Overloaded.
Apply an "in" constraint to the named property Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.)
Public Extension MethodIsIn(ICollection)Overloaded.
Apply an "in" constraint to the named property Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.)
Public Extension MethodIsProxy (Defined by NHibernateProxyHelper.)
Public Extension MethodQuery<(Of <<'(T>)>>) (Defined by LinqExtensionMethods.)
Public Extension MethodToTypeParameters (Defined by ReflectHelper.)

Properties

  NameDescription
Public propertyActionQueue
Get the ActionQueue for this session
Public propertyActiveEntityMode
Public propertyBatcher
Public propertyCacheMode (Overrides AbstractSessionImpl..::..CacheMode.)
Public propertyConnection (Overrides AbstractSessionImpl..::..Connection.)
Public propertyConnectionManager (Overrides AbstractSessionImpl..::..ConnectionManager.)
Public propertyConnectionReleaseMode
Public propertyDefaultReadOnly
The read-only status for entities (and proxies) loaded into this Session.
Public propertyDontFlushFromFind (Overrides AbstractSessionImpl..::..DontFlushFromFind.)
Public propertyEnabledFilters (Overrides AbstractSessionImpl..::..EnabledFilters.)
Public propertyEntityMode (Overrides AbstractSessionImpl..::..EntityMode.)
Public propertyFactory (Inherited from AbstractSessionImpl.)
Public propertyFetchProfile (Overrides AbstractSessionImpl..::..FetchProfile.)
Public propertyFlushBeforeCompletionEnabled
Public propertyFlushMode
Public propertyFutureCriteriaBatch (Overrides AbstractSessionImpl..::..FutureCriteriaBatch.)
Public propertyFutureQueryBatch (Overrides AbstractSessionImpl..::..FutureQueryBatch.)
Public propertyInterceptor (Overrides AbstractSessionImpl..::..Interceptor.)
Protected propertyIsAlreadyDisposed (Inherited from AbstractSessionImpl.)
Public propertyIsAutoCloseSessionEnabled
Public propertyIsClosed (Inherited from AbstractSessionImpl.)
Public propertyIsConnected
Gets if the ISession is connected.
(Overrides AbstractSessionImpl..::..IsConnected.)
Public propertyIsEventSource (Overrides AbstractSessionImpl..::..IsEventSource.)
Public propertyIsOpen (Overrides AbstractSessionImpl..::..IsOpen.)
Public propertyListeners
Retrieves the configured event listeners from this event source.
(Overrides AbstractSessionImpl..::..Listeners.)
Public propertyPersistenceContext (Overrides AbstractSessionImpl..::..PersistenceContext.)
Public propertySessionFactory
Public propertySessionId (Inherited from AbstractSessionImpl.)
Public propertyShouldAutoClose
Public propertyStatistics
Get the statistics for this session.
Public propertyTimestamp
Public propertyTransaction
Public propertyTransactionContext (Inherited from AbstractSessionImpl.)
Public propertyTransactionInProgress (Overrides AbstractSessionImpl..::..TransactionInProgress.)

See Also