com.rhi.architecture.db
Class JDODatabaseFactory

java.lang.Object
  extended bycom.rhi.architecture.db.JDODatabaseFactory
All Implemented Interfaces:
Resource

public class JDODatabaseFactory
extends java.lang.Object
implements Resource

Castor JDO Database pooling factory. - A database is a connection in castor speak.

Since:
1.0
Author:
Pete McKinstry

Constructor Summary
JDODatabaseFactory()
          Default Constructor
 
Method Summary
 void close()
          Cleanup the object pool that provides the connections.
 org.exolab.castor.jdo.Database getDatabase(java.lang.String configFile, java.lang.String dbName)
          get Database
 void init(java.util.Properties p)
          No initialization required.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDODatabaseFactory

public JDODatabaseFactory()
Default Constructor

Since:
1.0
Method Detail

init

public void init(java.util.Properties p)
No initialization required.

Specified by:
init in interface Resource
Parameters:
p -

getDatabase

public org.exolab.castor.jdo.Database getDatabase(java.lang.String configFile,
                                                  java.lang.String dbName)
                                           throws ConfigurationException
get Database

Parameters:
configFile -
dbName -
Returns:
Throws:
ConfigurationException

close

public void close()
Cleanup the object pool that provides the connections.

Specified by:
close in interface Resource
Since:
1.0


Copyright © 2002-2004 Robert Half International. All Rights Reserved.