Package org.exolab.castor.jdo
Interface DataObjects
-
- All Superinterfaces:
javax.naming.Referenceable,java.io.Serializable
- All Known Implementing Classes:
JDOManager
public interface DataObjects extends javax.naming.Referenceable, java.io.SerializableA factory forDatabaseconnections. This object is used to define the database to use and to open up database connections using thegetDatabase()method.This object can be serialized or bound to a JNDI namespace.
- Version:
- $Revision: 7124 $ $Date: 2004-10-05 16:15:56 -0600 (Tue, 05 Oct 2004) $
- Author:
- Assaf Arkin
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DatabasegetDatabase()Opens and returns a connection to the database.java.lang.StringgetDatabaseName()Returns the name of this database.java.lang.StringgetDescription()Returns the description of this database.voidsetDescription(java.lang.String description)Sets the description of this database.
-
-
-
Method Detail
-
getDatabase
Database getDatabase() throws PersistenceException
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 existPersistenceException- Database access failed
-
setDescription
void setDescription(java.lang.String description)
Sets the description of this database.- Parameters:
description- The description of this database
-
getDescription
java.lang.String getDescription()
Returns the description of this database.- Returns:
- The description of this database
-
getDatabaseName
java.lang.String getDatabaseName()
Returns the name of this database.- Returns:
- The name of this database
-
-