Method | Description | |
---|---|---|
Create ( object instance ) : object |
Creates (Saves) a new instance to the database.
|
|
CreateStateless ( object instance ) : object |
Creates (saves or inserts) a new instance to the database using IStatelessSession.
|
|
Delete ( object instance ) : void |
Deletes the instance from the database.
|
|
DeleteAll ( |
Deletes all rows for the specified type
|
|
DeleteAllStateless ( |
Deletes all rows for the specified type using IStatelessSession.
|
|
DeleteStateless ( object instance ) : void |
Deletes the instance from the database using IStatelessSession.
|
|
FindAll ( |
Returns all instances found for the specified type.
|
|
FindAll ( |
Returns all instances found for the specified type using criteria.
|
|
FindAll ( |
Returns all instances found for the specified type using criteria.
|
|
FindAll ( |
Returns all instances found for the specified type using criteria.
|
|
FindAll ( |
Returns all instances found for the specified type using criteria.
|
|
FindAll ( |
Returns a portion of the query results (sliced)
|
|
FindAllStateless ( |
Returns all instances found for the specified type using IStatelessSession.
|
|
FindAllStateless ( |
Returns all instances found for the specified type using criteria and IStatelessSession.
|
|
FindAllStateless ( |
Returns all instances found for the specified type using criteria and IStatelessSession.
|
|
FindAllStateless ( |
Returns all instances found for the specified type using criteria and IStatelessSession.
|
|
FindAllStateless ( |
Returns all instances found for the specified type using criteria and IStatelessSession.
|
|
FindAllStateless ( |
Returns a portion of the query results (sliced) using IStatelessSession.
|
|
FindAllWithCustomQuery ( string queryString ) : |
Finds all with custom query.
|
|
FindAllWithCustomQuery ( string queryString, int firstRow, int maxRows ) : |
Finds all with custom HQL query.
|
|
FindAllWithCustomQueryStateless ( string queryString ) : |
Finds all with custom query using IStatelessSession.
|
|
FindAllWithCustomQueryStateless ( string queryString, int firstRow, int maxRows ) : |
Finds all with custom HQL query using IStatelessSession.
|
|
FindAllWithNamedQuery ( string namedQuery ) : |
Finds all with named HQL query.
|
|
FindAllWithNamedQuery ( string namedQuery, int firstRow, int maxRows ) : |
Finds all with named HQL query.
|
|
FindAllWithNamedQueryStateless ( string namedQuery ) : |
Finds all with named HQL query using IStatelessSession.
|
|
FindAllWithNamedQueryStateless ( string namedQuery, int firstRow, int maxRows ) : |
Finds all with named HQL query using IStatelessSession.
|
|
FindById ( |
Finds an object instance by an unique ID
|
|
FindByIdStateless ( |
Finds an object instance by an unique ID using IStatelessSession.
|
|
NHibernateGenericDao ( ISessionManager sessionManager ) : System |
Initializes a new instance of the NHibernateGenericDao class.
|
|
NHibernateGenericDao ( ISessionManager sessionManager, string sessionFactoryAlias ) : System |
Initializes a new instance of the NHibernateGenericDao class.
|
|
Save ( object instance ) : void |
Saves the instance to the database. If the primary key is unitialized it creates the instance on the database. Otherwise it updates it. If the primary key is assigned, then you must invoke Create or Update instead.
|
|
Update ( object instance ) : void |
Persists the modification on the instance state to the database.
|
|
UpdateStateless ( object instance ) : void |
Persists the modification on the instance state to the database using IStatelessSession.
|
Method | Description | |
---|---|---|
GetSession ( ) : ISession | ||
GetStatelessSession ( ) : IStatelessSession |
public Create ( object instance ) : object | ||
instance | object | The instance to be created on the database |
return | object |
public CreateStateless ( object instance ) : object | ||
instance | object | The instance to be created on the database |
return | object |
public Delete ( object instance ) : void | ||
instance | object | The instance to be deleted from the database |
return | void |
public DeleteAll ( |
||
type | type on which the rows on the database should be deleted | |
return | void |
public DeleteAllStateless ( |
||
type | type on which the rows on the database should be deleted | |
return | void |
public DeleteStateless ( object instance ) : void | ||
instance | object | The instance to be deleted from the database |
return | void |
public FindAll ( |
||
type | The target type. | |
return |
public FindAll ( |
||
type | The target type. | |
criterias | ICriterion | The criteria expression |
return |
public FindAll ( |
||
type | The target type. | |
criterias | ICriterion | The criteria expression |
sortItems | NHibernate.Criterion.Order | An |
return |
public FindAll ( |
||
type | The target type. | |
criterias | ICriterion | The criteria expression |
sortItems | NHibernate.Criterion.Order | An |
firstRow | int | The number of the first row to retrieve. |
maxRows | int | The maximum number of results retrieved. |
return |
public FindAll ( |
||
type | The target type. | |
criterias | ICriterion | The criteria expression |
firstRow | int | The number of the first row to retrieve. |
maxRows | int | The maximum number of results retrieved. |
return |
public FindAll ( |
||
type | The target type. | |
firstRow | int | The number of the first row to retrieve. |
maxRows | int | The maximum number of results retrieved. |
return |
public FindAllStateless ( |
||
type | The target type. | |
return |
public FindAllStateless ( |
||
type | The target type. | |
criterias | ICriterion | The criteria expression |
return |
public FindAllStateless ( |
||
type | The target type. | |
criterias | ICriterion | The criteria expression |
sortItems | NHibernate.Criterion.Order | An |
return |
public FindAllStateless ( |
||
type | The target type. | |
criterias | ICriterion | The criteria expression |
sortItems | NHibernate.Criterion.Order | An |
firstRow | int | The number of the first row to retrieve. |
maxRows | int | The maximum number of results retrieved. |
return |
public FindAllStateless ( |
||
type | The target type. | |
criterias | ICriterion | The criteria expression |
firstRow | int | The number of the first row to retrieve. |
maxRows | int | The maximum number of results retrieved. |
return |
public FindAllStateless ( |
||
type | The target type. | |
firstRow | int | The number of the first row to retrieve. |
maxRows | int | The maximum number of results retrieved. |
return |
public FindAllWithCustomQuery ( string queryString ) : |
||
queryString | string | The query string. |
return |
public FindAllWithCustomQuery ( string queryString, int firstRow, int maxRows ) : |
||
queryString | string | The query string. |
firstRow | int | The number of the first row to retrieve. |
maxRows | int | The maximum number of results retrieved. |
return |
public FindAllWithCustomQueryStateless ( string queryString ) : |
||
queryString | string | The query string. |
return |
public FindAllWithCustomQueryStateless ( string queryString, int firstRow, int maxRows ) : |
||
queryString | string | The query string. |
firstRow | int | The number of the first row to retrieve. |
maxRows | int | The maximum number of results retrieved. |
return |
public FindAllWithNamedQuery ( string namedQuery ) : |
||
namedQuery | string | The named query. |
return |
public FindAllWithNamedQuery ( string namedQuery, int firstRow, int maxRows ) : |
||
namedQuery | string | The named query. |
firstRow | int | The number of the first row to retrieve. |
maxRows | int | The maximum number of results retrieved. |
return |
public FindAllWithNamedQueryStateless ( string namedQuery ) : |
||
namedQuery | string | The named query. |
return |
public FindAllWithNamedQueryStateless ( string namedQuery, int firstRow, int maxRows ) : |
||
namedQuery | string | The named query. |
firstRow | int | The number of the first row to retrieve. |
maxRows | int | The maximum number of results retrieved. |
return |
public FindById ( |
||
type | The AR subclass type | |
id | object | ID value |
return | object |
public FindByIdStateless ( |
||
type | The AR subclass type | |
id | object | ID value |
return | object |
public NHibernateGenericDao ( ISessionManager sessionManager ) : System | ||
sessionManager | ISessionManager | The session manager. |
return | System |
public NHibernateGenericDao ( ISessionManager sessionManager, string sessionFactoryAlias ) : System | ||
sessionManager | ISessionManager | The session manager. |
sessionFactoryAlias | string | The session factory alias. |
return | System |
public Save ( object instance ) : void | ||
instance | object | The instance to be saved |
return | void |
public Update ( object instance ) : void | ||
instance | object | The instance to be updated on the database |
return | void |
public UpdateStateless ( object instance ) : void | ||
instance | object | The instance to be updated on the database |
return | void |