org.objectweb.speedo.lib
Class Personality

java.lang.Object
  extended by org.objectweb.speedo.lib.Personality
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
EJBPersonality, JDOPersonality

public abstract class Personality
extends java.lang.Object
implements java.io.Serializable

Represents a Speedo personality. Two well instances are defined (one for each personality): #JDO and #EJB. This class provides a parser method #getPersonality(String) retrieving the personality from its name.

Author:
S.Chassande-Barrioz
See Also:
Serialized Form

Field Summary
static Personality EJB
           
static Personality JDO
           
 
Constructor Summary
Personality()
           
 
Method Summary
 java.lang.String getDetachedFieldAccessExceptionClassNameSlash()
           
abstract  java.lang.Class getDetachedFieldAccessRuntimeExceptionClass()
           
abstract  java.lang.Class getFatalRuntimeExceptionClass()
          Retrieve the runtime fatal exception class dedicated to the relevant personality.
 java.lang.String getFatalRuntimeExceptionClassNameDot()
          Retrieve the class name of the runtime fatal exception dedicated to the relevant personality.
 java.lang.String getFatalRuntimeExceptionClassNameSlash()
          Retrieve the class name of the runtime fatal exception dedicated to the relevant personality.
 java.lang.String getGenClassName(java.lang.String gcBaseName)
           
 java.lang.String getName()
           
 java.lang.String getPersonalityClassName(java.lang.String pac, java.lang.String classuffix)
           
abstract  java.lang.Class getPOMClass()
          Retrieve the PersistentObjectManager class for the associated personality.
abstract  java.lang.Class getPOMFClass()
          Retrieve the PersistentObjectManagerFactory class for the associated personality.
abstract  java.lang.Class getRuntimeExceptionClass()
          Retrieve the runtime user exception class dedicated to the relevant personality.
 java.lang.String getRuntimeExceptionClassNameDot()
          Retrieve the class name of the runtime user exception dedicated to the relevant personality.
 java.lang.String getRuntimeExceptionClassNameSlash()
          Retrieve the class name of the runtime user exception dedicated to the relevant personality.
abstract  java.lang.Class getUserRuntimeExceptionClass()
          Retrieve the runtime user exception class dedicated to the relevant personality.
 java.lang.String getUserRuntimeExceptionClassNameDot()
          Retrieve the class name of the runtime user exception dedicated to the relevant personality.
 java.lang.String getUserRuntimeExceptionClassNameSlash()
          Retrieve the class name of the runtime user exception dedicated to the relevant personality.
abstract  java.lang.RuntimeException newDataStoreRuntimeException(java.lang.String msg)
           
abstract  java.lang.RuntimeException newDataStoreRuntimeException(java.lang.String msg, java.lang.Throwable nested)
           
abstract  java.lang.RuntimeException newFatalDataStoreRuntimeException()
           
abstract  java.lang.RuntimeException newFatalDataStoreRuntimeException(java.lang.String msg)
           
abstract  java.lang.RuntimeException newFatalDataStoreRuntimeException(java.lang.String msg, java.lang.Object failed)
           
abstract  java.lang.RuntimeException newFatalDataStoreRuntimeException(java.lang.String msg, java.lang.Throwable nested)
           
abstract  java.lang.RuntimeException newFatalDataStoreRuntimeException(java.lang.String msg, java.lang.Throwable[] nested)
           
abstract  java.lang.RuntimeException newFatalDataStoreRuntimeException(java.lang.String msg, java.lang.Throwable[] nested, java.lang.Object failed)
           
abstract  java.lang.RuntimeException newFatalDataStoreRuntimeException(java.lang.String msg, java.lang.Throwable nested, java.lang.Object failed)
           
abstract  java.lang.RuntimeException newFatalDataStoreRuntimeException(java.lang.Throwable nested)
           
