Package org.apache.openejb.core.cmp

Examples of org.apache.openejb.core.cmp.CmpContainer


        BeanContext beanContext = (BeanContext) obj;
        Container container = beanContext.getContainer();
        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();
    }
View Full Code Here


        BeanContext beanContext = (BeanContext) obj;
        Container container = beanContext.getContainer();
        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

        DeploymentInfo deploymentInfo = (DeploymentInfo) di;
        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

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

        cmpContainer.update(beanContext, methodSignature, args);
    }
View Full Code Here

        final BeanContext beanContext = (BeanContext) obj;
        final Container container = beanContext.getContainer();
        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);
    }
View Full Code Here

        final BeanContext beanContext = (BeanContext) obj;
        final Container container = beanContext.getContainer();
        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();
    }
View Full Code Here

        final BeanContext beanContext = (BeanContext) obj;
        final Container container = beanContext.getContainer();
        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();
    }
View Full Code Here

        final BeanContext beanContext = (BeanContext) obj;
        final Container container = beanContext.getContainer();
        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();
    }
View Full Code Here

        final BeanContext beanContext = (BeanContext) obj;
        final Container container = beanContext.getContainer();
        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();
    }
View Full Code Here

        final BeanContext beanContext = (BeanContext) obj;
        final Container container = beanContext.getContainer();
        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();
    }
View Full Code Here

TOP

Related Classes of org.apache.openejb.core.cmp.CmpContainer

Copyright © 2018 www.massapicom. 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.