org.jafer.databeans
Class DatabeanManagerFactory

java.lang.Object
  extended by org.jafer.interfaces.DatabeanFactory
      extended by org.jafer.databeans.DatabeanManagerFactory
All Implemented Interfaces:
java.io.Serializable

public class DatabeanManagerFactory
extends DatabeanFactory

This class is responsible for creating DatabaseBeanManagers

See Also:
Serialized Form

Field Summary
private  java.lang.String[] allDatabases
          Stores a reference to the complete set of configured databases for any new DatabeanManagers
private  CacheFactory cacheFactory
          Stores a reference to cache factory that is passed to the databeanManager
private  java.util.Hashtable databeanFactories
          Stores a reference to factories that can create databeans for specified databases.
private  java.lang.String mode
          Stores a reference to search mode.
static java.lang.String MODE_PARALLEL
          Stores a reference to the PARALLEL MODE definition
static java.lang.String MODE_SERIAL
          Stores a reference to the SERIAL MODE definition
private  java.lang.String recordSchema
          Stores a reference to the default record schema to set on the databean manager
 
Constructor Summary
DatabeanManagerFactory()
           
 
Method Summary
 CacheFactory getCacheFactory()
          Returns the cache factory used by this databeanManagerFactory
 Databean getDatabean()
           
 DatabeanFactory[] getDatabeanFactories()
          Return the database factories that this databeanmaagerfactory uses
 java.lang.String getMode()
          Get the mode that this factory uses when creating databean managers
 java.lang.String getRecordSchema()
          gets the default record schema to be set on any databeanmanagers created
 void setCacheFactory(CacheFactory cacheFactory)
          Sets the cache factory to be used by the DatabeanManagerFactory
 void setDatabeanFactories(DatabeanFactory[] databeanFactories)
          set the database factories that this databeanmaagerfactory uses
 void setMode(java.lang.String mode)
          Set the mode that the factory should use when creating DatabeanManagers
 void setRecordSchema(java.lang.String recordSchema)
          Sets the default record schema to be set on any databeanmanagers created
 
Methods inherited from class org.jafer.interfaces.DatabeanFactory
getName, load, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODE_SERIAL

public static final java.lang.String MODE_SERIAL
Stores a reference to the SERIAL MODE definition

See Also:
Constant Field Values

MODE_PARALLEL

public static final java.lang.String MODE_PARALLEL
Stores a reference to the PARALLEL MODE definition

See Also:
Constant Field Values

recordSchema

private java.lang.String recordSchema
Stores a reference to the default record schema to set on the databean manager


databeanFactories

private java.util.Hashtable databeanFactories
Stores a reference to factories that can create databeans for specified databases. A map entry consists of key = database name and value = factory that creates a databean supporting Search and Present for the specified database


cacheFactory

private CacheFactory cacheFactory
Stores a reference to cache factory that is passed to the databeanManager


mode

private java.lang.String mode
Stores a reference to search mode.


allDatabases

private java.lang.String[] allDatabases
Stores a reference to the complete set of configured databases for any new DatabeanManagers

Constructor Detail

DatabeanManagerFactory

public DatabeanManagerFactory()
Method Detail

getDatabean

public Databean getDatabean()
Specified by:
getDatabean in class DatabeanFactory

setDatabeanFactories

public void setDatabeanFactories(DatabeanFactory[] databeanFactories)
set the database factories that this databeanmaagerfactory uses

Parameters:
databeanFactories - An array of DatabeanFactories

getDatabeanFactories

public DatabeanFactory[] getDatabeanFactories()
Return the database factories that this databeanmaagerfactory uses

Returns:
An array of databean factories

setMode

public void setMode(java.lang.String mode)
Set the mode that the factory should use when creating DatabeanManagers

Parameters:
mode - The mode to use SERIAL or PARALLEL

getMode

public java.lang.String getMode()
Get the mode that this factory uses when creating databean managers

Returns:
he mode being used SERIAL or PARALLEL

setCacheFactory

public void setCacheFactory(CacheFactory cacheFactory)
Sets the cache factory to be used by the DatabeanManagerFactory

Parameters:
cacheFactory - the cache factory to use

getCacheFactory

public CacheFactory getCacheFactory()
Returns the cache factory used by this databeanManagerFactory

Returns:
The cache factory used

setRecordSchema

public void setRecordSchema(java.lang.String recordSchema)
Sets the default record schema to be set on any databeanmanagers created

Parameters:
recordSchema - the record schema to set

getRecordSchema

public java.lang.String getRecordSchema()
gets the default record schema to be set on any databeanmanagers created

Returns:
The schema that would be set