abstract  java.lang.RuntimeException newFatalRuntimeException()
          Retrieve the runtime fatal exception dedicated to the relevant personality.
abstract  java.lang.RuntimeException newFatalRuntimeException(java.lang.String msg)
           
abstract  java.lang.RuntimeException newFatalRuntimeException(java.lang.String msg, java.lang.Object failed)
           
abstract  java.lang.RuntimeException newFatalRuntimeException(java.lang.String msg, java.lang.Throwable nested)
           
abstract  java.lang.RuntimeException newFatalRuntimeException(java.lang.String msg, java.lang.Throwable[] nested)
           
abstract  java.lang.RuntimeException newFatalRuntimeException(java.lang.String msg, java.lang.Throwable[] nested, java.lang.Object failed)
           
abstract  java.lang.RuntimeException newFatalRuntimeException(java.lang.String msg, java.lang.Throwable nested, java.lang.Object failed)
           
abstract  java.lang.RuntimeException newFatalRuntimeException(java.lang.Throwable nested)
           
abstract  java.lang.RuntimeException newRuntimeException()
          Retrieve the basic runtime exception dedicated to the relevant personality.
abstract  java.lang.RuntimeException newRuntimeException(java.lang.String msg)
           
abstract  java.lang.RuntimeException newRuntimeException(java.lang.String msg, java.lang.Object failed)
           
abstract  java.lang.RuntimeException newRuntimeException(java.lang.String msg, java.lang.Throwable nested)
           
abstract  java.lang.RuntimeException newRuntimeException(java.lang.String msg, java.lang.Throwable[] nested)
           
abstract  java.lang.RuntimeException newRuntimeException(java.lang.String msg, java.lang.Throwable[] nested, java.lang.Object failed)
           
abstract  java.lang.RuntimeException newRuntimeException(java.lang.String msg, java.lang.Throwable nested, java.lang.Object failed)
           
abstract  java.lang.RuntimeException newRuntimeException(java.lang.Throwable nested)
           
abstract  java.lang.RuntimeException newUserRuntimeException()
          Retrieve the runtime user exception dedicated to the relevant personality.
abstract  java.lang.RuntimeException newUserRuntimeException(java.lang.String msg)
           
abstract  java.lang.RuntimeException newUserRuntimeException(java.lang.String msg, java.lang.Object failed)
           
abstract  java.lang.RuntimeException newUserRuntimeException(java.lang.String msg, java.lang.Throwable nested)
           
abstract  java.lang.RuntimeException newUserRuntimeException(java.lang.String msg, java.lang.Throwable[] nested)
           
abstract  java.lang.RuntimeException newUserRuntimeException(java.lang.String msg, java.lang.Throwable[] nested, java.lang.Object failed)
           
abstract  java.lang.RuntimeException newUserRuntimeException(java.lang.String msg, java.lang.Throwable nested, java.lang.Object failed)
           
abstract  java.lang.RuntimeException newUserRuntimeException(java.lang.Throwable nested)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JDO

public static Personality JDO

EJB

public static Personality EJB
Constructor Detail

Personality

public Personality()
Method Detail

newRuntimeException

public abstract java.lang.RuntimeException newRuntimeException()
Retrieve the basic runtime exception dedicated to the relevant personality.

Returns:
The class of the user exception to be thrown.

newRuntimeException

public abstract java.lang.RuntimeException newRuntimeException(java.lang.String msg)

newRuntimeException

public abstract java.lang.RuntimeException newRuntimeException(java.lang.String msg,
                                                               java.lang.Throwable[] nested)

newRuntimeException

public abstract java.lang.RuntimeException newRuntimeException(java.lang.String msg,
                                                               java.lang.Throwable nested)

newRuntimeException

public abstract java.lang.RuntimeException newRuntimeException(java.lang.String msg,
                                                               java.lang.Object failed)

newRuntimeException

public abstract java.lang.RuntimeException newRuntimeException(java.lang.String msg,
                                                               java.lang.Throwable[] nested,
                                                               java.lang.Object failed)

