C# Class Castle.MonoRail.ActiveRecordSupport.Pagination.ARPaginableCriteria

A paginable criteria. Mimics the ActiveRecordMediator.FindAll(Type) interface.
Inheritance: IARPaginableDataSource
Show file Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

Method Description
ARPaginableCriteria ( Type targetType ) : System
ARPaginableCriteria ( Type targetType, NHibernate.Expression.Order orders ) : System
ListAll ( ) : IEnumerable
ObtainCount ( ) : int

Implementors should execute a query to return the record count

This needs a performance boost. Couldn't think of a better way of get the count.

Paginate ( int pageSize, int currentPage ) : IEnumerable

Private Methods

Method Description
InternalExecute ( bool skipPagination ) : IEnumerable

Method Details

ARPaginableCriteria() public method

public ARPaginableCriteria ( Type targetType ) : System
targetType System.Type
return System

ARPaginableCriteria() public method

public ARPaginableCriteria ( Type targetType, NHibernate.Expression.Order orders ) : System
targetType System.Type
orders NHibernate.Expression.Order
return System

ListAll() public method

public ListAll ( ) : IEnumerable
return IEnumerable

ObtainCount() public method

Implementors should execute a query to return the record count
This needs a performance boost. Couldn't think of a better way of get the count.
public ObtainCount ( ) : int
return int

Paginate() public method

public Paginate ( int pageSize, int currentPage ) : IEnumerable
pageSize int
currentPage int
return IEnumerable