Package org.apache.isis.core.metamodel.services.container.query

Examples of org.apache.isis.core.metamodel.services.container.query.QueryCardinality


    private List<?> getResults(final PersistenceQueryFindUsingApplibQueryDefault persistenceQuery) {
       
        final String queryName = persistenceQuery.getQueryName();
        final Map<String, Object> argumentsByParameterName = unwrap(persistenceQuery.getArgumentsAdaptersByParameterName());
        final QueryCardinality cardinality = persistenceQuery.getCardinality();
        final ObjectSpecification objectSpec = persistenceQuery.getSpecification();

        final PersistenceManager persistenceManager = getJdoObjectStore().getPersistenceManager();
        final Class<?> cls = objectSpec.getCorrespondingClass();
        final Query jdoQuery = persistenceManager.newNamedQuery(cls, queryName);
View Full Code Here


    }

    public List<ObjectAdapter> process(final PersistenceQueryFindUsingApplibQueryDefault persistenceQuery) {
        final String queryName = persistenceQuery.getQueryName();
        final Map<String, Object> map = unwrap(persistenceQuery.getArgumentsAdaptersByParameterName());
        final QueryCardinality cardinality = persistenceQuery.getCardinality();
        final ObjectSpecification objectSpec = persistenceQuery.getSpecification();
       
        final List<?> results;
        if((objectSpec.getFullIdentifier() + "#pk").equals(queryName)) {
            results = getResultsPk(queryName, map, objectSpec);
View Full Code Here

    @Override
    protected PersistenceQuery doDecode(final ObjectSpecification specification, final PersistenceQueryData persistenceQueryData) {
        final PersistenceQueryFindUsingApplibQuerySerializableData data = downcast(persistenceQueryData);
        final Query query = (Query) data.getApplibQuerySerializable();
        final QueryCardinality cardinality = data.getCardinality();
        return new PersistenceQueryFindUsingApplibQuerySerializable(specification, query, cardinality);
    }
View Full Code Here

    @Override
    protected PersistenceQuery doDecode(final ObjectSpecification specification,
        final PersistenceQueryData persistenceQueryData) {
        final PersistenceQueryFindUsingApplibQuerySerializableData data = downcast(persistenceQueryData);
        final Query query = (Query) data.getApplibQuerySerializable();
        final QueryCardinality cardinality = data.getCardinality();
        return new PersistenceQueryFindUsingApplibQuerySerializable(specification, query, cardinality);
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.core.metamodel.services.container.query.QueryCardinality

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.