newRuntimeException

public abstract java.lang.RuntimeException newRuntimeException(java.lang.String msg,
                                                               java.lang.Throwable nested,
                                                               java.lang.Object failed)

newRuntimeException

public abstract java.lang.RuntimeException newRuntimeException(java.lang.Throwable nested)

getRuntimeExceptionClass

public abstract java.lang.Class getRuntimeExceptionClass()
Retrieve the runtime user exception class dedicated to the relevant personality.

Returns:
The class of the user exception to be thrown.

getRuntimeExceptionClassNameDot

public java.lang.String getRuntimeExceptionClassNameDot()
Retrieve the class name of the runtime user exception dedicated to the relevant personality.

Returns:
The class of the user exception to be thrown.

getRuntimeExceptionClassNameSlash

public java.lang.String getRuntimeExceptionClassNameSlash()
Retrieve the class name of the runtime user exception dedicated to the relevant personality.

Returns:
The class of the user exception to be thrown.

newUserRuntimeException

public abstract java.lang.RuntimeException newUserRuntimeException()
Retrieve the runtime user exception dedicated to the relevant personality.

Returns:
The class of the user exception to be thrown.

newUserRuntimeException

public abstract java.lang.RuntimeException newUserRuntimeException(java.lang.String msg)

newUserRuntimeException

public abstract java.lang.RuntimeException newUserRuntimeException(java.lang.String msg,
                                                                   java.lang.Throwable[] nested)

newUserRuntimeException

public abstract java.lang.RuntimeException newUserRuntimeException(java.lang.String msg,
                                                                   java.lang.Throwable nested)

newUserRuntimeException

public abstract java.lang.RuntimeException newUserRuntimeException(java.lang.String msg,
                                                                   java.lang.Object failed)

newUserRuntimeException

public abstract java.lang.RuntimeException newUserRuntimeException(java.lang.String msg,
                                                                   java.lang.Throwable[] nested,
                                                                   java.lang.Object failed)

newUserRuntimeException

public abstract java.lang.RuntimeException newUserRuntimeException(java.lang.String msg,
                                                                   java.lang.Throwable nested,
                                                                   java.lang.Object failed)

newUserRuntimeException

public abstract java.lang.RuntimeException newUserRuntimeException(java.lang.Throwable nested)

getUserRuntimeExceptionClass

public abstract java.lang.Class getUserRuntimeExceptionClass()
Retrieve the runtime user exception class dedicated to the relevant personality.

Returns:
The class of the user exception to be thrown.

getUserRuntimeExceptionClassNameDot

public java.lang.String getUserRuntimeExceptionClassNameDot()
Retrieve the class name of the runtime user exception dedicated to the relevant personality.

Returns:
The class of the user exception to be thrown.

getUserRuntimeExceptionClassNameSlash

public java.lang.String getUserRuntimeExceptionClassNameSlash()
Retrieve the class name of the runtime user exception dedicated to the relevant personality.

Returns:
The class of the user exception to be thrown.

newFatalRuntimeException

public abstract java.lang.RuntimeException newFatalRuntimeException()
Retrieve the runtime fatal exception dedicated to the relevant personality.

Returns:
The class of the user exception to be thrown.

newFatalRuntimeException

public abstract java.lang.RuntimeException newFatalRuntimeException(java.lang.String msg)

newFatalRuntimeException

public abstract java.lang.RuntimeException newFatalRuntimeException(java.lang.String msg,
                                                                    java.lang.Throwable[] nested)

newFatalRuntimeException

public abstract java.lang.RuntimeException newFatalRuntimeException(java.lang.String msg,
                                                                    java.lang.Throwable nested)

newFatalRuntimeException

public abstract java.lang.RuntimeException newFatalRuntimeException(java.lang.String msg,
                                                                    java.lang.Object failed)

