use of com.emc.storageos.db.client.constraint.impl.PrefixConstraintImpl in project coprhd-controller by CoprHD.
the class ModelClientImpl method findByPrefix.
@Override
public <T extends DataObject> List<NamedElement> findByPrefix(Class<T> clazz, String columnField, String prefix) throws DatabaseException {
LOG.debug("findByPrefix({}, {}, {})", new Object[] { clazz, columnField, prefix });
DataObjectType doType = TypeMap.getDoType(clazz);
PrefixConstraint constraint = new PrefixConstraintImpl(prefix, doType.getColumnField(columnField));
return queryNamedElementsByConstraint(constraint);
}
Aggregations