Package org.apache.jetspeed.components.persistence.store

Examples of org.apache.jetspeed.components.persistence.store.Filter


        {
            return (Page) pageCache.get(id);
        }
        else
        {
            Filter filter = persistenceStore.newFilter();
            filter.addEqualTo("id", id);
            Object q = persistenceStore.newQuery(pageClass, filter);
            persistenceStore.getTransaction().begin();
            Page page = (Page) persistenceStore.getObjectByQuery(q);
            if (page == null)
            {
View Full Code Here


        else
        {
            PersistenceStore store = getPersistenceStore();
            prepareTransaction(store);

            Filter filter = store.newFilter();
            filter.addEqualTo("id", entityId.toString());
            Object q = store.newQuery(PortletEntityImpl.class, filter);
            MutablePortletEntity portletEntity = (MutablePortletEntity) store.getObjectByQuery(q);
            if (portletEntity == null)
            {
                return null;
View Full Code Here

    }

    public Collection getPortletEntities( PortletDefinition portletDefinition )
    {
        prepareTransaction(persistenceStore);
        Filter filter = persistenceStore.newFilter();
        String appName = ((MutablePortletApplication) portletDefinition.getPortletApplicationDefinition()).getName();
        String portletName = portletDefinition.getName();
        filter.addEqualTo("appName", appName);
        filter.addEqualTo("portletName", portletName);

        return persistenceStore.getCollectionByQuery(persistenceStore.newQuery(PortletEntityImpl.class, filter));
    }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.components.persistence.store.Filter

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.