FileDocCategorySizeDatePackage
EntityManagerSetupException.javaAPI DocGlassfish v2 API13538Tue May 22 16:54:18 BST 2007oracle.toplink.essentials.exceptions

EntityManagerSetupException

public class EntityManagerSetupException extends TopLinkException

Fields Summary
public static final int
SESSIONS_XML_VALIDATION_EXCEPTION
public static final int
WRONG_SESSION_TYPE_EXCEPTION
public static final int
MISSING_SERVER_PLATFORM_EXCEPTION
public static final int
ERROR_IN_SETUP_OF_EM
public static final int
EXCEPTION_IN_SETUP_OF_EM
public static final int
CLASS_NOT_FOUND_FOR_PROPERTY
public static final int
FAILED_TO_INSTANTIATE_SERVER_PLATFORM
public static final int
CLASS_NOT_FOUND_WHILE_PROCESSING_ANNOTATIONS
public static final int
ATTEMPTED_REDEPLOY_WITHOUT_CLOSE
public static final int
JTA_PERSISTENCE_UNIT_INFO_MISSING_JTA_DATA_SOURCE
public static final int
SESSION_REMOVED_DURING_DEPLOYMENT
public static final int
WRONG_PROPERTY_VALUE_TYPE
public static final int
CANNOT_DEPLOY_WITHOUT_PREDEPLOY
public static final int
FAILED_WHILE_PROCESSING_PROPERTY
public static final int
FAILED_TO_INSTANTIATE_LOGGER
public static final int
PU_NOT_EXIST
public static final int
CANNOT_PREDEPLOY
public static final int
PREDEPLOY_FAILED
public static final int
DEPLOY_FAILED
public static final int
WRONG_WEAVING_PROPERTY_VALUE
Constructors Summary
public EntityManagerSetupException()
INTERNAL: TopLink exceptions should only be thrown by TopLink.

    

                  
      
        super();
    
protected EntityManagerSetupException(String message)
INTERNAL: TopLink exceptions should only be thrown by TopLink.

        super(message);
    
protected EntityManagerSetupException(String message, Throwable internalException)
INTERNAL: TopLink exceptions should only be thrown by TopLink.

        super(message);
        setInternalException(internalException);
    
Methods Summary
public static oracle.toplink.essentials.exceptions.EntityManagerSetupExceptionattemptedRedeployWithoutClose(java.lang.String sessionName)

        Object[] args = { sessionName };

        EntityManagerSetupException setupException = new EntityManagerSetupException(ExceptionMessageGenerator.buildMessage(EntityManagerSetupException.class, ATTEMPTED_REDEPLOY_WITHOUT_CLOSE, args));
        setupException.setErrorCode(ATTEMPTED_REDEPLOY_WITHOUT_CLOSE);
        return setupException;
    
public static oracle.toplink.essentials.exceptions.EntityManagerSetupExceptioncannotDeployWithoutPredeploy(java.lang.String persistenceUnitName, java.lang.String state)

        Object[] args = { persistenceUnitName, state };

        EntityManagerSetupException setupException = new EntityManagerSetupException(ExceptionMessageGenerator.buildMessage(EntityManagerSetupException.class, CANNOT_DEPLOY_WITHOUT_PREDEPLOY, args));
        setupException.setErrorCode(CANNOT_DEPLOY_WITHOUT_PREDEPLOY);
        return setupException;
    
public static oracle.toplink.essentials.exceptions.EntityManagerSetupExceptioncannotPredeploy(java.lang.String persistenceUnitName, java.lang.String state)

        Object[] args = { persistenceUnitName, state };

        EntityManagerSetupException setupException = new EntityManagerSetupException(ExceptionMessageGenerator.buildMessage(EntityManagerSetupException.class, CANNOT_PREDEPLOY, args));
        setupException.setErrorCode(CANNOT_PREDEPLOY);
        return setupException;
    
public static oracle.toplink.essentials.exceptions.EntityManagerSetupExceptionclassNotFoundForProperty(java.lang.String className, java.lang.String propertyName, java.lang.Exception exception)

        Object[] args = { className, propertyName };

        EntityManagerSetupException setupException = new EntityManagerSetupException(ExceptionMessageGenerator.buildMessage(EntityManagerSetupException.class, CLASS_NOT_FOUND_FOR_PROPERTY, args), exception);
        setupException.setErrorCode(CLASS_NOT_FOUND_FOR_PROPERTY);
        return setupException;
    
