isolationLevel
return ITransaction |
A transaction instance having the specified isolation level |
IsolationLevel isolationLevel |
Isolation level for the new transaction |
Type ISession
Namespace NHibernate
Interfaces IDisposable
isolationLevel
return ITransaction |
A transaction instance having the specified isolation level |
IsolationLevel isolationLevel |
Isolation level for the new transaction |
ITransaction
object.
If a new underlying transaction is required, begin the transaction. Otherwise
continue the new work in the context of the existing underlying transaction.
The class of the returned ITransaction object is determined by
the property hibernate.transaction_factory
return ITransaction |
A transaction instance |
May be called from one thread to stop execution of a query in another thread. Use with care!
ScrollableResults
.
ISession
by disconnecting from the ADO.NET connection and cleaning up.It is not strictly necessary toClose()
theISession
but you must at leastDisconnect()
it.
return IDbConnection |
${WriteSummary(content)} |
return bool |
true if the given instance is associated with this Session |
object obj |
an instance of a persistent class |
Criteria
for the entity class with a specific alias
return ICriteria |
An ICriteria object |
Type persistentClass |
The class to Query |
string alias |
The alias of the entity |
Criteria
for the entity class.
return ICriteria |
An ICriteria object |
Type persistentClass |
The class to Query |
Query
for the given collection and filter string
return IQuery |
A query |
object collection |
A persistent collection |
string queryString |
A hibernate query |
return IMultiQuery |
An IMultiQuery that can return a list of all the results of all the queries. Note that each query result is itself usually a list. |
Query
for the given query string
return IQuery |
The query |
string queryString |
A hibernate query string |
return IQuery |
|
string sql |
|
String[] returnAliases |
|
Type[] returnClasses |
return int |
The number of instances deleted |
string query |
The query string |
object value |
A value to be written to a "?" placeholer in the query |
IType type |
The hibernate type of value. |
The argument may be an instance associated with the receiving ISession
or a
transient instance with an identifier associated with existing persistent state.
object obj |
The instance to be removed |
return int |
|
string query |
|
Object[] values |
|
IType[] types |
return int |
Returns the number of objects deleted. |
string query |
The query string |
string filterName |
The name of the filter to be disabled. |
ISession
from the current ADO.NET connection.If the connection was obtained by Hibernate, close it or return it to the connection pool. Otherwise return it to the application. This is used by applications which require long transactions.
return IDbConnection |
${WriteSummary(content)} |
return IFilter |
The Filter instance representing the enabled fiter. |
string filterName |
The name of the filter to be enabled. |
return IEnumerable |
|
string query |
|
Object[] values |
|
IType[] types |
Docu.Documentation.Comments.Paragraph Docu.Documentation.Comments.Paragraph
return IEnumerable |
An enumerator |
string query |
The query string |
object value |
A value to be written to a "?" placeholder in the query string |
IType type |
The hibernate type of the value |
Docu.Documentation.Comments.Paragraph Docu.Documentation.Comments.Paragraph
return IEnumerable |
An enumerator |
string query |
The query string |
Changes to the instance will not be synchronized with the database. This operation cascades to associated instances if the association is mapped withcascade="all"
orcascade="all-delete-orphan"
.
object obj |
a persistent instance |
return ICollection |
|
object collection |
|
string filter |
|
Object[] values |
|
IType[] types |
A filter is a Hibernate query that may refer to this
, the collection element.
Filters allow efficient access to very large lazy collections. (Executing the filter
does not initialize the collection.)
return ICollection |
A collection |
object collection |
A persistent collection to filter |
string filter |
A filter query string |
object value |
A value to be written to a "?" placeholder in the query |
IType type |
The hibernate type of value |
A filter is a Hibernate query that may refer to this
, the collection element.
Filters allow efficient access to very large lazy collections. (Executing the filter
does not initialize the collection.)
return ICollection |
The resulting collection |
object collection |
A persistent collection to filter |
string filter |
A filter query string |
See List for implications of cache
usage.
return IList |
A distinct list of instances |
string query |
A query expressed in Hibernate's query language |
return IList |
|
string query |
|
Object[] values |
|
IType[] types |
ISession
to flush.
Must be called at the end of a unit of work, before commiting the transaction and closing
the session ( Transaction.Commit()
calls this method). if the process
of synchronising the underlying persistent store with persistable state held in memory.
return object |
a persistent instance or null |
Type clazz |
a persistent class |
object id |
an identifier |
LockMode lockMode |
the lock mode |
return object |
a persistent instance or null |
Type clazz |
a persistent class |
object id |
an identifier |
return T |
|
object id |
return LockMode |
The current lock mode |
object obj |
A persistent instance |
return IFilter |
The Filter instance representing the enabled fiter. |
string filterName |
The name of the filter to be retrieved. |
ISession
Throws an exception if the instance is transient or associated with a different ISession
return object |
the identifier |
object obj |
a persistent instance |
This method is provided in order to get the implementation of the session from wrapper implementions. Implementors of the interface should return the NHibernate implementation of this method.
return ISessionImplementor |
An NHibernate implementation of the interface |
ISession
contain any changes which must be
synchronized with the database? Would any SQL be executed if
we flushed this session?
return bool |
object obj |
An "empty" instance of the persistent class |
object id |
A valid identifier of an existing persistent instance of the class |
You should not use this method to determine if an instance exists (use a query or Get instead). Use this only to retrieve an instance that you assume exists, where non-existence would be an actual error.
return object |
The persistent instance or proxy |
Type theType |
A persistent class |
object id |
A valid identifier of an existing persistent instance of the class |
return object |
the persistent instance |
Type theType |
A persistent class |
object id |
A valid identifier of an existing persistent instance of the class |
LockMode lockMode |
The lock level |
return T |
the persistent instance |
object id |
A valid identifier of an existing persistent instance of the class |
LockMode lockMode |
The lock level |
You should not use this method to determine if an instance exists (use a query or Get``1 instead). Use this only to retrieve an instance that you assume exists, where non-existence would be an actual error.
return T |
The persistent instance or proxy |
object id |
A valid identifier of an existing persistent instance of the class |
object obj |
A persistent instance |
LockMode lockMode |
The lock level |
This is used by applications which require long transactions
This is used by applications which require long transactions
IDbConnection connection |
An ADO.NET connection |
Docu.Documentation.Comments.Paragraph Docu.Documentation.Comments.Paragraph
object obj |
A persistent instance |
LockMode
.It is inadvisable to use this to implement long-running sessions that span many business tasks. This method is, however, useful in certain special circumstances.
object obj |
a persistent or transient instance |
LockMode lockMode |
the lock mode to use |
object obj |
|
ReplicationMode replicationMode |
object obj |
A transient instance of a persistent class |
object id |
An unused valid identifier |
Save will use the current value of the identifier property if the Assigned
generator is used.
return object |
The generated identifier |
object obj |
A transient instance of a persistent class |
Save()
or Update()
the given instance, depending upon the value of
its identifier property.
By default the instance is always saved. This behaviour may be adjusted by specifying
an unsaved-value
attribute of the identifier property mapping
object obj |
A transient instance containing new or updated state |
return object |
an updated persistent instance |
object obj |
a transient instance with state to be copied |
return object |
an updated persistent instance |
object obj |
a persistent or transient instance with state to be copied |
object id |
the identifier of the instance to copy to |
${WriteSummary(content)}
object obj |
A transient instance containing updated state |
An exception is thrown if there is a persistent instance with the same identifier in the current session.
object obj |
A transient instance containing updated state |
object id |
Identifier of persistent instance |
Applications are responsible for calling commit/rollback upon the connection before
closing the ISession
.
return IDbConnection
|
For a readonly session, it is reasonable to set the flush mode to FlushMode.Never
at the start of the session (in order to achieve some extra performance).
return FlushMode
|
ISession
currently connected?
return bool
|
ISession
still open?
return bool
|
return ISessionFactory
|
ITransaction
object.
return ITransaction
|