Search in sources :

Example 1 with PrefixConstraintImpl

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);
}
Also used : PrefixConstraint(com.emc.storageos.db.client.constraint.PrefixConstraint) ContainmentPrefixConstraint(com.emc.storageos.db.client.constraint.ContainmentPrefixConstraint) ContainmentPrefixConstraintImpl(com.emc.storageos.db.client.constraint.impl.ContainmentPrefixConstraintImpl) PrefixConstraintImpl(com.emc.storageos.db.client.constraint.impl.PrefixConstraintImpl)

Aggregations

ContainmentPrefixConstraint (com.emc.storageos.db.client.constraint.ContainmentPrefixConstraint)1 PrefixConstraint (com.emc.storageos.db.client.constraint.PrefixConstraint)1 ContainmentPrefixConstraintImpl (com.emc.storageos.db.client.constraint.impl.ContainmentPrefixConstraintImpl)1 PrefixConstraintImpl (com.emc.storageos.db.client.constraint.impl.PrefixConstraintImpl)1