Class AbstractWhereClauseMatchCriteria
- java.lang.Object
-
- org.apereo.inspektr.audit.support.AbstractWhereClauseMatchCriteria
-
- All Implemented Interfaces:
WhereClauseMatchCriteria
- Direct Known Subclasses:
MaxAgeWhereClauseMatchCriteria,NoMatchWhereClauseMatchCriteria
public abstract class AbstractWhereClauseMatchCriteria extends java.lang.Object implements WhereClauseMatchCriteria
Match criteria defined in terms of a SQL where clause limiter. ThetoString()method of this class produces a where clause beginning with the text "WHERE" such that is can be directly appended to a SQL statement without a where clause to narrow results.- Since:
- 1.0
- Version:
- $Revision: $
- Author:
- Marvin S. Addison
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringBuildersbClauseStores where clause string
-
Constructor Summary
Constructors Constructor Description AbstractWhereClauseMatchCriteria()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddCriteria(java.lang.String column)Adds a parameterized selection criterion of the form column=? to the where clause.protected voidaddCriteria(java.lang.String column, java.lang.String operator)Adds a parameterized selection criterion of the form "column [operator] ?" to the where clause.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apereo.inspektr.audit.support.WhereClauseMatchCriteria
getParameterValues
-
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfaceWhereClauseMatchCriteria- Overrides:
toStringin classjava.lang.Object- Returns:
- The where clause text beginning with the string " WHERE" such that the return value can be directly appended to a SQL statement with no where clause.
-
addCriteria
protected void addCriteria(java.lang.String column)
Adds a parameterized selection criterion of the form column=? to the where clause.- Parameters:
column- Database column name.
-
addCriteria
protected void addCriteria(java.lang.String column, java.lang.String operator)Adds a parameterized selection criterion of the form "column [operator] ?" to the where clause.- Parameters:
column- Database column name.operator- the operator to use to separate.
-
-