Package org.apache.isis.runtimes.dflt.runtime.persistence.query

Examples of org.apache.isis.runtimes.dflt.runtime.persistence.query.PersistenceQueryFindUsingApplibQueryDefault


        }
        if (query instanceof QueryDefault) {
            final QueryDefault<?> queryDefault = (QueryDefault<?>) query;
            final String queryName = queryDefault.getQueryName();
            final Map<String, ObjectAdapter> argumentsAdaptersByParameterName = wrap(queryDefault.getArgumentsByParameterName());
            return new PersistenceQueryFindUsingApplibQueryDefault(noSpec, queryName, argumentsAdaptersByParameterName, cardinality);
        }
        // fallback; generic serializable applib query.
        return new PersistenceQueryFindUsingApplibQuerySerializable(noSpec, query, cardinality);
    }
View Full Code Here


        return PersistenceQueryFindByTitle.class;
    }

    @Override
    public PersistenceQueryData encode(final PersistenceQuery persistenceQuery) {
        final PersistenceQueryFindUsingApplibQueryDefault findByQuery = downcast(persistenceQuery);
        return new PersistenceQueryFindUsingApplibQueryDefaultData(findByQuery.getSpecification(), findByQuery.getQueryName(), encode(findByQuery.getArgumentsAdaptersByParameterName()), findByQuery.getCardinality());
    }
View Full Code Here

    }

    @Override
    protected PersistenceQuery doDecode(final ObjectSpecification specification, final PersistenceQueryData persistenceQueryData) {
        final PersistenceQueryFindUsingApplibQueryDefaultData findByQueryData = downcast(persistenceQueryData);
        return new PersistenceQueryFindUsingApplibQueryDefault(specification, findByQueryData.getQueryName(), decode(findByQueryData.getArgumentDatasByParameterName()), (findByQueryData.getCardinality()));
    }
View Full Code Here

        return PersistenceQueryFindByTitle.class;
    }

    @Override
    public PersistenceQueryData encode(final PersistenceQuery persistenceQuery) {
        final PersistenceQueryFindUsingApplibQueryDefault findByQuery = downcast(persistenceQuery);
        return new PersistenceQueryFindUsingApplibQueryDefaultData(findByQuery.getSpecification(),
            findByQuery.getQueryName(), encode(findByQuery.getArgumentsAdaptersByParameterName()),
            findByQuery.getCardinality());
    }
View Full Code Here

    @Override
    protected PersistenceQuery doDecode(final ObjectSpecification specification,
        final PersistenceQueryData persistenceQueryData) {
        final PersistenceQueryFindUsingApplibQueryDefaultData findByQueryData = downcast(persistenceQueryData);
        return new PersistenceQueryFindUsingApplibQueryDefault(specification, findByQueryData.getQueryName(),
            decode(findByQueryData.getArgumentDatasByParameterName()), (findByQueryData.getCardinality()));
    }
View Full Code Here

        if (query instanceof QueryDefault) {
            final QueryDefault<?> queryDefault = (QueryDefault<?>) query;
            final String queryName = queryDefault.getQueryName();
            final Map<String, ObjectAdapter> argumentsAdaptersByParameterName =
                wrap(queryDefault.getArgumentsByParameterName());
            return new PersistenceQueryFindUsingApplibQueryDefault(noSpec, queryName, argumentsAdaptersByParameterName,
                cardinality);
        }
        // fallback; generic serializable applib query.
        return new PersistenceQueryFindUsingApplibQuerySerializable(noSpec, query, cardinality);
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.runtimes.dflt.runtime.persistence.query.PersistenceQueryFindUsingApplibQueryDefault

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.