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

gedi.solutions.geode.io.QuerierMgr Maven / Gradle / Ivy

Go to download

GemFire Enterprise Data Integration - common development extensions powered by Apache Geode

The newest version!
package gedi.solutions.geode.io;

import java.util.Collection;

import org.apache.geode.cache.execute.RegionFunctionContext;
import org.apache.geode.cache.query.FunctionDomainException;
import org.apache.geode.cache.query.NameResolutionException;
import org.apache.geode.cache.query.Query;
import org.apache.geode.cache.query.QueryInvocationTargetException;
import org.apache.geode.cache.query.TypeMismatchException;

import nyla.solutions.core.exception.SystemException;

public class QuerierMgr implements QuerierService
{

	@Override
	public  Collection query(Query query, RegionFunctionContext rfc, Object... params)
	{
		try
		{
			// TODO Auto-generated method stub
			return Querier.query(query, rfc, params);
		}
		catch(RuntimeException e)
		{
			throw e;
		}
		catch (TypeMismatchException|NameResolutionException| FunctionDomainException | QueryInvocationTargetException e)
		{
			throw new SystemException(e);
		}
	}//------------------------------------------------

	@Override
	public  Collection query(String query, Object... params)
	{
		return Querier.query(query, params);
		
	}

	@Override
	public  Collection query(String query, RegionFunctionContext rfc, Object... params)
	{
		return Querier.query(query, rfc,params);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy