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;

        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 ("void".equals(returnType)) {
            int result = cmpContainer.update(deploymentInfo, methodSignature, args);
            return result;
        }

        Object result = cmpContainer.select(deploymentInfo, methodSignature, returnType, args);
        if (result instanceof Number) {
            Number number = (Number) result;
            if ("char".equals(returnType) || Character.class.getName().equals(returnType)) {
                result = new Character((char) number.intValue());
            } else if ("byte".equals(returnType) || Byte.class.getName().equals(returnType)) {
View Full Code Here

        if (!(container instanceof CmpContainer)) {
            throw new FinderException("Deployment is not connected to a CmpContainer " + deploymentInfo.getDeploymentID());
        }
        CmpContainer cmpContainer = (CmpContainer) container;
       
        return cmpContainer.select(deploymentInfo, methodSignature, returnType, args);
    }
   
   
    public static char execute_char(Object di, String methodSignature, Object... args) throws FinderException {
        DeploymentInfo deploymentInfo = (DeploymentInfo) di;
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.