org.exolab.castor.jdo
Class DataObjectAccessException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.exolab.castor.jdo.DataObjectAccessException
All Implemented Interfaces:
java.io.Serializable

public class DataObjectAccessException
extends java.lang.RuntimeException

An exception encapsulating another exception which occurs during operation to data object.

Version:
$Revision: 8104 $ $Date: 2006-02-23 13:49:30 -0700 (Thu, 23 Feb 2006) $
Author:
Sebastien Gignoux
See Also:
Serialized Form

Constructor Summary
DataObjectAccessException(java.lang.String message)
          Creates an instance of this exception.
DataObjectAccessException(java.lang.String message, java.lang.Throwable cause)
          Creates an instance of this exception.
 
Method Summary
 java.lang.Throwable getCause()
          Match the JDK 1.4 Throwable version of getCause() on JDK<1.4 systems.
 void printStackTrace()
          Print a stack trace to stderr.
 void printStackTrace(java.io.PrintStream s)
          Print a stack trace to the specified PrintStream.
 void printStackTrace(java.io.PrintWriter w)
          Print a stack trace to the specified PrintWriter.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataObjectAccessException

public DataObjectAccessException(java.lang.String message,
                                 java.lang.Throwable cause)
Creates an instance of this exception.

Parameters:
message - The error message.
cause - The original excepton.

DataObjectAccessException

public DataObjectAccessException(java.lang.String message)
Creates an instance of this exception.

Parameters:
message - The error message.
Method Detail

getCause

public final java.lang.Throwable getCause()
Match the JDK 1.4 Throwable version of getCause() on JDK<1.4 systems.

Overrides:
getCause in class java.lang.Throwable
Returns:
The throwable cause of this exception.

DatabaseNotFoundException is thrown.

Specified by:
getDatabase in interface DataObjects
Returns:
An open connection to the database.
Throws:
PersistenceException - Database access failed.

getReference

public javax.naming.Reference getReference()
Constructs a new reference to JDOManager being its own factory.

Specified by:
getReference in interface javax.naming.Referenceable
Returns:
A new Reference to JDOManager.
See Also:
Reference, ObjectFactory

getObjectInstance

public java.lang.Object getObjectInstance(java.lang.Object refObj,
                                          javax.naming.Name name,
                                          javax.naming.Context nameCtx,
                                          java.util.Hashtable<?,?> env)
                                   throws javax.naming.NamingException

Specified by:
getObjectInstance in interface javax.naming.spi.ObjectFactory
Throws:
javax.naming.NamingException

close

public void close()
Lyfe-cycle methods to close JDOManager instance and initiate resource cleanup.