Package javax.resource

Examples of javax.resource.ResourceException


    public void begin() throws ResourceException {
      try {
          transaction.begin();
      } catch (ResourceException e) {
    throw new ResourceException(e.getMessage());
      }
    }
View Full Code Here


    public void commit() throws ResourceException {
        try {
          transaction.commit();
      } catch (ResourceException e) {
    throw new ResourceException(e.getMessage());
      }
    }
View Full Code Here

           
    public void rollback() throws ResourceException {
        try {
          transaction.rollback();
      } catch (ResourceException e) {
    throw new ResourceException(e.getMessage());
      }
    }             
View Full Code Here

    public void begin() throws ResourceException {
      try {
          transaction.begin();
      } catch (ResourceException e) {
    throw new ResourceException(e.getMessage());
      }
    }
View Full Code Here

    public void commit() throws ResourceException {
        try {
          transaction.commit();
      } catch (ResourceException e) {
    throw new ResourceException(e.getMessage());
      }
    }
View Full Code Here

           
    public void rollback() throws ResourceException {
        try {
          transaction.rollback();
      } catch (ResourceException e) {
    throw new ResourceException(e.getMessage());
      }
    }
View Full Code Here

            con.setAutoCommit(false);
            if (sendEvents) {
                mc.sendEvent(ConnectionEvent.LOCAL_TRANSACTION_STARTED, null);
            }
        } catch (SQLException ex) {
            ResourceException re = new EISSystemException(ex.getMessage());
            re.setLinkedException(ex);
            throw re;
        }
    }
View Full Code Here

            if (sendEvents) {
                mc.sendEvent(ConnectionEvent.LOCAL_TRANSACTION_COMMITTED,
                             null);
            }
        } catch (SQLException ex) {
            ResourceException re = new EISSystemException(ex.getMessage());
            re.setLinkedException(ex);
            throw re;
        } finally {
            try {
                con.setAutoCommit(true);
            } catch (Exception ex) {}
View Full Code Here

            if (sendEvents) {
                mc.sendEvent(ConnectionEvent.LOCAL_TRANSACTION_ROLLEDBACK,
                             null);
            }
        } catch (SQLException ex) {
            ResourceException re = new EISSystemException(ex.getMessage());
            re.setLinkedException(ex);
            throw re;
        } finally {
            try {
                con.setAutoCommit(true);
            } catch (Exception ex) {}
View Full Code Here

    public CciRecordFactory() {
    }
    public MappedRecord createMappedRecord(String recordName)
        throws ResourceException {
        throw new ResourceException("MappedRecord not supported.");
    }
View Full Code Here

TOP

Related Classes of javax.resource.ResourceException

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.