Package javax.jdo

Examples of javax.jdo.JDOException


        }
        ((JDOPOManagerItf) managedConnection.getPOManager()).refreshAll(arg0);
    }
    public void removeInstanceLifecycleListener(InstanceLifecycleListener arg0) {
        if (managedConnection == null) {
            throw new JDOException(NO_ACTIVE_CONNECTION);
        }
        ((JDOPOManagerItf) managedConnection.getPOManager()).removeInstanceLifecycleListener(arg0);
    }
View Full Code Here


  public void begin() {
    if (connectionFactory.getTransactionMode() == SpeedoProperties.TRANSACTION_BMODE_UT) {
      try {
        userTransaction.begin();
      } catch(Exception e) {
        throw new JDOException("Error with JTA UserTransaction.begin().", e);
      }
    } else {
      //do nothing
      logger.log(BasicLevel.INFO, "Nothing is done on begin. The property ignoreJDOTransaction is activated.");
    }
View Full Code Here

    if (connectionFactory.getTransactionMode() == SpeedoProperties.TRANSACTION_BMODE_UT) {
      try {
        userTransaction.commit();
        logger.log(BasicLevel.DEBUG, "UserTransaction commit.");
      } catch(Exception e) {
        throw new JDOException("Error with JTA UserTransaction.commit().", e);
      }
    } else {
      // do nothing
      logger.log(BasicLevel.INFO, "Nothing is done on commit. The property ignoreJDOTransaction is activated.");
    }
View Full Code Here

  public void rollback() {
    if (connectionFactory.getTransactionMode() == SpeedoProperties.TRANSACTION_BMODE_UT) {
      try {
        userTransaction.rollback();
      } catch(Exception e) {
        throw new JDOException("Error with JTA UserTransaction.rollback().", e);
      }
    } else {
      // do nothing
      logger.log(BasicLevel.INFO, "Nothing is done on rollback. The property ignoreJDOTransaction is activated.");
    }
View Full Code Here

  }

  public boolean isActive() {
    // delegate
    if (managedConnection == null) {
            throw new JDOException(NO_ACTIVE_CONNECTION);
        }
        return ((JDOPOManagerItf) managedConnection.getPOManager()).currentTransaction().isActive();
  }
View Full Code Here

  }

  public boolean getRollbackOnly() {
    //delegate
    if (managedConnection == null) {
            throw new JDOException(NO_ACTIVE_CONNECTION);
        }
        return ((JDOPOManagerItf) managedConnection.getPOManager()).currentTransaction().getRollbackOnly();
  }
View Full Code Here

  }

  public void setRollbackOnly() {
    //delegate
    if (managedConnection == null) {
            throw new JDOException(NO_ACTIVE_CONNECTION);
        }
        ((JDOPOManagerItf) managedConnection.getPOManager()).currentTransaction().setRollbackOnly();
   
  }
View Full Code Here


  public void setNontransactionalRead(boolean nontransactionalRead) {
    //delegate
    if (managedConnection == null) {
            throw new JDOException(NO_ACTIVE_CONNECTION);
        }
        ((JDOPOManagerItf) managedConnection.getPOManager()).currentTransaction().setNontransactionalRead(nontransactionalRead);
  }
View Full Code Here


  public boolean getNontransactionalRead() {
    //delegate
    if (managedConnection == null) {
            throw new JDOException(NO_ACTIVE_CONNECTION);
        }
        return ((JDOPOManagerItf) managedConnection.getPOManager()).currentTransaction().getNontransactionalRead();
 
  }
View Full Code Here


  public void setNontransactionalWrite(boolean nontransactionalWrite) {
    //delegate
    if (managedConnection == null) {
            throw new JDOException(NO_ACTIVE_CONNECTION);
        }
        ((JDOPOManagerItf) managedConnection.getPOManager()).currentTransaction().setNontransactionalWrite(nontransactionalWrite);
 
  }
View Full Code Here

TOP

Related Classes of javax.jdo.JDOException

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.