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

com.dooapp.gaedo.finders.collections.IdSupportingCollectionBackedFinderService Maven / Gradle / Ivy

There is a newer version: 1.0.16
Show newest version
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