public static oracle.toplink.essentials.exceptions.EntityManagerSetupExceptionclassNotFoundWhileProcessingAnnotations(java.lang.String className, java.lang.Exception exception)

        Object[] args = { className };

        EntityManagerSetupException setupException = new EntityManagerSetupException(ExceptionMessageGenerator.buildMessage(EntityManagerSetupException.class, CLASS_NOT_FOUND_WHILE_PROCESSING_ANNOTATIONS, args), exception);
        setupException.setErrorCode(CLASS_NOT_FOUND_WHILE_PROCESSING_ANNOTATIONS);
        return setupException;
    
public static oracle.toplink.essentials.exceptions.EntityManagerSetupExceptiondeployFailed(java.lang.String persistenceUnitName, java.lang.RuntimeException exception)

        Object[] args = { persistenceUnitName };

        EntityManagerSetupException setupException = new EntityManagerSetupException(ExceptionMessageGenerator.buildMessage(EntityManagerSetupException.class, DEPLOY_FAILED, args), exception);
        setupException.setErrorCode(DEPLOY_FAILED);
        return setupException;
    
public static oracle.toplink.essentials.exceptions.EntityManagerSetupExceptionerrorInSetupOfEM()

        Object[] args = {  };

        EntityManagerSetupException setupException = new EntityManagerSetupException(ExceptionMessageGenerator.buildMessage(EntityManagerSetupException.class, ERROR_IN_SETUP_OF_EM, args));
        setupException.setErrorCode(ERROR_IN_SETUP_OF_EM);
        return setupException;
    
public static oracle.toplink.essentials.exceptions.EntityManagerSetupExceptionexceptionInSetupOfEM(java.lang.Exception exception)

        Object[] args = {  };

        EntityManagerSetupException setupException = new EntityManagerSetupException(ExceptionMessageGenerator.buildMessage(EntityManagerSetupException.class, EXCEPTION_IN_SETUP_OF_EM, args), exception);
        setupException.setErrorCode(EXCEPTION_IN_SETUP_OF_EM);
        return setupException;
    
public static oracle.toplink.essentials.exceptions.EntityManagerSetupExceptionfailedToInstantiateLogger(java.lang.String loggerClassName, java.lang.String propertyName, java.lang.Exception exception)

        Object[] args = { loggerClassName, propertyName };

        EntityManagerSetupException setupException = new EntityManagerSetupException(ExceptionMessageGenerator.buildMessage(EntityManagerSetupException.class, FAILED_TO_INSTANTIATE_LOGGER, args), exception);
        setupException.setErrorCode(FAILED_TO_INSTANTIATE_LOGGER);
        return setupException;
    
public static oracle.toplink.essentials.exceptions.EntityManagerSetupExceptionfailedToInstantiateServerPlatform(java.lang.String serverPlatformClass, java.lang.String serverPlatformString, java.lang.Exception exception)

        Object[] args = { serverPlatformClass, serverPlatformString };

        EntityManagerSetupException setupException = new EntityManagerSetupException(ExceptionMessageGenerator.buildMessage(EntityManagerSetupException.class, FAILED_TO_INSTANTIATE_SERVER_PLATFORM, args), exception);
        setupException.setErrorCode(FAILED_TO_INSTANTIATE_SERVER_PLATFORM);
        return setupException;
    
public static oracle.toplink.essentials.exceptions.EntityManagerSetupExceptionfailedWhileProcessingProperty(java.lang.String propertyName, java.lang.String propertyValue, java.lang.Exception exception)

        Object[] args = { propertyName, propertyValue };

        EntityManagerSetupException setupException = new EntityManagerSetupException(ExceptionMessageGenerator.buildMessage(EntityManagerSetupException.class, FAILED_WHILE_PROCESSING_PROPERTY, args), exception);
        setupException.setErrorCode(FAILED_WHILE_PROCESSING_PROPERTY);
        return setupException;
    
public static oracle.toplink.essentials.exceptions.EntityManagerSetupExceptionjtaPersistenceUnitInfoMissingJtaDataSource(java.lang.String persistenceUnitInfoName)

        Object[] args = { persistenceUnitInfoName };

        EntityManagerSetupException setupException = new EntityManagerSetupException(ExceptionMessageGenerator.buildMessage(EntityManagerSetupException.class, JTA_PERSISTENCE_UNIT_INFO_MISSING_JTA_DATA_SOURCE, args));
        setupException.setErrorCode(JTA_PERSISTENCE_UNIT_INFO_MISSING_JTA_DATA_SOURCE);
        return setupException;
    
