C# Class Habanero.Faces.Base.DataViewFilterClause

A super-class for filter clauses that filter which data to display in a DataView, according to some criteria
Inheritance: IFilterClause
Exibir arquivo Open project: Chillisoft/habanero.faces

Protected Properties

Property Type Description
_clauseOperator FilterClauseOperator
_filterColumn string
_filterValue object

Public Methods

Method Description
GetFilterClauseString ( ) : string

Returns the full filter clause as a string

GetFilterClauseString ( string stringLikeDelimiter, string dateTimeDelimiter ) : string

Returns the filter clause as a string. The filter clause is a clause used for filtering a ADO.Net DataView

Protected Methods

Method Description
CreateValueClause ( string stringLikeDelimiter, string dateTimeDelimiter ) : string

Returns the value part of the clause

DataViewFilterClause ( string filterColumn, FilterClauseOperator clauseOperator, object filterValue ) : System.Data

Constructor to create a new filter clause

Private Methods

Method Description
CreateColumnClause ( ) : string

Returns the column part of the clause. If the column contains any spaces or dashes, it is surrounded by square brackets.

CreateOperatorClause ( ) : string

Returns the operator in the clause as a string

Method Details

CreateValueClause() protected abstract method

Returns the value part of the clause
protected abstract CreateValueClause ( string stringLikeDelimiter, string dateTimeDelimiter ) : string
stringLikeDelimiter string
dateTimeDelimiter string
return string

DataViewFilterClause() protected method

Constructor to create a new filter clause
protected DataViewFilterClause ( string filterColumn, FilterClauseOperator clauseOperator, object filterValue ) : System.Data
filterColumn string The column of data on which to do the /// filtering
clauseOperator FilterClauseOperator The clause operator
filterValue object The filter value to compare to
return System.Data

GetFilterClauseString() public method

Returns the full filter clause as a string
public GetFilterClauseString ( ) : string
return string

GetFilterClauseString() public method

Returns the filter clause as a string. The filter clause is a clause used for filtering a ADO.Net DataView
public GetFilterClauseString ( string stringLikeDelimiter, string dateTimeDelimiter ) : string
stringLikeDelimiter string
dateTimeDelimiter string
return string

Property Details

_clauseOperator protected_oe property

The FilterClauseOperator to be used when creating this filterClause.
protected FilterClauseOperator _clauseOperator
return FilterClauseOperator

_filterColumn protected_oe property

The Column Name (Property Name) to use when building this filter.
protected string _filterColumn
return string

_filterValue protected_oe property

The actual value in the filterClause.
protected object _filterValue
return object