Package org.sf.mustru.utils

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


   System.out.println("Completed database dump test");
  }

  protected void tearDown()
  {
   DbTools dbt = new DbTools(); dbt.openEnv(DBDIR, false);
   /*   List dbnames = dbt.fetchDBnames();
   for (int i = 0; i < dbnames.size(); i++)
     { dbt.dropDB((String) dbnames.get(i) );
       System.out.println("tearDown: dropped " + (String) dbnames.get(i));
     }*/
 
View Full Code Here


   //*-- instantiate a new crawl
   ctRef = new CrawlManager();
   if (Constants.getDbt() == null)
   { DbTools dbt = new DbTools();
     dbt.openEnv(Constants.getDBDIR(), false); Constants.setDbt(dbt);
   }
  return(ctRef);
}

public static void resetCrawlManager() { ctRef = null; }
View Full Code Here

private void createDbEnv()
{
  //*-- create the database environment in the Constants
  if (Constants.getDbt() != null) Constants.getDbt().closeEnv();
  DbTools dbt = new DbTools();
  if (Constants.getDBDIR().length() > 0) dbt.openEnv(Constants.getDBDIR(), false);
  Constants.setDbt(dbt);
}

//*-- Add the tool bar.
protected ToolBarManager createToolBarManager(int style)
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.