C# Class Castle.ActiveRecord.ActiveRecordBaseQuery

Base class for all ActiveRecord queries.
Inheritance: IActiveRecordQuery, ICloneable
Afficher le fichier Open project: nats/castle-1.0.3-mono Class Usage Examples

Protected Properties

Свойство Type Description
queryModifiers IList

Méthodes publiques

Méthode Description
Clone ( ) : object

Just a default clone implementation...

GetModifiers ( ActiveRecordBaseQuery query ) : IList

Gets the internal list of modifiers used by the specified query. NOT INTENTED FOR NORMAL USE.

Méthodes protégées

Méthode Description
ActiveRecordBaseQuery ( Type rootType ) : System

Initializes a new instance of the ActiveRecordBaseQuery class.

AddModifier ( IQueryModifier modifier ) : void

Adds a query modifier, to be applied with ApplyModifiers.

ApplyModifiers ( IQuery query ) : void

Applies the modifiers added with AddModifier.

This method is not called automatically by ActiveRecordBaseQuery, but is called from HqlBasedQuery.

CreateQuery ( ISession session ) : IQuery

Creates the IQuery instance.

InternalEnumerate ( ISession session ) : IEnumerable

Simply creates the query and then call its IQuery.Enumerable() method. Note: Only use when you expect most of the results to be in the second level cache

InternalExecute ( ISession session ) : object

Simply creates the query and then call its IQuery.List() method.

Private Methods

Méthode Description
AddQuery ( ISession session, IMultiQuery multiquery ) : void

Add this query to a multiquery

GetResultsArray ( Type t, IList list, bool distinct ) : Array
GetResultsArray ( Type t, IList list, int entityIndex, bool distinct ) : Array
IActiveRecordQuery ( ISession session ) : IEnumerable

Enumerates over the result of the query. Note: Only use if you expect most of your values to already exist in the second level cache!

IActiveRecordQuery ( ISession session ) : object

Executes the specified query and return the results

Method Details

ActiveRecordBaseQuery() protected méthode

Initializes a new instance of the ActiveRecordBaseQuery class.
protected ActiveRecordBaseQuery ( Type rootType ) : System
rootType System.Type The type.
Résultat System

AddModifier() protected méthode

Adds a query modifier, to be applied with ApplyModifiers.
protected AddModifier ( IQueryModifier modifier ) : void
modifier IQueryModifier The modifier
Résultat void

ApplyModifiers() protected méthode

Applies the modifiers added with AddModifier.
This method is not called automatically by ActiveRecordBaseQuery, but is called from HqlBasedQuery.
protected ApplyModifiers ( IQuery query ) : void
query IQuery The query in which to apply the modifiers
Résultat void

Clone() public méthode

Just a default clone implementation...
public Clone ( ) : object
Résultat object

CreateQuery() protected abstract méthode

Creates the IQuery instance.
protected abstract CreateQuery ( ISession session ) : IQuery
session ISession
Résultat IQuery

GetModifiers() public static méthode

Gets the internal list of modifiers used by the specified query. NOT INTENTED FOR NORMAL USE.
public static GetModifiers ( ActiveRecordBaseQuery query ) : IList
query ActiveRecordBaseQuery
Résultat IList

InternalEnumerate() protected méthode

Simply creates the query and then call its IQuery.Enumerable() method. Note: Only use when you expect most of the results to be in the second level cache
protected InternalEnumerate ( ISession session ) : IEnumerable
session ISession The NHibernate's
Résultat IEnumerable

InternalExecute() protected méthode

Simply creates the query and then call its IQuery.List() method.
protected InternalExecute ( ISession session ) : object
session ISession The NHibernate's
Résultat object

Property Details

queryModifiers protected_oe property

list of modifiers for the query
protected IList queryModifiers
Résultat IList