Class PersistenceUnitLoadingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.eclipse.persistence.exceptions.EclipseLinkException
-
- org.eclipse.persistence.exceptions.PersistenceUnitLoadingException
-
- All Implemented Interfaces:
java.io.Serializable
public class PersistenceUnitLoadingException extends EclipseLinkException
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intCANNOT_REFRESH_EMF_CREATED_FROM_SESSIONstatic intCOULD_NOT_GET_CLASS_NAMES_FROM_URLstatic intCOULD_NOT_GET_PERSISTENCE_UNIT_INFO_FROM_URLstatic intEXCEPTION_BUILDING_PERSISTENCE_UNIT_NAMEstatic intEXCEPTION_CREATING_ARCHIVE_FACTORYstatic intEXCEPTION_LOADING_CLASSstatic intEXCEPTION_LOADING_FROM_DIRECTORYstatic intEXCEPTION_LOADING_FROM_JARstatic intEXCEPTION_LOADING_FROM_URLstatic intEXCEPTION_LOADING_VALIDATION_GROUP_CLASSstatic intEXCEPTION_OBTAINING_REQUIRED_BEAN_VALIDATOR_FACTORYstatic intEXCEPTION_OPENING_ORM_XMLstatic intEXCEPTION_PROCESSING_PERSISTENCE_UNITstatic intEXCEPTION_PROCESSING_PERSISTENCE_XMLstatic intEXCEPTION_SEARCHING_FOR_ENTITIESstatic intEXCEPTION_SEARCHING_FOR_PERSISTENCE_RESOURCESstatic intFILE_PATH_MISSING_EXCEPTIONstatic intPERSISTENCE_UNIT_NAME_ALREADY_IN_USEstatic intSESSION_NAME_ALREADY_IN_USE-
Fields inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException
-
-
Constructor Summary
Constructors Modifier Constructor Description PersistenceUnitLoadingException()INTERNAL: TopLink exceptions should only be thrown by TopLink.protectedPersistenceUnitLoadingException(java.lang.String message)INTERNAL: TopLink exceptions should only be thrown by TopLink.protectedPersistenceUnitLoadingException(java.lang.String message, java.lang.Throwable internalException)INTERNAL: TopLink exceptions should only be thrown by TopLink.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PersistenceUnitLoadingExceptioncannotRefreshEntityManagerFactoryCreatedFromSession(java.lang.String persistenceUnitName)static PersistenceUnitLoadingExceptioncouldNotBuildPersistenceUntiName(java.lang.Exception e, java.lang.String url, java.lang.String puName)static PersistenceUnitLoadingExceptioncouldNotGetClassNamesFromUrl(java.net.URL url)static PersistenceUnitLoadingExceptioncouldNotGetUnitInfoFromUrl(java.net.URL url)static PersistenceUnitLoadingExceptionexceptionCreatingArchiveFactory(java.lang.String archiveFactoryClassName, java.lang.Exception e)static PersistenceUnitLoadingExceptionexceptionLoadingClassWhileInitializingValidationGroups(java.lang.String className, java.lang.Exception cause)static PersistenceUnitLoadingExceptionexceptionLoadingClassWhileLookingForAnnotations(java.lang.String className, java.lang.Exception cause)static PersistenceUnitLoadingExceptionexceptionLoadingFromDirectory(java.io.File directory, java.lang.Exception cause)static PersistenceUnitLoadingExceptionexceptionLoadingFromJar(java.net.URL jarFile, java.lang.Exception cause)static PersistenceUnitLoadingExceptionexceptionLoadingFromUrl(java.lang.String url, java.lang.Exception cause)static PersistenceUnitLoadingExceptionexceptionLoadingORMXML(java.lang.String fileName, java.lang.Exception cause)static PersistenceUnitLoadingExceptionexceptionObtainingRequiredBeanValidatorFactory(java.lang.Throwable cause)static PersistenceUnitLoadingExceptionexceptionProcessingPersistenceUnit(java.net.URL url, java.lang.Exception cause)static PersistenceUnitLoadingExceptionexceptionProcessingPersistenceXML(java.net.URL url, java.lang.Exception cause)static PersistenceUnitLoadingExceptionexceptionSearchingForEntities(java.net.URL url, java.lang.Exception cause)static PersistenceUnitLoadingExceptionexceptionSearchingForPersistenceResources(java.lang.ClassLoader loader, java.lang.Exception cause)static PersistenceUnitLoadingExceptionfilePathMissingException(java.lang.String filePath)java.lang.StringgetResourceName()static PersistenceUnitLoadingExceptionpersistenceUnitNameAlreadyInUse(java.lang.String persistenceUnit, java.lang.String newPersistenceUnitUrl, java.lang.String existingPersistenceUnitUrl)static PersistenceUnitLoadingExceptionsessionNameAlreadyInUse(java.lang.String sessionName, java.lang.String newPersistenceUnit, java.lang.String existingPersistenceUnit)voidsetResourceName(java.lang.String resourceName)-
Methods inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
cr, getErrorCode, getIndentationString, getInternalException, getMessage, getSession, getUnformattedMessage, hasBeenLogged, printStackTrace, printStackTrace, printStackTrace, setErrorCode, setHasBeenLogged, setIndentationString, setInternalException, setSession, setShouldPrintInternalException, shouldPrintInternalException, toString
-
-
-
-
Field Detail
-
EXCEPTION_LOADING_FROM_DIRECTORY
public static final int EXCEPTION_LOADING_FROM_DIRECTORY
- See Also:
- Constant Field Values
-
EXCEPTION_LOADING_FROM_JAR
public static final int EXCEPTION_LOADING_FROM_JAR
- See Also:
- Constant Field Values
-
EXCEPTION_PROCESSING_PERSISTENCE_UNIT
public static final int EXCEPTION_PROCESSING_PERSISTENCE_UNIT
- See Also:
- Constant Field Values
-
EXCEPTION_PROCESSING_PERSISTENCE_XML
public static final int EXCEPTION_PROCESSING_PERSISTENCE_XML
- See Also:
- Constant Field Values
-
EXCEPTION_SEARCHING_FOR_PERSISTENCE_RESOURCES
public static final int EXCEPTION_SEARCHING_FOR_PERSISTENCE_RESOURCES
- See Also:
- Constant Field Values
-
EXCEPTION_SEARCHING_FOR_ENTITIES
public static final int EXCEPTION_SEARCHING_FOR_ENTITIES
- See Also:
- Constant Field Values
-
EXCEPTION_LOADING_CLASS
public static final int EXCEPTION_LOADING_CLASS
- See Also:
- Constant Field Values
-
FILE_PATH_MISSING_EXCEPTION
public static final int FILE_PATH_MISSING_EXCEPTION
- See Also:
- Constant Field Values
-
EXCEPTION_LOADING_FROM_URL
public static final int EXCEPTION_LOADING_FROM_URL
- See Also:
- Constant Field Values
-
EXCEPTION_OPENING_ORM_XML
public static final int EXCEPTION_OPENING_ORM_XML
- See Also:
- Constant Field Values
-
COULD_NOT_GET_CLASS_NAMES_FROM_URL
public static final int COULD_NOT_GET_CLASS_NAMES_FROM_URL
- See Also:
- Constant Field Values
-
COULD_NOT_GET_PERSISTENCE_UNIT_INFO_FROM_URL
public static final int COULD_NOT_GET_PERSISTENCE_UNIT_INFO_FROM_URL
- See Also:
- Constant Field Values
-
EXCEPTION_BUILDING_PERSISTENCE_UNIT_NAME
public static final int EXCEPTION_BUILDING_PERSISTENCE_UNIT_NAME
- See Also:
- Constant Field Values
-
EXCEPTION_OBTAINING_REQUIRED_BEAN_VALIDATOR_FACTORY
public static final int EXCEPTION_OBTAINING_REQUIRED_BEAN_VALIDATOR_FACTORY
- See Also:
- Constant Field Values
-
EXCEPTION_LOADING_VALIDATION_GROUP_CLASS
public static final int EXCEPTION_LOADING_VALIDATION_GROUP_CLASS
- See Also:
- Constant Field Values
-
SESSION_NAME_ALREADY_IN_USE
public static final int SESSION_NAME_ALREADY_IN_USE
- See Also:
- Constant Field Values
-
PERSISTENCE_UNIT_NAME_ALREADY_IN_USE
public static final int PERSISTENCE_UNIT_NAME_ALREADY_IN_USE
- See Also:
- Constant Field Values
-
EXCEPTION_CREATING_ARCHIVE_FACTORY
public static final int EXCEPTION_CREATING_ARCHIVE_FACTORY
- See Also:
- Constant Field Values
-
CANNOT_REFRESH_EMF_CREATED_FROM_SESSION
public static final int CANNOT_REFRESH_EMF_CREATED_FROM_SESSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PersistenceUnitLoadingException
public PersistenceUnitLoadingException()
INTERNAL: TopLink exceptions should only be thrown by TopLink.
-
PersistenceUnitLoadingException
protected PersistenceUnitLoadingException(java.lang.String message)
INTERNAL: TopLink exceptions should only be thrown by TopLink.
-
PersistenceUnitLoadingException
protected PersistenceUnitLoadingException(java.lang.String message, java.lang.Throwable internalException)INTERNAL: TopLink exceptions should only be thrown by TopLink.
-
-
Method Detail
-
exceptionLoadingFromDirectory
public static PersistenceUnitLoadingException exceptionLoadingFromDirectory(java.io.File directory, java.lang.Exception cause)
-
filePathMissingException
public static PersistenceUnitLoadingException filePathMissingException(java.lang.String filePath)
-
exceptionLoadingFromJar
public static PersistenceUnitLoadingException exceptionLoadingFromJar(java.net.URL jarFile, java.lang.Exception cause)
-
exceptionLoadingFromUrl
public static PersistenceUnitLoadingException exceptionLoadingFromUrl(java.lang.String url, java.lang.Exception cause)
-
exceptionProcessingPersistenceUnit
public static PersistenceUnitLoadingException exceptionProcessingPersistenceUnit(java.net.URL url, java.lang.Exception cause)
-
exceptionProcessingPersistenceXML
public static PersistenceUnitLoadingException exceptionProcessingPersistenceXML(java.net.URL url, java.lang.Exception cause)
-
exceptionSearchingForPersistenceResources
public static PersistenceUnitLoadingException exceptionSearchingForPersistenceResources(java.lang.ClassLoader loader, java.lang.Exception cause)
-
exceptionSearchingForEntities
public static PersistenceUnitLoadingException exceptionSearchingForEntities(java.net.URL url, java.lang.Exception cause)
-
exceptionLoadingClassWhileLookingForAnnotations
public static PersistenceUnitLoadingException exceptionLoadingClassWhileLookingForAnnotations(java.lang.String className, java.lang.Exception cause)
-
exceptionLoadingORMXML
public static PersistenceUnitLoadingException exceptionLoadingORMXML(java.lang.String fileName, java.lang.Exception cause)
-
couldNotGetClassNamesFromUrl
public static PersistenceUnitLoadingException couldNotGetClassNamesFromUrl(java.net.URL url)
-
couldNotGetUnitInfoFromUrl
public static PersistenceUnitLoadingException couldNotGetUnitInfoFromUrl(java.net.URL url)
-
couldNotBuildPersistenceUntiName
public static PersistenceUnitLoadingException couldNotBuildPersistenceUntiName(java.lang.Exception e, java.lang.String url, java.lang.String puName)
-
exceptionObtainingRequiredBeanValidatorFactory
public static PersistenceUnitLoadingException exceptionObtainingRequiredBeanValidatorFactory(java.lang.Throwable cause)
-
exceptionLoadingClassWhileInitializingValidationGroups
public static PersistenceUnitLoadingException exceptionLoadingClassWhileInitializingValidationGroups(java.lang.String className, java.lang.Exception cause)
-
sessionNameAlreadyInUse
public static PersistenceUnitLoadingException sessionNameAlreadyInUse(java.lang.String sessionName, java.lang.String newPersistenceUnit, java.lang.String existingPersistenceUnit)
-
persistenceUnitNameAlreadyInUse
public static PersistenceUnitLoadingException persistenceUnitNameAlreadyInUse(java.lang.String persistenceUnit, java.lang.String newPersistenceUnitUrl, java.lang.String existingPersistenceUnitUrl)
-
exceptionCreatingArchiveFactory
public static PersistenceUnitLoadingException exceptionCreatingArchiveFactory(java.lang.String archiveFactoryClassName, java.lang.Exception e)
-
cannotRefreshEntityManagerFactoryCreatedFromSession
public static PersistenceUnitLoadingException cannotRefreshEntityManagerFactoryCreatedFromSession(java.lang.String persistenceUnitName)
-
getResourceName
public java.lang.String getResourceName()
-
setResourceName
public void setResourceName(java.lang.String resourceName)
-
-