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

DefaultMappingException

public class DefaultMappingException extends TopLinkException

Purpose: Wrapper for any exception that occurred through OC4J cmp deafult mapping.

Fields Summary
public static final int
FINDER_PARAMETER_TYPE_NOT_FOUND
public static final int
FINDER_NOT_DEFINED_IN_HOME
public static final int
EJB_SELECT_NOT_DEFINED_IN_BEAN
public static final int
FINDER_NOT_START_WITH_FIND_OR_EJBSELECT
public static final int
GETTER_NOT_FOUND
public static final int
FIELD_NOT_FOUND
Constructors Summary
public DefaultMappingException(String message)


       
        super(message);
    
protected DefaultMappingException(String message, Exception internalException)

        super(message, internalException);
    
Methods Summary
public static oracle.toplink.essentials.exceptions.DefaultMappingExceptionejbSelectNotDefinedInBean(java.lang.String beanName, java.lang.String ejbSelectName, java.util.List ejbSelectParameters)

        Object[] args = { beanName, ejbSelectName, ejbSelectParameters.toArray() };
        DefaultMappingException exception = new DefaultMappingException(ExceptionMessageGenerator.buildMessage(DefaultMappingException.class, EJB_SELECT_NOT_DEFINED_IN_BEAN, args));
        exception.setErrorCode(EJB_SELECT_NOT_DEFINED_IN_BEAN);
        return exception;
    
public static oracle.toplink.essentials.exceptions.DefaultMappingExceptionfieldNotFound(java.lang.String field, java.lang.String beanName)

        Object[] args = { field, beanName };
        DefaultMappingException exception = new DefaultMappingException(ExceptionMessageGenerator.buildMessage(DefaultMappingException.class, FIELD_NOT_FOUND, args));
        exception.setErrorCode(FIELD_NOT_FOUND);
        return exception;
    
public static oracle.toplink.essentials.exceptions.DefaultMappingExceptionfinderNotDefinedInHome(java.lang.String beanName, java.lang.String finderName, java.util.List finderParameters)

        Object[] args = { beanName, finderName, finderParameters.toArray() };
        DefaultMappingException exception = new DefaultMappingException(ExceptionMessageGenerator.buildMessage(DefaultMappingException.class, FINDER_NOT_DEFINED_IN_HOME, args));
        exception.setErrorCode(FINDER_NOT_DEFINED_IN_HOME);
        return exception;
    
public static oracle.toplink.essentials.exceptions.DefaultMappingExceptionfinderNotStartWithFindOrEjbSelect(java.lang.String beanName, java.lang.String finderName)

        Object[] args = { beanName, finderName };
        DefaultMappingException exception = new DefaultMappingException(ExceptionMessageGenerator.buildMessage(DefaultMappingException.class, FINDER_NOT_START_WITH_FIND_OR_EJBSELECT, args));
        exception.setErrorCode(FINDER_NOT_START_WITH_FIND_OR_EJBSELECT);
        return exception;
    
public static oracle.toplink.essentials.exceptions.DefaultMappingExceptionfinderParameterTypeNotFound(java.lang.String beanName, java.lang.String finderName, java.lang.String finderParameterTypeString)

        Object[] args = { beanName, finderName, finderParameterTypeString };

        DefaultMappingException exception = new DefaultMappingException(ExceptionMessageGenerator.buildMessage(DefaultMappingException.class, FINDER_PARAMETER_TYPE_NOT_FOUND, args));
        exception.setErrorCode(FINDER_PARAMETER_TYPE_NOT_FOUND);
        return exception;
    
public static oracle.toplink.essentials.exceptions.DefaultMappingExceptiongetterNotFound(java.lang.String getter, java.lang.String beanName)

        Object[] args = { getter, beanName };
        DefaultMappingException exception = new DefaultMappingException(ExceptionMessageGenerator.buildMessage(DefaultMappingException.class, GETTER_NOT_FOUND, args));
        exception.setErrorCode(GETTER_NOT_FOUND);
        return exception;