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

Examples of org.apache.isis.runtimes.dflt.remoting.common.protocol.PersistenceQueryEncoder


    private static void addPersistenceEncoders(final IsisConfiguration configuration,
        final ObjectEncoderDecoderDefault encoder, final String encoderClassNameList) {
        final String[] encoders = configuration.getList(encoderClassNameList);
        for (final String encoder2 : encoders) {
            final PersistenceQueryEncoder encoding =
                InstanceUtil.createInstance(encoder2, PersistenceQueryEncoder.class);
            encoder.addPersistenceQueryEncoder(encoding);
        }
    }
View Full Code Here


     * <li>by {@link PersistenceSessionProxy#findInstances(PersistenceQuery)}
     * </ul>
     */
    @Override
    public PersistenceQueryData encodePersistenceQuery(final PersistenceQuery criteria) {
        final PersistenceQueryEncoder strategy = findPersistenceQueryEncoder(criteria.getClass());
        return strategy.encode(criteria);
    }
View Full Code Here

     * <li>by {@link ServerFacadeImpl#findInstances(FindInstancesRequest) </ul>
     */
    @Override
    public PersistenceQuery decodePersistenceQuery(final PersistenceQueryData persistenceQueryData) {
        final Class<?> criteriaClass = persistenceQueryData.getPersistenceQueryClass();
        final PersistenceQueryEncoder encoderDecoder = findPersistenceQueryEncoder(criteriaClass);
        return encoderDecoder.decode(persistenceQueryData);
    }
View Full Code Here

        final PersistenceQueryEncoder encoderDecoder = findPersistenceQueryEncoder(criteriaClass);
        return encoderDecoder.decode(persistenceQueryData);
    }

    private PersistenceQueryEncoder findPersistenceQueryEncoder(final Class<?> persistenceQueryClass) {
        final PersistenceQueryEncoder encoder = persistenceEncoderByClass.get(persistenceQueryClass);
        if (encoder == null) {
            throw new IsisRemoteException("No encoder for " + persistenceQueryClass.getName());
        }
        return encoder;
    }
View Full Code Here

    private static void addPersistenceEncoders(final IsisConfiguration configuration,
        final ObjectEncoderDecoderDefault encoder, final String encoderClassNameList) {
        final String[] encoders = configuration.getList(encoderClassNameList);
        for (final String encoder2 : encoders) {
            final PersistenceQueryEncoder encoding =
                InstanceUtil.createInstance(encoder2, PersistenceQueryEncoder.class);
            encoder.addPersistenceQueryEncoder(encoding);
        }
    }
View Full Code Here

     * <li>by {@link PersistenceSessionProxy#findInstances(PersistenceQuery)}
     * </ul>
     */
    @Override
    public PersistenceQueryData encodePersistenceQuery(final PersistenceQuery criteria) {
        final PersistenceQueryEncoder strategy = findPersistenceQueryEncoder(criteria.getClass());
        return strategy.encode(criteria);
    }
View Full Code Here

     * <li>by {@link ServerFacadeImpl#findInstances(FindInstancesRequest) </ul>
     */
    @Override
    public PersistenceQuery decodePersistenceQuery(final PersistenceQueryData persistenceQueryData) {
        final Class<?> criteriaClass = persistenceQueryData.getPersistenceQueryClass();
        final PersistenceQueryEncoder encoderDecoder = findPersistenceQueryEncoder(criteriaClass);
        return encoderDecoder.decode(persistenceQueryData);
    }
View Full Code Here

        final PersistenceQueryEncoder encoderDecoder = findPersistenceQueryEncoder(criteriaClass);
        return encoderDecoder.decode(persistenceQueryData);
    }

    private PersistenceQueryEncoder findPersistenceQueryEncoder(final Class<?> persistenceQueryClass) {
        final PersistenceQueryEncoder encoder = persistenceEncoderByClass.get(persistenceQueryClass);
        if (encoder == null) {
            throw new IsisRemoteException("No encoder for " + persistenceQueryClass.getName());
        }
        return encoder;
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.runtimes.dflt.remoting.common.protocol.PersistenceQueryEncoder

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.