C# Class SpeakFriend.Utilities.ConditionString

Inheritance: Condition
Show file Open project: teamaton/speak-lib Class Usage Examples

Public Methods

Method Description
AddToCriteria ( ICriteria criteria ) : void
AddToDisjunction ( NHibernate.Criterion.Disjunction disjunction ) : void
ConditionString ( ConditionContainer conditions, string propertyName ) : System
EqualTo ( string value ) : void

Sets the filter to given value

GetCriterion ( ) : ICriterion
GetString ( ) : string
IsActiveFilter ( ) : bool
IsNullOrEmpty ( ) : bool

Sets the condition to find empty/ not defined values

Like ( string value ) : void
NotNullOrEmpty ( ) : void
NullOrEmpty ( ) : void

Sets the filter to empty or null

OrLikeCaseIns ( string value ) : ConditionString
Reset ( ) : void

Setzt alle Werte des Filters zurück.

Private Methods

Method Description
GetLikeRestriction ( string value, bool caseInsensitive ) : ICriterion
IsValid ( string value ) : bool
RemoveIfInvalid ( string value ) : bool
ResetAndAddUnique ( ) : void

Method Details

AddToCriteria() public method

public AddToCriteria ( ICriteria criteria ) : void
criteria ICriteria
return void

AddToDisjunction() public method

public AddToDisjunction ( NHibernate.Criterion.Disjunction disjunction ) : void
disjunction NHibernate.Criterion.Disjunction
return void

ConditionString() public method

public ConditionString ( ConditionContainer conditions, string propertyName ) : System
conditions ConditionContainer
propertyName string
return System

EqualTo() public method

Sets the filter to given value
public EqualTo ( string value ) : void
value string
return void

GetCriterion() public method

public GetCriterion ( ) : ICriterion
return ICriterion

GetString() public method

public GetString ( ) : string
return string

IsActiveFilter() public method

public IsActiveFilter ( ) : bool
return bool

IsNullOrEmpty() public method

Sets the condition to find empty/ not defined values
public IsNullOrEmpty ( ) : bool
return bool

Like() public method

public Like ( string value ) : void
value string
return void

NotNullOrEmpty() public method

public NotNullOrEmpty ( ) : void
return void

NullOrEmpty() public method

Sets the filter to empty or null
public NullOrEmpty ( ) : void
return void

OrLikeCaseIns() public method

public OrLikeCaseIns ( string value ) : ConditionString
value string
return ConditionString

Reset() public method

Setzt alle Werte des Filters zurück.
public Reset ( ) : void
return void