Property | Type | Description | |
---|---|---|---|
holder | ISessionFactoryHolder |
Method | Description | |
---|---|---|
Asc ( ) : NHibernate.Criterion.Order[] |
Ascending Order Returns an array of Ascending Order instances specifing which properties to use to order a result. |
|
Create ( ) : void |
Creates (Saves) a new instance to the database. If within a SessionScope the operation is going to be on hold until NHibernate (or you) decides to flush the session. |
|
CreateAndFlush ( ) : void |
Creates (Saves) a new instance to the database. Even within a SessionScope the operation is going to be flushed immediately. This might have side effects such as flushing (persisting) others operations that were on hold. |
|
Delete ( ) : void |
Deletes the instance from the database. If within a SessionScope the operation is going to be on hold until NHibernate (or you) decides to flush the session. |
|
DeleteAndFlush ( ) : void |
Deletes the instance from the database. Even within a SessionScope the operation is going to be flushed immediately. This might have side effects such as flushing (persisting) others operations that were on hold. |
|
Desc ( ) : NHibernate.Criterion.Order[] |
Descending Order Returns an array of Descending Order instances specifing which properties to use to order a result. |
|
ExecuteQuery ( IActiveRecordQuery query ) : object |
Executes the query.
|
|
Refresh ( ) : void |
Refresh the instance from the database.
|
|
Save ( ) : void |
Saves the instance information to the database. May Create or Update the instance depending on whether it has a valid ID. If within a SessionScope the operation is going to be on hold until NHibernate (or you) decides to flush the session. |
|
SaveAndFlush ( ) : void |
Saves the instance information to the database. May Create or Update the instance depending on whether it has a valid ID. Even within a SessionScope the operation is going to be flushed immediately. This might have side effects such as flushing (persisting) others operations that were on hold. |
|
SaveCopy ( ) : object |
Saves a copy of the instance information to the database. May Create or Update the instance depending on whether it has a valid ID. If within a SessionScope the operation is going to be on hold until NHibernate (or you) decides to flush the session. |
|
SaveCopyAndFlush ( ) : object |
Saves a copy of the instance information to the database. May Create or Update the instance depending on whether it has a valid ID. Even within a SessionScope the operation is going to be flushed immediately. This might have side effects such as flushing (persisting) others operations that were on hold. |
|
ToString ( ) : String |
Return the type of the object with its PK value. Useful for logging/debugging
|
|
Update ( ) : void |
Persists the modification on the instance state to the database. If within a SessionScope the operation is going to be on hold until NHibernate (or you) decides to flush the session. |
|
UpdateAndFlush ( ) : void |
Persists the modification on the instance state to the database. Even within a SessionScope the operation is going to be flushed immediately. This might have side effects such as flushing (persisting) others operations that were on hold. |
Method | Description | |
---|---|---|
Count ( |
Returns the number of records of the specified type in the database
|
|
Count ( |
Returns the number of records of the specified type in the database
|
|
Count ( |
Returns the number of records of the specified type in the database
|
|
Count ( |
Returns the number of records of the specified type in the database
|
|
Create ( object instance ) : void |
Creates (Saves) a new instance to the database.
|
|
CreateAndFlush ( object instance ) : void |
Creates (Saves) a new instance to the database and flushes the session.
|
|
Delete ( object instance ) : void |
Deletes the instance from the database.
|
|
DeleteAll ( |
Deletes all targetType objects, based on the primary keys supplied on pkValues.
|
|
DeleteAll ( |
Deletes all rows for the specified ActiveRecord type This method is usually useful for test cases. |
|
DeleteAll ( |
Deletes all rows for the specified ActiveRecord type that matches the supplied HQL condition This method is usually useful for test cases. |
|
DeleteAndFlush ( object instance ) : void |
Deletes the instance from the database and flushes the session.
|
|
EnumerateQuery ( IActiveRecordQuery query ) : IEnumerable |
Enumerates the query Note: only use if you expect most of the values to exist on the second level cache.
|
|
Execute ( NHibernateDelegate call ) : object |
Invokes the specified delegate passing a valid NHibernate session. Used for custom NHibernate queries.
|
|
Execute ( |
Invokes the specified delegate passing a valid NHibernate session. Used for custom NHibernate queries.
|
|
Exists ( |
Check if there is any records in the db for the target type
|
|
Exists ( |
Check if any instance matching the criteria exists in the database.
|
|
Exists ( |
Check if the id exists in the database.
|
|
Exists ( |
Check if there is any records in the db for the target type
|
|
FindAll ( |
Returns all instances found for the specified type.
|
|
FindAll ( |
Returns all instances found for the specified type according to the criteria
|
|
FindAll ( |
Returns all instances found for the specified type using sort orders and criteria.
|
|
FindAllByProperty ( |
Finds records based on a property value - automatically converts null values to IS NULL style queries.
|
|
FindAllByProperty ( |
Finds records based on a property value - automatically converts null values to IS NULL style queries.
|
|
FindByPrimaryKey ( |
Finds an object instance by an unique ID
|
|
FindByPrimaryKey ( |
Finds an object instance by an unique ID
|
|
FindFirst ( |
Searches and returns the first row.
|
|
FindFirst ( |
Searches and returns the first row.
|
|
FindFirst ( |
Searches and returns the first row.
|
|
FindOne ( |
Searches and returns a row. If more than one is found, throws ActiveRecordException
|
|
FindOne ( |
Searches and returns a row. If more than one is found, throws ActiveRecordException
|
|
Refresh ( object instance ) : void |
Refresh the instance from the database.
|
|
Replicate ( object instance, NHibernate.ReplicationMode replicationMode ) : void |
From NHibernate documentation: Persist all reachable transient objects, reusing the current identifier values. Note that this will not trigger the Interceptor of the Session.
|
|
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.
|
|
SaveAndFlush ( object instance ) : void |
Saves the instance to the database and flushes the session. 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.
|
|
SaveCopy ( object instance ) : object |
Saves a copy of 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.
|
|
SaveCopyAndFlush ( object instance ) : object |
Saves a copy of the instance to the database and flushes the session. 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.
|
|
SlicedFindAll ( |
Returns a portion of the query results (sliced)
|
|
SlicedFindAll ( |
Returns a portion of the query results (sliced)
|
|
SlicedFindAll ( |
Returns a portion of the query results (sliced)
|
|
SlicedFindAll ( |
Returns a portion of the query results (sliced)
|
|
Update ( object instance ) : void |
Persists the modification on the instance state to the database.
|
|
UpdateAndFlush ( object instance ) : void |
Persists the modification on the instance state to the database and flushes the session.
|
Method | Description | |
---|---|---|
AddOrdersToCriteria ( ICriteria criteria, IEnumerable |
||
EnsureInitialized ( |
||
GetModel ( |
Internally used
|
|
InternalCreate ( object instance, bool flush ) : void |
Creates (Saves) a new instance to the database.
|
|
InternalDelete ( object instance, bool flush ) : void |
Deletes the instance from the database.
|
|
InternalSave ( object instance, bool flush ) : 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.
|
|
InternalSaveCopy ( object instance, bool flush ) : object |
Saves a copy of 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.
|
|
InternalUpdate ( object instance, bool flush ) : void |
Persists the modification on the instance state to the database.
|
|
PropertyNamesToOrderArray ( bool asc ) : NHibernate.Criterion.Order[] | ||
Register ( |
Internally used
|
public static Asc ( ) : NHibernate.Criterion.Order[] | ||
return | NHibernate.Criterion.Order[] |
protected static Count ( |
||
targetType | The target type. | |
return | int |
protected static Count ( |
||
targetType | The target type. | |
detachedCriteria | DetachedCriteria | The criteria expression |
return | int |
protected static Count ( |
||
targetType | The target type. | |
criteria | ICriterion | The criteria expression |
return | int |
protected static Count ( |
||
targetType | The target type. | |
filter | string | A sql where string i.e. Person=? and DOB > ? |
return | int |
protected static Create ( object instance ) : void | ||
instance | object | The ActiveRecord instance to be created on the database |
return | void |
protected static CreateAndFlush ( object instance ) : void | ||
instance | object | The ActiveRecord instance to be created on the database |
return | void |
protected static Delete ( object instance ) : void | ||
instance | object | The ActiveRecord instance to be deleted |
return | void |
protected static DeleteAll ( |
||
targetType | The target ActiveRecord type | |
pkValues | IEnumerable | A list of primary keys |
return | int |
protected static DeleteAll ( |
||
type | ActiveRecord type on which the rows on the database should be deleted | |
return | void |
protected static DeleteAll ( |
||
type | ActiveRecord type on which the rows on the database should be deleted | |
where | String | HQL condition to select the rows to be deleted |
return | void |
protected static DeleteAndFlush ( object instance ) : void | ||
instance | object | The ActiveRecord instance to be deleted |
return | void |
public static Desc ( ) : NHibernate.Criterion.Order[] | ||
return | NHibernate.Criterion.Order[] |
protected static EnumerateQuery ( IActiveRecordQuery query ) : IEnumerable | ||
query | IActiveRecordQuery | The query. |
return | IEnumerable |
protected Execute ( NHibernateDelegate call ) : object | ||
call | NHibernateDelegate | The delegate instance |
return | object |
protected static Execute ( |
||
targetType | The target ActiveRecordType | |
call | NHibernateDelegate | The delegate instance |
instance | object | The ActiveRecord instance |
return | object |
public static ExecuteQuery ( IActiveRecordQuery query ) : object | ||
query | IActiveRecordQuery | The query. |
return | object |
protected static Exists ( |
||
targetType | The target type. | |
return | bool |
protected static Exists ( |
||
targetType | The target type. | |
detachedCriteria | DetachedCriteria | The criteria expression |
return | bool |
protected static Exists ( |
||
targetType | The target type. | |
id | object | The id to check on |
return | bool |
protected static Exists ( |
||
targetType | The target type. | |
filter | string | A sql where string i.e. Person=? and DOB > ? |
return | bool |
protected static FindAll ( |
||
targetType | The target type. | |
return |
protected static FindAll ( |
||
targetType | The target type. | |
detachedCriteria | DetachedCriteria | The criteria. |
return |
protected static FindAll ( |
||
targetType | The The target type. | |
orders | NHibernate.Criterion.Order | An |
return |
protected static FindAllByProperty ( |
||
targetType | The target type | |
orderByColumn | String | The column name to be ordered ASC |
property | String | A property name (not a column name) |
value | object | The value to be equals to |
return |
protected static FindAllByProperty ( |
||
targetType | The target type | |
property | String | A property name (not a column name) |
value | object | The value to be equals to |
return |
protected static FindByPrimaryKey ( |
||
targetType | The AR subclass type | |
id | object | ID value |
return | object |
protected static FindByPrimaryKey ( |
||
targetType | The AR subclass type | |
id | object | ID value |
throwOnNotFound | bool | |
return | object |
protected static FindFirst ( |
||
targetType | The target type | |
return | object |
protected static FindFirst ( |
||
targetType | The target type. | |
detachedCriteria | DetachedCriteria | The criteria. |
return | object |
protected static FindFirst ( |
||
targetType | The target type | |
orders | NHibernate.Criterion.Order | The sort order - used to determine which record is the first one |
return | object |
protected static FindOne ( |
||
targetType | The target type | |
return | object |
protected static FindOne ( |
||
targetType | The target type | |
criteria | DetachedCriteria | The criteria |
return | object |
protected static Refresh ( object instance ) : void | ||
instance | object | The ActiveRecord instance to be reloaded |
return | void |
protected static Replicate ( object instance, NHibernate.ReplicationMode replicationMode ) : void | ||
instance | object | The instance. |
replicationMode | NHibernate.ReplicationMode | The replication mode. |
return | void |
protected static Save ( object instance ) : void | ||
instance | object | The ActiveRecord instance to be saved |
return | void |
protected static SaveAndFlush ( object instance ) : void | ||
instance | object | The ActiveRecord instance to be saved |
return | void |
protected static SaveCopy ( object instance ) : object | ||
instance | object | The transient instance to be saved |
return | object |
protected static SaveCopyAndFlush ( object instance ) : object | ||
instance | object | The transient instance to be saved |
return | object |
protected static SlicedFindAll ( |
||
targetType | The target type. | |
firstResult | int | The number of the first row to retrieve. |
maxResults | int | The maximum number of results retrieved. |
return |
protected static SlicedFindAll ( |
||
targetType | The target type. | |
firstResult | int | The number of the first row to retrieve. |
maxResults | int | The maximum number of results retrieved. |
criteria | DetachedCriteria | The criteria expression |
return |
protected static SlicedFindAll ( |
||
targetType | The target type. | |
firstResult | int | The number of the first row to retrieve. |
maxResults | int | The maximum number of results retrieved. |
orders | NHibernate.Criterion.Order | An |
return |
protected static SlicedFindAll ( |
||
targetType | The target type. | |
firstResult | int | The number of the first row to retrieve. |
maxResults | int | The maximum number of results retrieved. |
orders | NHibernate.Criterion.Order | An |
criteria | DetachedCriteria | The criteria expression |
return |
protected static Update ( object instance ) : void | ||
instance | object | The ActiveRecord instance to be updated on the database |
return | void |
protected static UpdateAndFlush ( object instance ) : void | ||
instance | object | The ActiveRecord instance to be updated on the database |
return | void |