|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krms.impl.repository.mock.CriteriaMatcherInMemory<T>
public class CriteriaMatcherInMemory<T>
A helper class for the Mock implementation to match criteria to values on the object
Constructor Summary | |
---|---|
CriteriaMatcherInMemory()
|
Method Summary | |
---|---|
protected static Object |
extractValue(String fieldPath,
Object infoObject)
|
Collection<T> |
findMatching(Collection<T> all)
finds all of the supplied objects that match the specified criteria |
QueryByCriteria |
getCriteria()
|
boolean |
matches(T infoObject)
Checks if an object matches the criteria |
protected boolean |
matches(T infoObject,
Predicate predicate)
protected for testing |
static boolean |
matchesEqual(Object dataValue,
Object criteriaValue)
|
static boolean |
matchesGreaterThan(Object dataValue,
Object criteriaValue)
|
static boolean |
matchesLessThan(Object dataValue,
Object criteriaValue)
|
boolean |
matchesLike(Object dataValue,
Object criteriaValue)
|
static boolean |
matchesLike(String str,
String expr)
This was taken from http://stackoverflow.com/questions/898405/how-to-implement-a-sql-like-like-operator-in-java |
boolean |
matchesLikeCachingPattern(String str,
String expr)
this was taken from http://stackoverflow.com/questions/898405/how-to-implement-a-sql-like-like-operator-in-java |
void |
setCriteria(QueryByCriteria criteria)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CriteriaMatcherInMemory()
Method Detail |
---|
public QueryByCriteria getCriteria()
public void setCriteria(QueryByCriteria criteria)
public Collection<T> findMatching(Collection<T> all)
all
-
public boolean matches(T infoObject)
infoObject
-
protected boolean matches(T infoObject, Predicate predicate)
protected static Object extractValue(String fieldPath, Object infoObject)
public static boolean matchesEqual(Object dataValue, Object criteriaValue)
public static boolean matchesLessThan(Object dataValue, Object criteriaValue)
public static boolean matchesGreaterThan(Object dataValue, Object criteriaValue)
public boolean matchesLike(Object dataValue, Object criteriaValue)
public boolean matchesLikeCachingPattern(String str, String expr)
public static boolean matchesLike(String str, String expr)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |