Package org.apache.openejb.core.cmp

Examples of org.apache.openejb.core.cmp.CmpContainer.select()


        if (!(container instanceof CmpContainer)) {
            throw new FinderException("Deployment is not connected to a CmpContainer " + beanContext.getDeploymentID());
        }
        final CmpContainer cmpContainer = (CmpContainer) container;

        return cmpContainer.select(beanContext, methodSignature, returnType, args);
    }


    public static char execute_char(final Object obj, final String methodSignature, final Object... args) throws FinderException {
        final BeanContext beanContext = (BeanContext) obj;
View Full Code Here


        if (!(container instanceof CmpContainer)) {
            throw new FinderException("Deployment is not connected to a CmpContainer " + beanContext.getDeploymentID());
        }
        final CmpContainer cmpContainer = (CmpContainer) container;

        final Character result = (Character) cmpContainer.select(beanContext, methodSignature, "char", args);
        return result.charValue();
    }


    public static byte execute_byte(final Object obj, final String methodSignature, final Object... args) throws FinderException {
View Full Code Here

        if (!(container instanceof CmpContainer)) {
            throw new FinderException("Deployment is not connected to a CmpContainer " + beanContext.getDeploymentID());
        }
        final CmpContainer cmpContainer = (CmpContainer) container;

        final Number result = (Number) cmpContainer.select(beanContext, methodSignature, "byte", args);
        return result.byteValue();
    }


    public static boolean execute_boolean(final Object obj, final String methodSignature, final Object... args) throws FinderException {
View Full Code Here

        if (!(container instanceof CmpContainer)) {
            throw new FinderException("Deployment is not connected to a CmpContainer " + beanContext.getDeploymentID());
        }
        final CmpContainer cmpContainer = (CmpContainer) container;

        final Boolean result = (Boolean) cmpContainer.select(beanContext, methodSignature, "byte", args);
        return result.booleanValue();
    }


    public static short execute_short(final Object obj, final String methodSignature, final Object... args) throws FinderException {
View Full Code Here

        if (!(container instanceof CmpContainer)) {
            throw new FinderException("Deployment is not connected to a CmpContainer " + beanContext.getDeploymentID());
        }
        final CmpContainer cmpContainer = (CmpContainer) container;

        final Number result = (Number) cmpContainer.select(beanContext, methodSignature, "short", args);
        return result.shortValue();
    }


    public static int execute_int(final Object obj, final String methodSignature, final Object... args) throws FinderException {
View Full Code Here

        if (!(container instanceof CmpContainer)) {
            throw new FinderException("Deployment is not connected to a CmpContainer " + beanContext.getDeploymentID());
        }
        final CmpContainer cmpContainer = (CmpContainer) container;

        final Number result = (Number) cmpContainer.select(beanContext, methodSignature, "int", args);
        return result.intValue();
    }


    public static long execute_long(final Object obj, final String methodSignature, final Object... args) throws FinderException {
View Full Code Here

        if (!(container instanceof CmpContainer)) {
            throw new FinderException("Deployment is not connected to a CmpContainer " + beanContext.getDeploymentID());
        }
        final CmpContainer cmpContainer = (CmpContainer) container;

        final Number result = (Number) cmpContainer.select(beanContext, methodSignature, "long", args);
        return result.longValue();
    }


    public static float execute_float(final Object obj, final String methodSignature, final Object... args) throws FinderException {
View Full Code Here

        if (!(container instanceof CmpContainer)) {
            throw new FinderException("Deployment is not connected to a CmpContainer " + beanContext.getDeploymentID());
        }
        final CmpContainer cmpContainer = (CmpContainer) container;

        final Number result = (Number) cmpContainer.select(beanContext, methodSignature, "float", args);
        return result.floatValue();
    }


    public static double execute_double(final Object obj, final String methodSignature, final Object... args) throws FinderException {
View Full Code Here

        if (!(container instanceof CmpContainer)) {
            throw new FinderException("Deployment is not connected to a CmpContainer " + beanContext.getDeploymentID());
        }
        final CmpContainer cmpContainer = (CmpContainer) container;

        final Number result = (Number) cmpContainer.select(beanContext, methodSignature, "double", args);
        return result.doubleValue();
    }
}
View Full Code Here

        if (!(container instanceof CmpContainer)) {
            throw new FinderException("Deployment is not connected to a CmpContainer " + beanContext.getDeploymentID());
        }
        final CmpContainer cmpContainer = (CmpContainer) container;

        return cmpContainer.select(beanContext, methodSignature, returnType, args);
    }


    public static char execute_char(final Object obj, final String methodSignature, final Object... args) throws FinderException {
        final BeanContext beanContext = (BeanContext) obj;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.