Package org.ozoneDB

Examples of org.ozoneDB.ExternalTransaction.rollback()


                ((GZIPOutputStream)out).finish();
            }
            out.close();
        }
        finally {
            tx.rollback();
        }
    }

}
View Full Code Here


           
            start = System.currentTimeMillis();
            tx.commit();
            System.out.println( "DOM store: commit time: " + (System.currentTimeMillis() - start) + " ms" );
        } catch (Exception e) {
            tx.rollback();
            throw e;
        }
    }
   
   
View Full Code Here

           
            start = System.currentTimeMillis();
            tx.commit();
            System.out.println( "SAX store: commit time: " + (System.currentTimeMillis() - start) + " ms" );
        } catch (Exception e) {
            tx.rollback();
            throw e;
        }
    }
   
   
View Full Code Here

            System.out.println( "Dump: extract/serialize time: " + (System.currentTimeMillis() - start) + " ms" );
           
            writer.close();
            tx.commit();
        } catch (Exception e) {
            tx.rollback();
            throw e;
        }
    }
   
   
View Full Code Here

            System.out.println( "Print: extract DOM time: " + (System.currentTimeMillis() - start) + " ms" );
            tx.commit();
        }
        catch (Exception e) {
            tx.rollback();
            throw e;
        }
       
        if (printResult) {
            System.out.println( "Print: result: " );
View Full Code Here

           
            start = System.currentTimeMillis();
            tx.commit();
            System.out.println( "DOM store: commit time: " + (System.currentTimeMillis() - start) + " ms" );
        } catch (Exception e) {
            tx.rollback();
            throw e;
        }
    }
    public static void main( String args[] ) {
        new StoreDocument();
View Full Code Here

            container.storeDOM(null, getTestDocument());
            tx.commit();
            removeDocument();
        } catch (Exception e) {
            try {
                tx.rollback();
            } catch (Exception e1) {
                // leave it for finally
            } finally {
                fail(e.getMessage());
            }
View Full Code Here

            XMLContainer container = XMLContainer.newContainer(db, xmlTestDataFileName);
            container.storeDOM(getTestDocument());
            tx.commit();
        } catch (Exception e) {
            try {
                tx.rollback();
            } catch (Exception e1) {
                // leave it for finally
            } finally {
                fail(e.getMessage());
            }
View Full Code Here

            container.delete();
            tx.commit();
            assertNull(XMLContainer.forName(db, xmlTestDataFileName));
        } catch (Exception e) {
            try {
                tx.rollback();
            } catch (Exception e1) {
                // leave it for finally
            } finally {
                fail(e.getMessage());
            }
View Full Code Here

                tx.commit();
            }
            catch (SAXException e) {
                try {
                    if (tx.getStatus() == tx.STATUS_ACTIVE)
                        tx.rollback();
                    throw new XMLDBException(ErrorCodes.INVALID_RESOURCE, e.getMessage())
                }
                catch (Exception rollbackException) {
                    throw new XMLDBException(ErrorCodes.VENDOR_ERROR, rollbackException.toString())
                }
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.