Examples of create()


Examples of org.apache.openejb.test.entity.bmp.EncBmpHome.create()

            EncBmpHome ejbHome2 = null;
            EncBmpObject ejbObject2 = null;

            final Object obj = initialContext.lookup(jndiName);
            ejbHome2 = (EncBmpHome)javax.rmi.PortableRemoteObject.narrow( obj, EncBmpHome.class);
            ejbObject2 = ejbHome2.create("isIdentical test");

            //System.out.println("_______________________________________________________");
            assertTrue( "The EJBObjects should not be identical", !ejbObject.isIdentical(ejbObject2) );
            //System.out.println(" ejb1 "+ejbObject);
            //System.out.println(" ejb2 "+ejbObject2);

Examples of org.apache.openejb.test.entity.cmp.EncCmpHome.create()

        try {
            Object obj = initialContext.lookup("client/tests/entity/cmp/EncBean");
            EncCmpHome home = (EncCmpHome) javax.rmi.PortableRemoteObject.narrow(obj, EncCmpHome.class);
            assertNotNull("The EJBHome returned from JNDI is null", home);

            EncCmpObject expected = home.create("test_40 CmpBean");
            assertNotNull("The EJBObject created is null", expected);

            EncCmpObject actual = (EncCmpObject) javax.rmi.PortableRemoteObject.narrow(ejbObject.returnEJBObject(expected), EncCmpObject.class);
            assertNotNull("The EJBObject returned is null", actual);

Examples of org.apache.openejb.test.entity.cmr.cmrmapping.ManyOwningSideLocalHome.create()

        return home.findByPrimaryKey(id);
    }

    private ManyOwningSideLocal createManyOwningSide(Integer id, Integer field1) throws Exception {
        ManyOwningSideLocalHome home = manyHome;
        ManyOwningSideLocal manyOwningSideLocal = home.create(id, field1);
        manyCreated.add(id);
        return manyOwningSideLocal;
    }

    private ManyOwningSideLocal findManyOwningSide(Integer id) throws Exception {

Examples of org.apache.openejb.test.entity.cmr.cmrmapping.OneInverseSideLocalHome.create()

        }
    }

    private OneInverseSideLocal createOneInverseSide(Integer id) throws Exception {
        OneInverseSideLocalHome home = oneInverseHome;
        OneInverseSideLocal oneInverseSideLocal = home.create(id);
        oneInverseCreated.add(id);
        return oneInverseSideLocal;
    }

    private OneInverseSideLocal findOneInverseSide(Integer id) throws Exception {

Examples of org.apache.openejb.test.entity.cmr.cmrmapping.OneOwningSideLocalHome.create()

        }
    }

    private OneOwningSideLocal createOneOwningSide(Integer id, Integer field1) throws Exception {
        OneOwningSideLocalHome home = oneOwningHome;
        OneOwningSideLocal oneOwningSideLocal = home.create(id, field1);
        oneOwningCreated.add(id);
        return oneOwningSideLocal;
    }

    private OneOwningSideLocal findOneOwningSide(Integer id) throws Exception {

Examples of org.apache.openejb.test.entity.ejbql.QueryDataHome.create()

        Object obj = initialContext.lookup("client/tests/entity/ejbql/Query");
        queryHome = (QueryHome) PortableRemoteObject.narrow(obj, QueryHome.class);
        obj = initialContext.lookup("client/tests/entity/ejbql/QueryData");
        final QueryDataHome queryDataHome = (QueryDataHome) PortableRemoteObject.narrow(obj, QueryDataHome.class);

        queryDataHome.create(0);
        queryDataHome.create(1);
        queryDataHome.create(2);
        queryDataHome.create(3);
    }

Examples of org.apache.openejb.test.stateful.EncStatefulHome.create()

        Properties properties = new Properties();
        properties.put(Context.INITIAL_CONTEXT_FACTORY, LocalInitialContextFactory.class.getName());
        InitialContext ctx = new InitialContext(properties);
        EncStatefulHome home = (EncStatefulHome) ctx.lookup(AnnotatedFieldInjectionStatefulBean.class.getSimpleName());
        EncStatefulObject ejbObject = home.create("foo");
        ejbObject.lookupStringEntry();

        assembler.destroyApplication(file.getAbsolutePath());

        try {

Examples of org.apache.openejb.webadmin.HttpHome.create()

        HttpHome ejbHome = (HttpHome) obj;
        HttpObject httpObject = null;

        try {
            httpObject = ejbHome.create();

            //
            obj = org.apache.openejb.util.proxy.ProxyManager.getInvocationHandler(httpObject);
            org.apache.openejb.core.ivm.BaseEjbProxyHandler handler = null;
            handler = (org.apache.openejb.core.ivm.BaseEjbProxyHandler) obj;

Examples of org.apache.phoenix.hbase.index.ipc.PhoenixIndexRpcSchedulerFactory.create()

            // expected
        }

        setMinMax(conf, 6, 101);
        try {
            factory.create(conf, null);
            fail("Should not have allowed in range");
        } catch (IllegalArgumentException e) {
            // expected
        }
    }

Examples of org.apache.pig.backend.datastorage.ContainerDescriptor.create()

    @Override
    protected void processMkdir(String dir) throws IOException
    {
        if(mExplain == null) { // process only if not in "explain" mode
            ContainerDescriptor dirDescriptor = mDfs.asContainer(dir);
            dirDescriptor.create();
        } else {
            log.warn("'mkdir' statement is ignored while processing 'explain -script' or '-check'");
        }
    }
   
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.