|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A factory for Database
connections. This object is used to
define the database to use and to open up database connections
using the getDatabase()
method.
This object can be serialized or bound to a JNDI namespace.
Method Summary | |
Database |
getDatabase()
Opens and returns a connection to the database. |
java.lang.String |
getDescription()
Returns the description of this database. |
void |
setDescription(java.lang.String description)
Sets the description of this database. |
Methods inherited from interface javax.naming.Referenceable |
getReference |
Method Detail |
public Database getDatabase() throws DatabaseNotFoundException, PersistenceException
DatabaseNotFoundException
- Attempted to open a database
that does not exist
PersistenceException
- Database access failedpublic void setDescription(java.lang.String description)
description
- The description of this databasepublic java.lang.String getDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |