Examples of DatabaseConfig


Examples of com.founder.fix.bpmn2extensions.coreconfig.DataBaseConfig

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetDataBaseConfig(DataBaseConfig newDataBaseConfig, NotificationChain msgs) {
    DataBaseConfig oldDataBaseConfig = dataBaseConfig;
    dataBaseConfig = newDataBaseConfig;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CoreconfigPackage.FIX_FLOW_CONFIG__DATA_BASE_CONFIG, oldDataBaseConfig, newDataBaseConfig);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

Examples of com.scooterframework.orm.sqldataexpress.config.DatabaseConfig

    catch(NoClassDefFoundError er) {
      if (!"org/apache/commons/fileupload/FileItemFactory".equals(er.getMessage())) {
        log.error("Error in EnvConfig.getInstance()", er);
      }
    }
    DatabaseConfig dbc = DatabaseConfig.getInstance();
        SqlConfig.getInstance();
       
        //
        //store some important information about the server
        //
        Map<String, Object> props = new HashMap<String, Object>();
        props.put(Constants.APP_KEY_JAVA_VERSION, System.getProperty("java.version"));
       
        props.put(Constants.APP_KEY_SCOOTER_VERSION, Version.CURRENT_VERSION);
       
        props.put(Constants.APP_KEY_RUNNING_ENVIRONMENT, runningEnvironment);
        props.put(Constants.APP_KEY_APPLICATION_START_TIME, new Date(applicationStartTime));
        props.put(Constants.APP_KEY_APPLICATION_ROOT_PATH, applicationPath);
        props.put(Constants.APP_KEY_APPLICATION_CONTEXT_NAME, contextName);
        props.put(Constants.APP_KEY_APPLICATION_DATABASE_NAME, dbc.getDefaultDatabaseConnectionName());
       
        ActionContext.storeToGlobal(Constants.APP_KEY_SCOOTER_PROPERTIES, props);
       
        initializePlugins();
       
View Full Code Here

Examples of com.sleepycat.db.DatabaseConfig

                    files[i].delete();
            }
        }

        EnvironmentConfig envConfig = new EnvironmentConfig();
        DatabaseConfig dbConfig = new DatabaseConfig();

        envConfig.setTransactional(true);
        envConfig.setInitializeCache(true);
        envConfig.setInitializeLocking(true);
        envConfig.setInitializeLogging(true);
        envConfig.setAllowCreate(true);
        envConfig.setThreaded(true);
        dbConfig.setAllowCreate(true);
        dbConfig.setType(DatabaseType.BTREE);

        env = new Environment(dbHome, envConfig);

        Transaction txn = null;
View Full Code Here

Examples of com.sleepycat.je.DatabaseConfig

      loader.create();
      loader.start();

      /* Verify the database name by trying to open it. */
      Environment env = new Environment(new File(envHome), null);
      DatabaseConfig dbConfig = new DatabaseConfig();
      dbConfig.setTransactional(transactional);
      Database db = env.openDatabase(null, dbName, dbConfig);
      db.close();
      env.close();
   }
View Full Code Here

Examples of com.sleepycat.je.DatabaseConfig

  protected Object mutex = "WorkQueues_Mutex";

  public WorkQueues(Environment env, String dbName, boolean resumable) throws DatabaseException {
    this.env = env;
    this.resumable = resumable;
    DatabaseConfig dbConfig = new DatabaseConfig();
    dbConfig.setAllowCreate(true);
    dbConfig.setTransactional(resumable);
    dbConfig.setDeferredWrite(!resumable);
    urlsDB = env.openDatabase(null, dbName, dbConfig);
    webURLBinding = new WebURLTupleBinding();
  }
View Full Code Here

Examples of com.sleepycat.je.DatabaseConfig

  {
   //*-- open the environment
   if (env == null)  { openEnv(DBDIR, false); if (env == null) return false; }

   //*-- create the primary database handle
   DatabaseConfig dbconfig = new DatabaseConfig();
   dbconfig.setAllowCreate(true);        //*-- allow creation of database 
   dbconfig.setSortedDuplicates(dupFlag);     //*-- no dups
   dbconfig.setExclusiveCreate(createFlag);   //*-- if true, disallow opening of an existing database
   dbconfig.setReadOnly(false);          //*-- set r/w status of the database
   //dbconfig.setTransactional(true);
   currentDB = env.openDatabase(null, dbname, dbconfig);
   dbMap.put(dbname, currentDB );
  }
  catch (DatabaseException dbe)
View Full Code Here

Examples of com.sleepycat.je.DatabaseConfig

   //*-- check for errors and open the environment
   if ( (dbname.equals("")) || (!(existsDB(dbname))) ) return false;
   if (env != null) { openEnv(DBDIR, readOnly); if (env == null) return false; }

   //*-- create the primary database handle
   DatabaseConfig dbconfig = new DatabaseConfig();
   dbconfig.setAllowCreate(false);      //*-- disallow creation of database 
   dbconfig.setSortedDuplicates(dupFlag);     //*-- flag for dups
   dbconfig.setExclusiveCreate(readOnly);     //*-- allow opening of an existing database
   dbconfig.setReadOnly(readOnly);      //*-- set r/w status of the database
   // dbconfig.setTransactional(true);
   currentDB = env.openDatabase(null, dbname, dbconfig);
   dbMap.put(dbname, currentDB );
  }
  catch (DatabaseException dbe) { logger.error("Failed to open DB " + dbname + " " + dbe.getMessage() ); return false; }
View Full Code Here

Examples of com.sleepycat.je.DatabaseConfig

                    files[i].delete();
            }
        }

        EnvironmentConfig envConfig = new EnvironmentConfig();
        DatabaseConfig dbConfig = new DatabaseConfig();

        envConfig.setTransactional(true);
        envConfig.setAllowCreate(true);
        dbConfig.setAllowCreate(true);
        dbConfig.setTransactional(true);

        env = new Environment(dbHome, envConfig);

        Transaction txn = null;
View Full Code Here

Examples of com.sleepycat.je.DatabaseConfig

    @Override
    public void performUpgrade(Environment environment, UpgradeInteractionHandler handler, String virtualHostName)
            throws DatabaseException, AMQStoreException
    {
        reportStarting(environment, 6);
        DatabaseConfig dbConfig = new DatabaseConfig();
        dbConfig.setTransactional(true);
        dbConfig.setAllowCreate(true);

        Database versionDb = environment.openDatabase(null, "CONFIG_VERSION", dbConfig);

        if(versionDb.count() == 0L)
        {
View Full Code Here

Examples of com.sleepycat.je.DatabaseConfig

    }

    public void upgradeIfNecessary() throws AMQStoreException
    {
        boolean isEmpty = _environment.getDatabaseNames().isEmpty();
        DatabaseConfig dbConfig = new DatabaseConfig();
        dbConfig.setTransactional(true);
        dbConfig.setAllowCreate(true);

        Database versionDb = null;
        try
        {
            versionDb = _environment.openDatabase(null, VERSION_DB_NAME, dbConfig);
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.