Package org.sf.mustru.utils

Examples of org.sf.mustru.utils.DbTools.closeDB()


    DatabaseEntry data = new DatabaseEntry();

    String dbname = (ftype.equalsIgnoreCase("email")) ? Constants.EXT_MESSAGES_DB: Constants.EXT_FILES_DB;
    dbt.openDB(dbname, true, false); //*-- no create and no dups            
    dbt.fetch(key, data);
    dbt.closeDB();

    //*-- use the type of the document to create a doc instance of the specified type
    String docClass = dprops.getProperty(ftype);
    if ( (docClass == null) || (docClass.equals("")) ) docClass = "org.sf.mustru.docs.TextDoc";
    Class docType = Class.forName(docClass);
View Full Code Here


   logger.info("Created py. database " + Constants.EXT_FILES_DB);
   dbt.dropSecDB(Constants.EXT_FILES_SECDB);
   SecKeyDoc skd = new SecKeyDoc( new IndexableDoc().getBdbBinding() );
   if (dbt.createSecDB(Constants.EXT_FILES_SECDB, false, skd))
    logger.info("Created sec. database " + Constants.EXT_FILES_SECDB);
   dbt.closeSecDB(); dbt.closeDB();

   //*-- create the messages database
   dbt.dropDB(Constants.EXT_MESSAGES_DB);
   dbt.createDB(Constants.EXT_MESSAGES_DB, createFlag, dupFlag);
   logger.info("Created py. database " + Constants.EXT_MESSAGES_DB);
View Full Code Here

   //*-- create the messages database
   dbt.dropDB(Constants.EXT_MESSAGES_DB);
   dbt.createDB(Constants.EXT_MESSAGES_DB, createFlag, dupFlag);
   logger.info("Created py. database " + Constants.EXT_MESSAGES_DB);
   dbt.closeDB();

  }

  //*-- initialize the timer hash
  timers = Constants.getTIMERS();
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.