org.exolab.castor.jdo

Interface DataObjects

public interface DataObjects extends Referenceable, Serializable

A factory for {@link Database} connections. This object is used to define the database to use and to open up database connections using the {@link #getDatabase} method.

This object can be serialized or bound to a JNDI namespace.

Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:07 $

Author: Assaf Arkin

Method Summary
DatabasegetDatabase()
Opens and returns a connection to the database.
StringgetDescription()
Returns the description of this database.
voidsetDescription(String description)
Sets the description of this database.

Method Detail

getDatabase

public Database getDatabase()
Opens and returns a connection to the database.

Returns: An open connection to the database

Throws: DatabaseNotFoundException Attempted to open a database that does not exist PersistenceException Database access failed

getDescription

public String getDescription()
Returns the description of this database.

Returns: The description of this database

setDescription

public void setDescription(String description)
Sets the description of this database.

Parameters: description The description of this database

Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com