Examples of QueryProcessor


Examples of org.wso2.carbon.registry.core.dataaccess.QueryProcessor

                try {
                    Class qpClass = Class.forName(configuration.getProcessorClassName());
                    Constructor constructor =
                            qpClass.getConstructor(DataAccessManager.class, UserRealm.class);

                    QueryProcessor queryProcessor =
                            (QueryProcessor) constructor.newInstance(dataAccessManager);

                    queryProcessors.put(configuration.getQueryType(), queryProcessor);

                } catch (ClassNotFoundException e) {
View Full Code Here

Examples of org.wso2.carbon.registry.core.dataaccess.QueryProcessor

            String msg = "Failed to execute query at path: " + queryResource.getPath() +
                    ". Query resources should have a media type to map to a query processor.";
            throw new RegistryException(msg);
        }

        QueryProcessor queryProcessor =
                queryProcessors.get(queryResource.getMediaType());
        if (queryProcessor == null) {
            String msg = "Failed to execute query at path: " + queryResource.getPath() +
                    ". No query processor is associated with the query type: " +
                    queryResource.getMediaType();
            throw new RegistryException(msg);
        }

        return queryProcessor.executeQuery(registry, queryResource, parameters);
    }
View Full Code Here

Examples of xbird.engine.backend.QueryProcessor

        return sched;
    }

    private static ScheduledEventListener[] createListeners(ResponseListener resHandler) {
        final ScheduledEventListener[] listeners = new ScheduledEventListener[4];
        listeners[0] = new QueryProcessor(resHandler);
        listeners[1] = new DistributedCompiler(resHandler);
        listeners[2] = new PreparedQueryProcessor(resHandler);
        listeners[3] = new CommandProcessor(resHandler);
        //listeners[4] = new GridQueryTaskProcessor(resHandler);
        return listeners;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.