C# Класс Castle.ActiveRecord.ActiveRecordBaseQuery

Base class for all ActiveRecord queries.
Наследование: IActiveRecordQuery, ICloneable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
queryModifiers IList

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

ActiveRecordBaseQuery() защищенный Метод

Initializes a new instance of the ActiveRecordBaseQuery class.
protected ActiveRecordBaseQuery ( Type rootType ) : System
rootType System.Type The type.
Результат System

AddModifier() защищенный Метод

Adds a query modifier, to be applied with ApplyModifiers.
protected AddModifier ( IQueryModifier modifier ) : void
modifier IQueryModifier The modifier
Результат void

ApplyModifiers() защищенный Метод

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
Результат void

Clone() публичный Метод

Just a default clone implementation...
public Clone ( ) : object
Результат object

CreateQuery() защищенный абстрактный Метод

Creates the IQuery instance.
protected abstract CreateQuery ( ISession session ) : IQuery
session ISession
Результат IQuery

GetModifiers() публичный статический Метод

Gets the internal list of modifiers used by the specified query. NOT INTENTED FOR NORMAL USE.
public static GetModifiers ( ActiveRecordBaseQuery query ) : IList
query ActiveRecordBaseQuery
Результат IList

InternalEnumerate() защищенный Метод

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
Результат IEnumerable

InternalExecute() защищенный Метод

Simply creates the query and then call its IQuery.List() method.
protected InternalExecute ( ISession session ) : object
session ISession The NHibernate's
Результат object

Описание свойств

queryModifiers защищенное свойство

list of modifiers for the query
protected IList queryModifiers
Результат IList