Package org.tmatesoft.sqljet.core.internal.db

Examples of org.tmatesoft.sqljet.core.internal.db.SqlJetDbHandle


     * @throws SqlJetException
     *             if any trouble with access to file or database format.
     */
    public synchronized void open() throws SqlJetException {
        if (!open) {
            dbHandle = new SqlJetDbHandle();
            dbHandle.setBusyHandler(new SqlJetDefaultBusyHandler());
            btree = new SqlJetBtree();
            final Set<SqlJetBtreeFlags> flags = (writable ? WRITE_FLAGS : READ_FLAGS);
            final Set<SqlJetFileOpenPermission> permissions = (writable ? WRITE_PREMISSIONS : READ_PERMISSIONS);
            final SqlJetFileType type = (file != null ? SqlJetFileType.MAIN_DB : SqlJetFileType.TEMP_DB);
View Full Code Here


    @Before
    public void setUp() throws Exception {

        copyRepCache();

        db = new SqlJetDbHandle();
        db.getMutex().enter();

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

TOP

Related Classes of org.tmatesoft.sqljet.core.internal.db.SqlJetDbHandle

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.