javax.naming.Referenceable
, java.io.Serializable
JDOManager
public interface DataObjects
extends javax.naming.Referenceable, java.io.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 | Description |
---|---|---|
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.
|
Database getDatabase() throws PersistenceException
DatabaseNotFoundException
- Attempted to open a database
that does not existPersistenceException
- Database access failedvoid setDescription(java.lang.String description)
description
- The description of this databasejava.lang.String getDescription()
java.lang.String getDatabaseName()
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com