Search in sources :

Example 1 with ContainmentPrefixConstraintImpl

use of com.emc.storageos.db.client.constraint.impl.ContainmentPrefixConstraintImpl in project coprhd-controller by CoprHD.

the class ModelClientImpl method findByContainmentAndPrefix.

@Override
public <T extends DataObject> List<NamedElement> findByContainmentAndPrefix(Class<T> clazz, String columnField, URI id, String labelPrefix) throws DatabaseException {
    LOG.debug("findByContainmentAndPrefix({}, {}, {}, {})", new Object[] { clazz, columnField, id, labelPrefix });
    DataObjectType doType = TypeMap.getDoType(clazz);
    ContainmentPrefixConstraint constraint = new ContainmentPrefixConstraintImpl(id, labelPrefix, doType.getColumnField(columnField));
    return queryNamedElementsByConstraint(constraint);
}
Also used : ContainmentPrefixConstraint(com.emc.storageos.db.client.constraint.ContainmentPrefixConstraint) ContainmentPrefixConstraintImpl(com.emc.storageos.db.client.constraint.impl.ContainmentPrefixConstraintImpl)

Aggregations

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