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

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


    protected void prepareTransaction( PersistenceStore store )
    {
        Transaction tx = store.getTransaction();
        if (!tx.isOpen())
        {
            tx.begin();
        }
    }

    protected PersistenceStore getPersistenceStore()
    {
View Full Code Here


   
   
    public void setRuleForPrincipal(Principal principal, ProfilingRule rule, String locatorName)
    {
        Transaction tx = persistentStore.getTransaction();
        tx.begin();
 
        Filter filter = persistentStore.newFilter();
        filter.addEqualTo("principalName", principal);
        filter.addEqualTo("locatorName", locatorName);
        Object query = persistentStore.newQuery(principalRuleClass, filter);
View Full Code Here

    throws ProfilerException
    {
        try
        {
            Transaction tx = persistentStore.getTransaction();
            tx.begin();
            persistentStore.makePersistent(rule);
            persistentStore.lockForWrite(rule);
            tx.commit();           
        }
        catch (Exception e)
View Full Code Here

    throws ProfilerException   
    {
        try
        {
            Transaction tx = persistentStore.getTransaction();
            tx.begin();
            persistentStore.deletePersistent(rule);
            tx.commit();
        }
        catch (Exception e)
        {
View Full Code Here

    throws ProfilerException
    {
        try
        {
            Transaction tx = persistentStore.getTransaction();
            tx.begin();
            persistentStore.makePersistent(rule);
            persistentStore.lockForWrite(rule);
            tx.commit();           
        }
        catch (Exception e)
View Full Code Here

    throws ProfilerException
    {
        try
        {
            Transaction tx = persistentStore.getTransaction();
            tx.begin();
            persistentStore.deletePersistent(rule);
            tx.commit();
        }
        catch (Exception e)
        {
View Full Code Here

    protected void prepareTransaction( PersistenceStore store )
    {
        Transaction tx = store.getTransaction();
        if (!tx.isOpen())
        {
            tx.begin();
        }
    }

    protected PersistenceStore getPersistenceStore()
    {
View Full Code Here

    protected void prepareTransaction( PersistenceStore store )
    {
        Transaction tx = store.getTransaction();
        if (!tx.isOpen())
        {
            tx.begin();
        }
    }

    protected PersistenceStore getPersistenceStore()
    {
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.