List of usage examples for org.apache.commons.collections15 PredicateUtils equalPredicate
public static <T> Predicate<T> equalPredicate(T value)
From source file:org.springframework.jdbc.repo.impl.AbstractIdentifiedEntityRepo.java
@Override public List<String> findEntitiesIdentifiers(String propName, Serializable propValue) { if (propValue == null) { throw new IllegalArgumentException("findEntitiesIdentifiers(" + propName + ") no value specified"); }//from w ww. jav a 2 s . c o m return findEntitiesIdentifiers(propName, PredicateUtils.equalPredicate(propValue)); }
From source file:org.springframework.jdbc.repo.impl.AbstractRawPropertiesRepoImpl.java
@Override public List<E> findEntities(String propName, Serializable propValue, Transformer<Map<String, ?>, ? extends E> transformer) { if (propValue == null) { throw new IllegalArgumentException("findEntities(" + propName + ") no value"); }/*from w ww . ja v a 2s . com*/ if (transformer == null) { throw new IllegalArgumentException( "findEntities(" + getEntityClass().getSimpleName() + ")[" + propName + "] no transformer"); } return findEntities(propName, PredicateUtils.equalPredicate(propValue), transformer); }
From source file:org.springframework.jdbc.repo.impl.AbstractRawPropertiesRepoImpl.java
@Override public List<String> findEntities(String propName, Serializable propValue) { if (propValue == null) { throw new IllegalArgumentException("findEntities(" + propName + ") no value"); }//from w w w. j av a2s . c o m return findEntities(propName, PredicateUtils.equalPredicate(propValue)); }