Package helma.objectmodel.db

Examples of helma.objectmodel.db.Transactor.abort()


     */
    public void rollback() throws Exception {
        Transactor tx = Transactor.getInstance();
        if (tx != null) {
            String tname = tx.getTransactionName();
            tx.abort();
            tx.begin(tname);
        }
    }

    /**
 
View Full Code Here


            sessions = newSessions;
            app.logEvent("loaded " + newSessions.size() + " sessions from file");
            tx.commit();
        } catch (FileNotFoundException fnf) {
            // suppress error message if session file doesn't exist
            tx.abort();
        } catch (Exception e) {
            app.logError("error loading session data.", e);
            tx.abort();
        } finally {
            tx.closeConnections();
View Full Code Here

        } catch (FileNotFoundException fnf) {
            // suppress error message if session file doesn't exist
            tx.abort();
        } catch (Exception e) {
            app.logError("error loading session data.", e);
            tx.abort();
        } finally {
            tx.closeConnections();
        }

    }
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.