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;
       
        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

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.