Package xbird.storage.tx

Examples of xbird.storage.tx.Transaction


        boolean deleted = colDir.delete();
        return deleted;
    }

    public void putDocument(String docName, IDocumentTable doc) throws DbException {
        Transaction tx = new Transaction();
        putDocument(tx, docName, doc);
        tx.commit();
    }
View Full Code Here


            throws FileNotFoundException, XQueryException, DbException {
        long fileSize = docFile.length();
        IDocumentTable doc = preferedDocumentTable(col, docFile, fileSize);
        DocumentTableModel dtm = new DocumentTableModel(doc);
        dtm.loadDocument(new FileInputStream(docFile));
        col.putDocument(new Transaction(), docFile.getName(), doc);
        return doc;
    }
View Full Code Here

        boolean deleted = colDir.delete();
        return deleted;
    }

    public final void putDocument(String docName, IDocumentTable doc) throws DbException {
        Transaction tx = new Transaction();
        putDocument(tx, docName, doc);
        tx.commit();
    }
View Full Code Here

TOP

Related Classes of xbird.storage.tx.Transaction

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.