Package org.exolab.castor.persist

Examples of org.exolab.castor.persist.TxSynchronizable


            AbstractProperties properties = CPAProperties.getInstance();
            Object[] objects = properties.getObjectArray(
                    CPAProperties.TX_SYNCHRONIZABLE, properties.getApplicationClassLoader());
            if (objects != null) {
                for (int i = 0; i < objects.length; i++) {
                    TxSynchronizable sync = (TxSynchronizable) objects[i];
                    _synchronizables.add(sync);
                }
            }
           
            if (_synchronizables.size() == 0) { _synchronizables = null; }
View Full Code Here


    /**
     * Inform all registered listeners that the transaction was committed.
     */
    private void txcommitted() {
        for (int i = 0; i < _synchronizeList.size(); i++) {
            TxSynchronizable sync = (TxSynchronizable) _synchronizeList.get(i);
            try {
                sync.committed(this);
            } catch (Exception ex) {
                String cls = sync.getClass().getName();
                LOG.warn("Exception at " + cls + ".committed()", ex);
            }
        }
    }
View Full Code Here

    /**
     * Inform all registered listeners that the transaction was rolled back.
     */
    private void txrolledback() {
        for (int i = 0; i < _synchronizeList.size(); i++) {
            TxSynchronizable sync = (TxSynchronizable) _synchronizeList.get(i);
            try {
                sync.rolledback(this);
            } catch (Exception ex) {
                String cls = sync.getClass().getName();
                LOG.warn("Exception at " + cls + ".rolledback()", ex);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.exolab.castor.persist.TxSynchronizable

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.