Examples of closeDB()


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

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

   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

Examples of org.sf.mustru.utils.DbTools.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);
   dbt.closeDB();

  }

  //*-- initialize the timer hash
  timers = Constants.getTIMERS();
View Full Code Here

Examples of util.SQLHelper.closeDB()

      sql = new SQLHelper();
      sql.openDB();
      return sql.retrieve(CHECK_CRED_QUERY, params).next();

    } finally {
      sql.closeDB();
    }
  }

}
View Full Code Here

Examples of util.SQLHelper.closeDB()

      sql = new SQLHelper();
      sql.openDB();
      return sql.update(AUTH_QUERY, params) == 1;

    } finally {
      sql.closeDB();
    }
  }

  /** Check the credentials used for client authentication.
   *
 
View Full Code Here

Examples of util.SQLHelper.closeDB()

      }

      return result;

    } finally {
      sql.closeDB();
    }
  }

  private String getMoteAttrSubquery(String colname,String type_id)
  {
View Full Code Here

Examples of util.SQLHelper.closeDB()

        sql.execute(ACCESS_QUERY, access_params);
      }
      return access;

    } finally {
      sql.closeDB();
    }
  }

  /** Check for mote access.
   *
 
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.