Package org.apache.ojb.broker

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


        {
            doAbort();
            PersistenceBroker _broker = getBroker();
            if (_broker.isInTransaction())
            {
                _broker.abortTransaction();
            }
        }
        finally
        {
            doClose();
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

        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

        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

            // 3. start broker transaction
            broker.beginTransaction();
            // 4. retrieve the products
            result = broker.getCollectionByQuery(query);
            // 5. abort transaction (because we don't want to change anything)
            broker.abortTransaction();
        }
        finally
        {
            // 6. we should not hold onto the broker instance
            if (broker != null)
View Full Code Here

            // 4. start broker transaction
            broker.beginTransaction();
            // 5. retrieve object
            result = (Product)broker.getObjectByQuery(query);
            // 6. abort transaction (because we don't want to change anything)
            broker.abortTransaction();
        }
        finally
        {
            // 7. we should not hold onto the broker instance
            if (broker != null)
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.