gov.lanl.Database
Class DBMgrFactory

java.lang.Object
  |
  +--gov.lanl.Database.DBMgrFactory

public class DBMgrFactory
extends java.lang.Object

A static class which creates and holds the current DatabaseMgr interface

 

Constructor Summary
DBMgrFactory()
           
 
Method Summary
static gov.lanl.Database.DatabaseMgr createDbMgr(java.lang.String dbname, java.lang.String type_)
          Instantiate and return an instance of the DatabaseMgr interface
static gov.lanl.Database.SearchFilter createFilter()
          build an appropriate SearchFilter corresponding to the storage engine
static gov.lanl.Database.DatabaseMgr current()
          Value of the instantiated DatabaseMgr
static char getWildChar()
          return wild card character for this DatabaseMgr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBMgrFactory

public DBMgrFactory()
Method Detail

createDbMgr

public static gov.lanl.Database.DatabaseMgr createDbMgr(java.lang.String dbname,
                                                        java.lang.String type_)
Instantiate and return an instance of the DatabaseMgr interface

Parameters:
dbname - Database name used in the DatabaseMgr creation
type_ - The type of DatabasaMgr to create
Returns:
DatabaseMgr instance

createFilter

public static gov.lanl.Database.SearchFilter createFilter()
build an appropriate SearchFilter corresponding to the storage engine

Returns:
corresponding new SearchFilter

getWildChar

public static char getWildChar()
return wild card character for this DatabaseMgr

Returns:
char

current

public static gov.lanl.Database.DatabaseMgr current()
Value of the instantiated DatabaseMgr

Returns:
the initialized DatabaseMgr