Package org.apache.ojb.broker

Examples of org.apache.ojb.broker.PersistenceBroker.abortTransaction()


        catch (OJBRuntimeException ex)
        {
            // rollback in case of errors
            if (broker != null)
            {
                broker.abortTransaction();
            }
            throw ex;
        }
        finally
        {
View Full Code Here


        }
        catch (PersistenceBrokerException ex)
        {
            if (broker != null)
            {
                broker.abortTransaction();
            }
            ex.printStackTrace();
        }
        finally
        {
View Full Code Here

        }
        catch (PersistenceBrokerException ex)
        {
            if (broker != null)
            {
                broker.abortTransaction();
            }
            ex.printStackTrace();
        }
        finally
        {
View Full Code Here

        }
        catch (PersistenceBrokerException ex)
        {
            if (broker != null)
            {
                broker.abortTransaction();
            }
            ex.printStackTrace();
        }
        finally
        {
View Full Code Here

        }
        catch (PersistenceBrokerException ex)
        {
            if (broker != null)
            {
                broker.abortTransaction();
            }
            ex.printStackTrace();
        }
        finally
        {
View Full Code Here

        }
        catch (PersistenceBrokerException ex)
        {
            if (broker != null)
            {
                broker.abortTransaction();
            }
            ex.printStackTrace();
        }
        finally
        {
View Full Code Here

            assertNotNull(ret_dummy);
            assertNull(ret_obj);
        }
        finally
        {
            if (broker != null && broker.isInTransaction()) broker.abortTransaction();
            if (broker != null) broker.close();
        }
    }

    /**
 
View Full Code Here

        catch(Exception e)
        {
            log.error("Can't lookup new HighLowSequence for field "
                    + (field != null ? field.getAttributeName() : null)
                    + " using sequence name " + sequenceName, e);
            if(internBroker != null && internBroker.isInTransaction()) internBroker.abortTransaction();
            throw new SequenceManagerException("Can't build new sequence", e);
        }
        finally
        {
            attempts = 0;
View Full Code Here

                        +" this test should cause an exception (else ignore this failure).");
            }
            catch (PersistenceBrokerException e)
            {
                assertTrue(true);
                broker.abortTransaction();
            }

            try
            {
                /* attribute 'auto-naming' is still false,
View Full Code Here

            assertNotNull(ret_dummy);
            assertNull(ret_obj);
        }
        finally
        {
            if (broker != null && broker.isInTransaction()) broker.abortTransaction();
            if (broker != null) broker.close();
        }
    }

    /**
 
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.