The ISessionImplementor type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() | AddArrayHolder |
Register a IPersistentCollection object for an array
|
![]() | AddNonExist |
new in 2.1 no javadoc
|
![]() | AddUninitializedEntity |
Add an uninitialized instance of an entity class, as a placeholder to ensure object identity.
Must be called before PostHydrate()
|
![]() | AfterLoad |
new in h2.1 and no javadoc
|
![]() | 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 shold release cache softlocks). May be called multiple times during the transaction
completion process.
|
![]() | BeforeLoad |
new in h2.1 and no javadoc
|
![]() | BeforeTransactionCompletion |
Notify the session that the transaction is about to complete
|
![]() | BeginTransaction | Overloaded. |
![]() | CancelQuery |
Cancel execution of the current query.
(Inherited from ISession.) |
![]() | Clear |
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.) |
![]() | Close |
End the ISession by disconnecting from the ADO.NET connection and cleaning up.
(Inherited from ISession.) |
![]() | Contains |
Is this instance associated with this Session?
(Inherited from ISession.) |
![]() | ContainsEntity | |
![]() | Copy |
new in 2.1 no javadoc
|
![]() | CreateCriteria | Overloaded. |
![]() | CreateFilter |
Create a new instance of Query for the given collection and filter string
(Inherited from ISession.) |
![]() | CreateMultiQuery |
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.) |
![]() | CreateQuery |
Create a new instance of Query for the given query string
(Inherited from ISession.) |
![]() | CreateSQLQuery | Overloaded. |
![]() | Delete | Overloaded. |
![]() | DisableFilter |
Disable the named filter for the current session.
(Inherited from ISession.) |
![]() | Disconnect |
Disconnect the ISession from the current ADO.NET connection.
(Inherited from ISession.) |
![]() | Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) |
![]() | EnableFilter |
Enable the named filter for this current session.
(Inherited from ISession.) |
![]() | EndLoadingCollections |
new in h2.1 and no javadoc
|
![]() | Enumerable | Overloaded. |
![]() | EnumerableFilter | Overloaded. |
![]() | Evict |
Remove this instance from the session cache.
(Inherited from ISession.) |
![]() | Filter | Overloaded. |
![]() | Find | Overloaded. |
![]() | Flush |
Force the ISession to flush.
(Inherited from ISession.) |
![]() | Get | Overloaded. |
![]() | GetArrayHolder |
Get the IPersistentCollection object for an array
|
![]() | GetCollection |
Gets the NHibernate collection wrapper from the ISession.
|
![]() | GetCollectionEntry | |
![]() | GetCollectionOwner |
new in 2.1 no javadoc
|
![]() | GetCurrentLockMode |
Determine the current lock mode of the given object
(Inherited from ISession.) |
![]() | GetEnabledFilter |
Retrieve a currently enabled filter by name.
(Inherited from ISession.) |
![]() | GetEntity |
Get the entity instance associated with the given EntityKey
|
![]() | GetEntityIdentifier |
Return the identifier of the persistent object, or null if transient
|
![]() | GetEntityIdentifierIfNotUnsaved |
Return the identifer of the persistent or transient object, or throw
an exception if the instance is "unsaved"
|
![]() | GetEntityPersister |
Get the IEntityPersister for an object
|
![]() | GetEntry |
Retrieve the EntityEntry representation of the given entity.
|
![]() | GetFilterParameterType |
Retreive the type for a given filter parrameter.
|
![]() | GetFilterParameterValue |
Retreive the currently set value for a filter parameter.
|
![]() | GetIdentifier |
Return the identifier of an entity instance cached by the ISession
(Inherited from ISession.) |
![]() | GetLoadedCollectionKey |
Get the pre-flush identifier of the collection
|
![]() | GetLoadingCollection |
new in h2.1 and no javadoc
|
![]() | GetLockMode |
Get the lock mode of the entity
|
![]() | GetNamedQuery |
Obtain an instance of IQuery for a named query string defined in the
mapping file.
(Inherited from ISession.) |
![]() | GetNamedSQLQuery | |
![]() | GetQueries | |
![]() | GetSessionImplementation |
Gets the session implementation.
(Inherited from ISession.) |
![]() | GetSnapshot |
Get the snapshot of the pre-flush collection state
|
![]() | GetVersion |
Get the current version of the entity
|
![]() | ImmediateLoad |
Load an instance immediately. Do not return a proxy.
|
![]() | InitializeCollection |
Initialize the collection (if not already initialized)
|
![]() | InitializeEntity |
Perform the second step of 2-phase load (ie. fully initialize the entity instance)
|
![]() | InitializeNonLazyCollections |
new in h2.1 and no javadoc
|
![]() | 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.
|
![]() | IsDirty |
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.) |
![]() | IsInverseCollection |
Is this the "inverse" end of a bidirectional association?
|
![]() | IsSaved | |
![]() | List | Overloaded. |
![]() | Load | Overloaded. |
![]() | LoadByUniqueKey |
Load an instance by a unique key that is not the primary key.
|
![]() | Lock |
Obtain the specified lock level upon the given object.
(Inherited from ISession.) |
![]() | PostDelete |
After actually deleting a row, record the fact that the instance no longer exists on the
database (needed for identity-column key generation)
|
![]() | PostHydrate |
Register the "hydrated" state of an entity instance, after the first step of 2-phase loading
|
![]() | ProxyFor | Overloaded. |
![]() | Reconnect | Overloaded. |
![]() | Refresh | Overloaded. |
![]() | Replicate |
Persist all reachable transient objects, reusing the current identifier
values. Note that this will not trigger the Interceptor of the Session.
(Inherited from ISession.) |
![]() | Save | Overloaded. |
![]() | SaveOrUpdate |
Either Save() or Update() the given instance, depending upon the value of
its identifier property.
(Inherited from ISession.) |
![]() | SaveOrUpdateCopy | Overloaded. |
![]() | SetLockMode |
Set the lock mode of the entity to the given lock mode
|
![]() | Update | Overloaded. |
Properties
Name | Description | |
---|---|---|
![]() | Batcher |
Get the prepared statement Batcher for this session
|
![]() | BatchFetchQueue | |
![]() | CollectionEntries | |
![]() | Connection |
Gets the ADO.NET connection.
(Inherited from ISession.) |
![]() | EnabledFilters |
Return the currently enabled filters. The filter map is keyed by filter
name, with values corresponding to the {@link org.hibernate.impl.FilterImpl}
instance.
|
![]() | Factory |
Get the creating SessionFactoryImplementor
|
![]() | FlushMode |
Determines at which points Hibernate automatically flushes the session.
(Inherited from ISession.) |
![]() | Interceptor | |
![]() | IsConnected |
Is the ISession currently connected?
(Inherited from ISession.) |
![]() | IsOpen |
Is the ISession still open?
(Inherited from ISession.) |
![]() | SessionFactory |
Get the ISessionFactory that created this instance.
(Inherited from ISession.) |
![]() | Timestamp |
System time before the start of the transaction
|
![]() | Transaction |
Get the current Unit of Work and return the associated ITransaction object.
(Inherited from ISession.) |