Package org.apache.ojb.broker

Examples of org.apache.ojb.broker.TransactionNotInProgressException


    public void localCommit()
    {
        if (log.isDebugEnabled()) log.debug("commit was called");
        if (!this.isInLocalTransaction)
        {
            throw new TransactionNotInProgressException("Not in transaction, call begin() before commit()");
        }
        try
        {
            if (batchCon != null)
            {
View Full Code Here


    public void localCommit()
    {
        if (log.isDebugEnabled()) log.debug("commit was called");
        if (!this.isInLocalTransaction)
        {
            throw new TransactionNotInProgressException("Not in transaction, call begin() before commit()");
        }
        try
        {
            if (batchCon != null)
            {
View Full Code Here

     */
    public synchronized void commitTransaction() throws TransactionNotInProgressException, TransactionAbortedException
    {
        if (!isInTransaction())
        {
            throw new TransactionNotInProgressException("PersistenceBroker is NOT in transaction, can't commit");
        }
        fireBrokerEvent(BEFORE_COMMIT_EVENT);
        setInTransaction(false);
        clearRegistrationLists();
        referencesBroker.removePrefetchingListeners();
View Full Code Here

    public void localCommit()
    {
        if (log.isDebugEnabled()) log.debug("commit was called");
        if (!this.isInLocalTransaction)
        {
            throw new TransactionNotInProgressException("Not in transaction, call begin() before commit()");
        }
        try
        {
            if(!broker.isManaged())
            {
View Full Code Here

   */
  public void abortTransaction() throws TransactionNotInProgressException
  {
    if (! isInTransaction())
    {
      throw new TransactionNotInProgressException();
    }
    inTransaction = false;
    commandLog.clear();   
  }
View Full Code Here

    public void commitTransaction()
        throws TransactionNotInProgressException, TransactionAbortedException
    {
        if (!isInTransaction())
        {
            throw new TransactionNotInProgressException();
        }

        Iterator iter = commandLog.iterator();
        try
        {
View Full Code Here

     */
    public synchronized void commitTransaction() throws TransactionNotInProgressException, TransactionAbortedException
    {
        if (!isInTransaction())
        {
            throw new TransactionNotInProgressException("PersistenceBroker is NOT in transaction, can't commit");
        }
        fireBrokerEvent(BEFORE_COMMIT_EVENT);
        setInTransaction(false);
        clearRegistrationLists();
        referencesBroker.removePrefetchingListeners();
View Full Code Here

    public void localCommit()
    {
        if (log.isDebugEnabled()) log.debug("commit was called");
        if (!this.isInLocalTransaction)
        {
            throw new TransactionNotInProgressException("Not in transaction, call begin() before commit()");
        }
        try
        {
            if (batchCon != null)
            {
View Full Code Here

   */
  public void abortTransaction() throws TransactionNotInProgressException
  {
    if (! isInTransaction())
    {
      throw new TransactionNotInProgressException();
    }
    inTransaction = false;
    commandLog.clear();   
  }
View Full Code Here

    public void commitTransaction()
        throws TransactionNotInProgressException, TransactionAbortedException
    {
        if (!isInTransaction())
        {
            throw new TransactionNotInProgressException();
        }

        Iterator iter = commandLog.iterator();
        try
        {
View Full Code Here

TOP

Related Classes of org.apache.ojb.broker.TransactionNotInProgressException

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.