poussecafe.doc.model.aggregatedoc.AggregateDocRepository Maven / Gradle / Ivy
package poussecafe.doc.model.aggregatedoc;
import java.util.List;
import poussecafe.doc.model.boundedcontextdoc.BoundedContextDocId;
import poussecafe.domain.Repository;
public class AggregateDocRepository extends Repository {
public List findByBoundedContextId(BoundedContextDocId id) {
return wrap(dataAccess().findByBoundedContextId(id));
}
@Override
public AggregateDocDataAccess dataAccess() {
return (AggregateDocDataAccess) super.dataAccess();
}
public List findAll() {
return wrap(dataAccess().findAll());
}
public List findByIdClassName(String qualifiedName) {
return wrap(dataAccess().findByIdClassName(qualifiedName));
}
public AggregateDoc findByBoundedContextIdAndName(BoundedContextDocId boundedContextDocId,
String aggregateName) {
return wrap(dataAccess().findByBoundedContextIdAndName(boundedContextDocId, aggregateName));
}
}