Examples of ISqlJetOptions


Examples of org.tmatesoft.sqljet.core.table.ISqlJetOptions

    persistenceDb.getOptions().setAutovacuum(true);
    persistenceDb.getOptions().setEncoding(SqlJetEncoding.UTF8);
    persistenceDb.beginTransaction(SqlJetTransactionMode.WRITE);
    try
    {
      ISqlJetOptions newOptions = persistenceDb.getOptions();
      newOptions.setUserVersion(SQLJET_USER_VERSION_COOKIE);
      newOptions.setSchemaVersion(SQLJET_SCHEMA_VERSION);
      newOptions.setCacheSize(SQLJET_PAGE_CACHE_SIZE);
      persistenceDb.createTable(GROUP_TABLE_DDL);
      persistenceDb.createTable(CUSTOMER_TABLE_DDL);
      classLogger.log(Level.CONFIG, "2 tables created in a new data file {0}.", new Object[] {SqlJetDb.IN_MEMORY, persistenceDb.getSchema().getTableNames()});
      ISqlJetTable groupTable = persistenceDb.getTable(GROUP_TABLE_NAME);
      ISqlJetTable customerTable = persistenceDb.getTable(CUSTOMER_TABLE_NAME);
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.