public interface DataObjects extends Referenceable, Serializable
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.
Modifier and Type | Method and Description |
---|---|
Database |
getDatabase()
Opens and returns a connection to the database.
|
String |
getDatabaseName()
Returns the name of this database.
|
String |
getDescription()
Returns the description of this database.
|
void |
setDescription(String description)
Sets the description of this database.
|
getReference
Database getDatabase() throws PersistenceException
DatabaseNotFoundException
- Attempted to open a database
that does not existPersistenceException
- Database access failedvoid setDescription(String description)
description
- The description of this databaseString getDescription()
String getDatabaseName()
Copyright © 2014. All rights reserved.