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

Examples of org.apache.jetspeed.components.persistence.store.Transaction.commit()


        {
            Transaction tx = persistentStore.getTransaction();
            tx.begin();
            persistentStore.makePersistent(rule);
            persistentStore.lockForWrite(rule);
            tx.commit();           
        }
        catch (Exception e)
        {
            throw new ProfilerException("failed to store: " + rule.getId(), e);
        }
View Full Code Here


        try
        {
            Transaction tx = persistentStore.getTransaction();
            tx.begin();
            persistentStore.deletePersistent(rule);
            tx.commit();
        }
        catch (Exception e)
        {
            throw new ProfilerException("failed to delete: " + rule.getId(), e);
        }
View Full Code Here

        {
            Transaction tx = persistentStore.getTransaction();
            tx.begin();
            persistentStore.makePersistent(rule);
            persistentStore.lockForWrite(rule);
            tx.commit();           
        }
        catch (Exception e)
        {
            throw new ProfilerException("failed to store: " + rule.getLocatorName(), e);
        }       
View Full Code Here

        try
        {
            Transaction tx = persistentStore.getTransaction();
            tx.begin();
            persistentStore.deletePersistent(rule);
            tx.commit();
        }
        catch (Exception e)
        {
            throw new ProfilerException("failed to delete: " + rule.getLocatorName(), e);
        }       
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.