Package org.apache.isis.runtimes.dflt.remoting.common.exchange

Examples of org.apache.isis.runtimes.dflt.remoting.common.exchange.FindInstancesResponse


        final PersistenceQuery criteria = encoderDecoder.decodePersistenceQuery(criteriaData);
        LOG.debug("request findInstances " + criteria + " for " + session);
        final ObjectAdapter instances = getPersistenceSession().findInstances(criteria);
        final ObjectData[] instancesData = convertToCollectionAdapter(instances);
        return new FindInstancesResponse(instancesData);
    }
View Full Code Here


    public FindInstancesResponse findInstances(final FindInstancesRequest request) {

        final PersistenceQueryData criteria = request.getCriteria();

        log("find instances " + criteria);
        final FindInstancesResponse response = decorated.findInstances(request);
        final ObjectData[] instances = response.getInstances();
        log(" <-- instances: " + dump(instances));
        return response;
    }
View Full Code Here

        final PersistenceQueryData criteriaData = encoderDecoder.encodePersistenceQuery(persistenceQuery);
        return getTransactionManager().executeWithinTransaction(new TransactionalClosureWithReturnAbstract<ObjectAdapter[]>() {
            @Override
            public ObjectAdapter[] execute() {
                final FindInstancesRequest request = new FindInstancesRequest(getAuthenticationSession(), criteriaData);
                final FindInstancesResponse response = serverFacade.findInstances(request);
                final ObjectData[] instancesAsObjectData = response.getInstances();
                final ObjectAdapter[] instances = new ObjectAdapter[instancesAsObjectData.length];
                for (int i = 0; i < instancesAsObjectData.length; i++) {
                    instances[i] = encoderDecoder.decode(instancesAsObjectData[i]);
                }
                return instances;
View Full Code Here

            new TransactionalClosureWithReturnAbstract<ObjectAdapter[]>() {
                @Override
                public ObjectAdapter[] execute() {
                    final FindInstancesRequest request =
                        new FindInstancesRequest(getAuthenticationSession(), criteriaData);
                    final FindInstancesResponse response = serverFacade.findInstances(request);
                    final ObjectData[] instancesAsObjectData = response.getInstances();
                    final ObjectAdapter[] instances = new ObjectAdapter[instancesAsObjectData.length];
                    for (int i = 0; i < instancesAsObjectData.length; i++) {
                        instances[i] = encoderDecoder.decode(instancesAsObjectData[i]);
                    }
                    return instances;
View Full Code Here

    public FindInstancesResponse findInstances(final FindInstancesRequest request) {

        final PersistenceQueryData criteria = request.getCriteria();

        log("find instances " + criteria);
        final FindInstancesResponse response = decorated.findInstances(request);
        final ObjectData[] instances = response.getInstances();
        log(" <-- instances: " + dump(instances));
        return response;
    }
View Full Code Here

        final PersistenceQuery criteria = encoderDecoder.decodePersistenceQuery(criteriaData);
        LOG.debug("request findInstances " + criteria + " for " + session);
        final ObjectAdapter instances = getPersistenceSession().findInstances(criteria);
        final ObjectData[] instancesData = convertToCollectionAdapter(instances);
        return new FindInstancesResponse(instancesData);
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.runtimes.dflt.remoting.common.exchange.FindInstancesResponse

Copyright © 2018 www.massapicom. 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.