C# Class NSoft.NFramework.Data.NHibernateEx.CriteriaTool

Show file Open project: debop/NFramework Class Usage Examples

Public Methods

Method Description
GetRootCriteria ( this criteria ) : CriteriaImpl

Get Root Criteria

GetRootType ( this criteria ) : Type

Get the entity type in criteria

GetRootType ( this detachedCriteria, ISession session ) : Type

Get the root entity type in criteria

GetSession ( this criteria ) : ISessionImplementor

criteria가 사용하는 ISessionImplementor을 반환합니다.

IsBetweenCriterion ( this propertyName, object lo, object hi ) : ICriterion

Between (상하한을 포함하는 구간의 값을 구한다. 상하한에 대한 구간 검증은 하지 않는다!!!)

IsInRangeCriterion ( this value, string loPropertyName, string hiPropertyName ) : ICriterion

지정한 값이 두 속성의 값 범위 안에 있을 때 ( Between 의 반대 개념 )

IsOverlapCriterion ( this period, string loPropertyName, string hiPropertyName ) : ICriterion

주어진 기간이 오버랩되는지를 파악하는 Criterion

Private Methods

Method Description
ToMatchString ( this matchString, NHibernate.Criterion.MatchMode matchMode ) : string

Method Details

GetRootCriteria() public static method

Get Root Criteria
public static GetRootCriteria ( this criteria ) : CriteriaImpl
criteria this
return CriteriaImpl

GetRootType() public static method

Get the entity type in criteria
criteria의 session이 null일 경우
public static GetRootType ( this criteria ) : Type
criteria this
return System.Type

GetRootType() public static method

Get the root entity type in criteria
public static GetRootType ( this detachedCriteria, ISession session ) : Type
detachedCriteria this
session ISession
return System.Type

GetSession() public static method

criteria가 사용하는 ISessionImplementor을 반환합니다.
public static GetSession ( this criteria ) : ISessionImplementor
criteria this
return ISessionImplementor

IsBetweenCriterion() public static method

Between (상하한을 포함하는 구간의 값을 구한다. 상하한에 대한 구간 검증은 하지 않는다!!!)
public static IsBetweenCriterion ( this propertyName, object lo, object hi ) : ICriterion
propertyName this 속성명
lo object 하한
hi object 상한
return ICriterion

IsInRangeCriterion() public static method

지정한 값이 두 속성의 값 범위 안에 있을 때 ( Between 의 반대 개념 )
public static IsInRangeCriterion ( this value, string loPropertyName, string hiPropertyName ) : ICriterion
value this
loPropertyName string
hiPropertyName string
return ICriterion

IsOverlapCriterion() public static method

주어진 기간이 오버랩되는지를 파악하는 Criterion
public static IsOverlapCriterion ( this period, string loPropertyName, string hiPropertyName ) : ICriterion
period this
loPropertyName string
hiPropertyName string
return ICriterion