gedi.solutions.geode.io.QuerierMgr Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gedi-geode-extensions-core Show documentation
Show all versions of gedi-geode-extensions-core Show documentation
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);
}
}