newFatalRuntimeException

public abstract java.lang.RuntimeException newFatalRuntimeException(java.lang.String msg,
                                                                    java.lang.Throwable[] nested,
                                                                    java.lang.Object failed)

newFatalRuntimeException

public abstract java.lang.RuntimeException newFatalRuntimeException(java.lang.String msg,
                                                                    java.lang.Throwable nested,
                                                                    java.lang.Object failed)

newFatalRuntimeException

public abstract java.lang.RuntimeException newFatalRuntimeException(java.lang.Throwable nested)

getFatalRuntimeExceptionClass

public abstract java.lang.Class getFatalRuntimeExceptionClass()
Retrieve the runtime fatal exception class dedicated to the relevant personality.

Returns:
The class of the user exception to be thrown.

getFatalRuntimeExceptionClassNameDot

public java.lang.String getFatalRuntimeExceptionClassNameDot()
Retrieve the class name of the runtime fatal exception dedicated to the relevant personality.

Returns:
The class of the user exception to be thrown.

getFatalRuntimeExceptionClassNameSlash

public java.lang.String getFatalRuntimeExceptionClassNameSlash()
Retrieve the class name of the runtime fatal exception dedicated to the relevant personality.

Returns:
The class of the user exception to be thrown.

newFatalDataStoreRuntimeException

public abstract java.lang.RuntimeException newFatalDataStoreRuntimeException()

newFatalDataStoreRuntimeException

public abstract java.lang.RuntimeException newFatalDataStoreRuntimeException(java.lang.String msg)

newFatalDataStoreRuntimeException

public abstract java.lang.RuntimeException newFatalDataStoreRuntimeException(java.lang.String msg,
                                                                             java.lang.Throwable[] nested)

newFatalDataStoreRuntimeException

public abstract java.lang.RuntimeException newFatalDataStoreRuntimeException(java.lang.String msg,
                                                                             java.lang.Throwable nested)

newFatalDataStoreRuntimeException

public abstract java.lang.RuntimeException newFatalDataStoreRuntimeException(java.lang.String msg,
                                                                             java.lang.Object failed)

newFatalDataStoreRuntimeException

public abstract java.lang.RuntimeException newFatalDataStoreRuntimeException(java.lang.String msg,
                                                                             java.lang.Throwable[] nested,
                                                                             java.lang.Object failed)

newFatalDataStoreRuntimeException

public abstract java.lang.RuntimeException newFatalDataStoreRuntimeException(java.lang.String msg,
                                                                             java.lang.Throwable nested,
                                                                             java.lang.Object failed)

newFatalDataStoreRuntimeException

public abstract java.lang.RuntimeException newFatalDataStoreRuntimeException(java.lang.Throwable nested)

newDataStoreRuntimeException

public abstract java.lang.RuntimeException newDataStoreRuntimeException(java.lang.String msg)

newDataStoreRuntimeException

public abstract java.lang.RuntimeException newDataStoreRuntimeException(java.lang.String msg,
                                                                        java.lang.Throwable nested)

getDetachedFieldAccessRuntimeExceptionClass

public abstract java.lang.Class getDetachedFieldAccessRuntimeExceptionClass()

getDetachedFieldAccessExceptionClassNameSlash

public java.lang.String getDetachedFieldAccessExceptionClassNameSlash()

getName

public java.lang.String getName()

getPersonalityClassName

public java.lang.String getPersonalityClassName(java.lang.String pac,
                                                java.lang.String classuffix)

getGenClassName

public java.lang.String getGenClassName(java.lang.String gcBaseName)

getPOMClass

public abstract java.lang.Class getPOMClass()
Retrieve the PersistentObjectManager class for the associated personality.

Returns:
The Java class.

getPOMFClass

public abstract java.lang.Class getPOMFClass()
Retrieve the PersistentObjectManagerFactory class for the associated personality.

Returns:
The Java class.