Package org.tmatesoft.sqljet.core.schema

Examples of org.tmatesoft.sqljet.core.schema.ISqlJetSchema


    }

    @Test
    public void testSchema() throws SqlJetException {
        boolean passed = false;
        final ISqlJetSchema s = new SqlJetSchema(db, btreeCopy);
        for (String tableName : s.getTableNames()) {
            logger.info(tableName);
            passed = true;
        }
        Assert.assertTrue(passed);
    }
View Full Code Here


    Transaction stateTransaction = new Transaction()
    {
      @Override
      public void execute(SqlJetDb database) throws SqlJetException
      {
        ISqlJetSchema schema = database.getSchema();
        if (schema.getTable(STATE_TABLE) == null)
        {
          database.createTable(CREATE_STATE_SQL);
        }
        else if (Boolean.getBoolean(StateManager.CLEAR_LOCAL_STATE))
        {
          database.getTable(STATE_TABLE).clear();
        }
      }
    };
    Transaction invocationTransaction = new Transaction()
    {
      @Override
      public void execute(SqlJetDb database) throws SqlJetException
      {
        ISqlJetSchema schema = database.getSchema();
        if (schema.getTable(INVOCATION_TABLE) == null)
        {
          database.createTable(CREATE_INVOCATION_SQL);
        }
        if (schema.getTable(INVOKER_TABLE) == null)
        {
          database.createTable(CREATE_INVOKER_SQL);
          database.createIndex(CREATE_INVOKER_INDEX);
        }
      }
View Full Code Here

TOP

Related Classes of org.tmatesoft.sqljet.core.schema.ISqlJetSchema

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.