C# 클래스 Azavea.Open.DAO.Unqueryable.UnqueryableDaLayer

A base class for data access layers that have no native query support and instead have to manually implement querying.
상속: AbstractDaLayer
파일 보기 프로젝트 열기: azavea/net-dao 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_queryCache Common.Caching.ClearingCache

공개 메소드들

메소드 설명
CreateQuery ( ClassMapping mapping, DaoCriteria crit ) : IDaQuery

Builds the query based on a serializable criteria. The Query object is particular to the implementation, but may contain things like the parameters parsed out, or whatever makes sense to this FastDaoLayer. You can think of this method as a method to convert from the generic DaoCriteria into the specific details necessary for querying.

DisposeOfQuery ( IDaQuery query ) : void

Should be called when you're done with the query. Allows us to cache the objects for reuse.

보호된 메소드들

메소드 설명
UnqueryableDaLayer ( IConnectionDescriptor connDesc, bool supportsNumRecords ) : Azavea.Open.DAO.Criteria

Instantiates the data access layer with the connection descriptor for the data source.

메소드 상세

CreateQuery() 공개 메소드

Builds the query based on a serializable criteria. The Query object is particular to the implementation, but may contain things like the parameters parsed out, or whatever makes sense to this FastDaoLayer. You can think of this method as a method to convert from the generic DaoCriteria into the specific details necessary for querying.
public CreateQuery ( ClassMapping mapping, DaoCriteria crit ) : IDaQuery
mapping ClassMapping The mapping of the table for which to build the query string.
crit Azavea.Open.DAO.Criteria.DaoCriteria The criteria to use to find the desired objects.
리턴 IDaQuery

DisposeOfQuery() 공개 메소드

Should be called when you're done with the query. Allows us to cache the objects for reuse.
public DisposeOfQuery ( IDaQuery query ) : void
query IDaQuery Query you're done using.
리턴 void

UnqueryableDaLayer() 보호된 메소드

Instantiates the data access layer with the connection descriptor for the data source.
protected UnqueryableDaLayer ( IConnectionDescriptor connDesc, bool supportsNumRecords ) : Azavea.Open.DAO.Criteria
connDesc IConnectionDescriptor The connection descriptor that is being used by this FastDaoLayer.
supportsNumRecords bool If true, methods that return numbers of records affected will be /// returning accurate numbers. If false, they will probably return /// FastDAO.UNKNOWN_NUM_ROWS.
리턴 Azavea.Open.DAO.Criteria

프로퍼티 상세

_queryCache 보호되어 있는 프로퍼티

Cache used to store the queries for reuse.
protected Common.Caching.ClearingCache _queryCache
리턴 Common.Caching.ClearingCache