All Downloads are FREE. Search and download functionalities are using the official Maven repository.

poussecafe.doc.model.aggregatedoc.AggregateDocRepository Maven / Gradle / Ivy

There is a newer version: 0.29.0
Show newest version
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));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy