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());
        }
        CmpContainer cmpContainer = (CmpContainer) container;
       
        return cmpContainer.select(beanContext, methodSignature, returnType, args);
    }
   
   
    public static char execute_char(Object obj, String methodSignature, Object... args) throws FinderException {
        BeanContext beanContext = (BeanContext) obj;
View Full Code Here


        if (!(container instanceof CmpContainer)) {
            throw new FinderException("Deployment is not connected to a CmpContainer " + beanContext.getDeploymentID());
        }
        CmpContainer cmpContainer = (CmpContainer) container;
       
        Character result = (Character)cmpContainer.select(beanContext, methodSignature, "char", args);
        return result.charValue();
    }
   
   
    public static byte execute_byte(Object  obj, String methodSignature, Object... args) throws FinderException {
View Full Code Here

        if (!(container instanceof CmpContainer)) {
            throw new FinderException("Deployment is not connected to a CmpContainer " + beanContext.getDeploymentID());
        }
        CmpContainer cmpContainer = (CmpContainer) container;
       
        Number result = (Number)cmpContainer.select(beanContext, methodSignature, "byte", args);
        return result.byteValue();
    }
   
   
    public static boolean execute_boolean(Object obj, String methodSignature, Object... args) throws FinderException {
View Full Code Here

        if (!(container instanceof CmpContainer)) {
            throw new FinderException("Deployment is not connected to a CmpContainer " + beanContext.getDeploymentID());
        }
        CmpContainer cmpContainer = (CmpContainer) container;
       
        Boolean result = (Boolean)cmpContainer.select(beanContext, methodSignature, "byte", args);
        return result.booleanValue();
    }
   
   
    public static short execute_short(Object obj, String methodSignature, Object... args) throws FinderException {
View Full Code Here

        if (!(container instanceof CmpContainer)) {
            throw new FinderException("Deployment is not connected to a CmpContainer " + beanContext.getDeploymentID());
        }
        CmpContainer cmpContainer = (CmpContainer) container;
       
        Number result = (Number)cmpContainer.select(beanContext, methodSignature, "short", args);
        return result.shortValue();
    }
   
   
    public static int execute_int(Object obj, String methodSignature, Object... args) throws FinderException {
View Full Code Here

        if (!(container instanceof CmpContainer)) {
            throw new FinderException("Deployment is not connected to a CmpContainer " + beanContext.getDeploymentID());
        }
        CmpContainer cmpContainer = (CmpContainer) container;
       
        Number result = (Number)cmpContainer.select(beanContext, methodSignature, "int", args);
        return result.intValue();
    }
   
   
    public static long execute_long(Object obj, String methodSignature, Object... args) throws FinderException {
View Full Code Here

        if (!(container instanceof CmpContainer)) {
            throw new FinderException("Deployment is not connected to a CmpContainer " + beanContext.getDeploymentID());
        }
        CmpContainer cmpContainer = (CmpContainer) container;
       
        Number result = (Number)cmpContainer.select(beanContext, methodSignature, "long", args);
        return result.longValue();
    }
   
   
    public static float execute_float(Object obj, String methodSignature, Object... args) throws FinderException {
View Full Code Here

        if (!(container instanceof CmpContainer)) {
            throw new FinderException("Deployment is not connected to a CmpContainer " + beanContext.getDeploymentID());
        }
        CmpContainer cmpContainer = (CmpContainer) container;
       
        Number result = (Number)cmpContainer.select(beanContext, methodSignature, "float", args);
        return result.floatValue();
    }
   
   
    public static double execute_double(Object obj, String methodSignature, Object... args) throws FinderException {
View Full Code Here

        if (!(container instanceof CmpContainer)) {
            throw new FinderException("Deployment is not connected to a CmpContainer " + beanContext.getDeploymentID());
        }
        CmpContainer cmpContainer = (CmpContainer) container;
       
        Number result = (Number)cmpContainer.select(beanContext, methodSignature, "double", args);
        return result.doubleValue();
    }
}
View Full Code Here

        Container container = deploymentInfo.getContainer();
        if (!(container instanceof CmpContainer)) {
            throw new FinderException("Deployment is not connected to a CmpContainer " + deploymentInfo.getDeploymentID());
        }
        CmpContainer cmpContainer = (CmpContainer) container;
        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

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.