com.dooapp.gaedo.finders.collections.IdSupportingCollectionBackedFinderService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gaedo-collections Show documentation
Show all versions of gaedo-collections Show documentation
Contains the collections implementation, and only depend upon gaedo-definition
package com.dooapp.gaedo.finders.collections;
import java.util.Collection;
import java.util.List;
import com.dooapp.gaedo.finders.FieldInformer;
import com.dooapp.gaedo.finders.FinderCrudService;
import com.dooapp.gaedo.finders.Informer;
import com.dooapp.gaedo.finders.QueryBuilder;
import com.dooapp.gaedo.finders.QueryExpression;
import com.dooapp.gaedo.finders.expressions.Expressions;
import com.dooapp.gaedo.finders.id.IdBasedService;
import com.dooapp.gaedo.finders.id.IdBasedServiceHelper;
import com.dooapp.gaedo.finders.root.InformerFactory;
import com.dooapp.gaedo.properties.Property;
/**
* Collection service providing id lookup capabilities
* @author ndx
*
* @param
* @param
*/
public class IdSupportingCollectionBackedFinderService> extends
DefaultCollectionBackedFinderService implements
FinderCrudService, IdBasedService {
private IdBasedServiceHelper idHelper;
public IdSupportingCollectionBackedFinderService(
Class containedClass, Class informerClass,
InformerFactory factory, List idProperties) {
super(containedClass, informerClass, factory);
this.idHelper = new IdBasedServiceHelper(idProperties, this);
}
@Override
public DataType findById(final Object... id) {
return idHelper.findById(id);
}
@Override
public Collection getIdProperties() {
return idHelper.getIdProperties();
}
@Override
public boolean assignId(DataType value, Object... id) {
return idHelper.assignId(value, id);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy