Package org.apache.openejb.core.cmp

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


        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;
       
        Character result = (Character)cmpContainer.select(deploymentInfo, methodSignature, "char", args);
        return result.charValue();
    }
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;
       
        Number result = (Number)cmpContainer.select(deploymentInfo, methodSignature, "byte", args);
        return result.byteValue();
    }
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;
       
        Boolean result = (Boolean)cmpContainer.select(deploymentInfo, methodSignature, "byte", args);
        return result.booleanValue();
    }
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;
       
        Number result = (Number)cmpContainer.select(deploymentInfo, methodSignature, "short", args);
        return result.shortValue();
    }
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;
       
        Number result = (Number)cmpContainer.select(deploymentInfo, methodSignature, "int", args);
        return result.intValue();
    }
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;
       
        Number result = (Number)cmpContainer.select(deploymentInfo, methodSignature, "long", args);
        return result.longValue();
    }
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;
       
        Number result = (Number)cmpContainer.select(deploymentInfo, methodSignature, "float", args);
        return result.floatValue();
    }
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;
       
        Number result = (Number)cmpContainer.select(deploymentInfo, methodSignature, "double", args);
        return result.doubleValue();
    }
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;
       
        cmpContainer.update(beanContext, methodSignature, args);
    }
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;
       
        return cmpContainer.select(beanContext, methodSignature, returnType, args);
    }
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.