use of com.emc.storageos.db.client.constraint.ContainmentPrefixConstraint 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);
}
use of com.emc.storageos.db.client.constraint.ContainmentPrefixConstraint in project coprhd-controller by CoprHD.
the class BourneDbClient method findByContainmentAndPrefix.
public <T extends DataObject> List<NamedElement> findByContainmentAndPrefix(Class<T> clazz, String columnField, URI id, String labelPrefix) throws DataAccessException {
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);
}
Aggregations