Examples of SqlJetOptions


Examples of org.tmatesoft.sqljet.core.internal.table.SqlJetOptions

    private void readSchema() throws SqlJetException {
        runWithLock(new ISqlJetRunnableWithLock() {
            public Object runWithLock(SqlJetDb db) throws SqlJetException {
                btree.enter();
                try {
                    dbHandle.setOptions(new SqlJetOptions(btree, dbHandle));
                    btree.setSchema(new SqlJetSchema(dbHandle, btree));
                } finally {
                    btree.leave();
                }
                return null;
View Full Code Here

Examples of org.tmatesoft.sqljet.core.internal.table.SqlJetOptions

        btreeCopy = new SqlJetBtree();
        btreeCopy.open(repCacheDbCopy, db, SqlJetUtility.of(SqlJetBtreeFlags.READWRITE, SqlJetBtreeFlags.CREATE),
                SqlJetFileType.MAIN_DB, SqlJetUtility.of(SqlJetFileOpenPermission.READWRITE,
                        SqlJetFileOpenPermission.CREATE));

        db.setOptions(new SqlJetOptions(btreeCopy, db));

    }
View Full Code Here

Examples of org.tmatesoft.sqljet.core.internal.table.SqlJetOptions

    public void verifySchemaCookie() throws SqlJetException {
        final SqlJetSchema schema = new SqlJetSchema(db, btreeCopy);
        btreeCopy.setSchema(schema);
        final ISqlJetBtreeDataTable data = new SqlJetBtreeDataTable(btreeCopy, REP_CACHE_TABLE, true);
        data.first();
        final SqlJetOptions meta = new SqlJetOptions(btreeCopy, db);
        btreeCopy.beginTrans(SqlJetTransactionMode.WRITE);
        meta.changeSchemaVersion();
        btreeCopy.commit();
        db.getOptions().verifySchemaVersion(true);
        data.first();
        Assert.assertTrue(false);
    }
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.