public static oracle.toplink.essentials.exceptions.EntityManagerSetupExceptionmissingServerPlatformException(java.lang.String sessionName, java.lang.String xmlFileName)

        Object[] args = { sessionName, xmlFileName };

        EntityManagerSetupException setupException = new EntityManagerSetupException(ExceptionMessageGenerator.buildMessage(EntityManagerSetupException.class, MISSING_SERVER_PLATFORM_EXCEPTION, args));
        setupException.setErrorCode(MISSING_SERVER_PLATFORM_EXCEPTION);
        return setupException;
    
public static oracle.toplink.essentials.exceptions.EntityManagerSetupExceptionpredeployFailed(java.lang.String persistenceUnitName, java.lang.RuntimeException exception)

        Object[] args = { persistenceUnitName };

        EntityManagerSetupException setupException = new EntityManagerSetupException(ExceptionMessageGenerator.buildMessage(EntityManagerSetupException.class, PREDEPLOY_FAILED, args), exception);
        setupException.setErrorCode(PREDEPLOY_FAILED);
        return setupException;
    
public static oracle.toplink.essentials.exceptions.EntityManagerSetupExceptionpuNotExist(java.lang.String puName)

        Object[] args = { puName};

        EntityManagerSetupException setupException = new EntityManagerSetupException(ExceptionMessageGenerator.buildMessage(EntityManagerSetupException.class, PU_NOT_EXIST, args));
        setupException.setErrorCode(PU_NOT_EXIST);
        return setupException;
    
public static oracle.toplink.essentials.exceptions.EntityManagerSetupExceptionsessionRemovedDuringDeployment(java.lang.String sessionName)

        Object[] args = { sessionName };

        EntityManagerSetupException setupException = new EntityManagerSetupException(ExceptionMessageGenerator.buildMessage(EntityManagerSetupException.class, SESSION_REMOVED_DURING_DEPLOYMENT, args));
        setupException.setErrorCode(SESSION_REMOVED_DURING_DEPLOYMENT);
        return setupException;	
    
public static oracle.toplink.essentials.exceptions.EntityManagerSetupExceptionsessionXMLValidationException(java.lang.String sessionName, java.lang.String xmlFileName, oracle.toplink.essentials.exceptions.ValidationException exception)

        Object[] args = { sessionName, xmlFileName };

        EntityManagerSetupException setupException = new EntityManagerSetupException(ExceptionMessageGenerator.buildMessage(EntityManagerSetupException.class, SESSIONS_XML_VALIDATION_EXCEPTION, args), exception);
        setupException.setErrorCode(SESSIONS_XML_VALIDATION_EXCEPTION);
        return setupException;
    
public static oracle.toplink.essentials.exceptions.EntityManagerSetupExceptionwrongPropertyValueType(java.lang.String value, java.lang.String expectedType, java.lang.String propertyName)

        Object[] args = { value, expectedType, propertyName };

        EntityManagerSetupException setupException = new EntityManagerSetupException(ExceptionMessageGenerator.buildMessage(EntityManagerSetupException.class, WRONG_PROPERTY_VALUE_TYPE, args));
        setupException.setErrorCode(WRONG_PROPERTY_VALUE_TYPE);
        return setupException;
    
public static oracle.toplink.essentials.exceptions.EntityManagerSetupExceptionwrongSessionTypeException(java.lang.String sessionName, java.lang.String xmlFileName, java.lang.Exception exception)

        Object[] args = { sessionName, xmlFileName };

        EntityManagerSetupException setupException = new EntityManagerSetupException(ExceptionMessageGenerator.buildMessage(EntityManagerSetupException.class, WRONG_SESSION_TYPE_EXCEPTION, args), exception);
        setupException.setErrorCode(WRONG_SESSION_TYPE_EXCEPTION);
        return setupException;
    
public static oracle.toplink.essentials.exceptions.EntityManagerSetupExceptionwrongWeavingPropertyValue()

        Object[] args = { };

        EntityManagerSetupException setupException = new EntityManagerSetupException(ExceptionMessageGenerator.buildMessage(EntityManagerSetupException.class, WRONG_WEAVING_PROPERTY_VALUE, args));
        setupException.setErrorCode(WRONG_WEAVING_PROPERTY_VALUE);
        return setupException;