|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataObjects
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 |
getDatabaseName()
Returns the name of this 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 |
---|
Database getDatabase() throws DatabaseNotFoundException, PersistenceException
DatabaseNotFoundException
- Attempted to open a database
that does not exist
PersistenceException
- Database access failedvoid setDescription(java.lang.String description)
description
- The description of this databasejava.lang.String getDescription()
java.lang.String getDatabaseName()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |