Examples of begin()


Examples of org.apache.openjpa.kernel.StoreManager.begin()

            sms = _cache.getStateManagers();
            _cache.clear();
        }
        if (sms != null && !sms.isEmpty()) {
            storeManager.retainConnection();
            storeManager.begin();
            errors = storeManager.flush(sms);
            if(errors != null && !errors.isEmpty() ) {
                for(Exception e : errors) {
                    // TODO add error handling.
                    e.printStackTrace();
View Full Code Here

Examples of org.apache.openjpa.persistence.OpenJPAEntityManager.begin()

            assertEquals("h1", ((HelperPC) pc.getHelpers().get("h1")).
                    getStringField());
            assertEquals("h2", ((HelperPC) pc.getHelpers().get("h2")).
                    getStringField());
           
            pm.begin();
            pc.getHelpers().remove("h1");
            assertEquals(2, pc.getHelpers().size());
            assertFalse(pc.getHelpers().containsKey("h1"));
            assertNull(pc.getHelpers().get("h1"));
            HelperPC h4 = new HelperPC();
View Full Code Here

Examples of org.apache.openjpa.persistence.OpenJPAEntityTransaction.begin()

   
    private void deleteAll() {
        OpenJPAEntityManager manager = factory.createEntityManager();
        final OpenJPAEntityTransaction transaction = manager.getTransaction();
        try {
            transaction.begin();
            manager.createQuery("DELETE FROM JamesUser user").executeUpdate();
            transaction.commit();
        } catch (Exception e) {
            e.printStackTrace();
            if (transaction.isActive()) {
View Full Code Here

Examples of org.apache.qpid.server.store.handler.ConfiguredObjectRecordHandler.begin()

            @Override
            public Object answer(final InvocationOnMock invocation) throws Throwable
            {
                Iterator<ConfiguredObjectRecord> iterator = asList(records).iterator();
                ConfiguredObjectRecordHandler handler = (ConfiguredObjectRecordHandler) invocation.getArguments()[0];
                handler.begin();
                boolean handlerContinue = true;
                while(iterator.hasNext() && handlerContinue)
                {
                    handlerContinue = handler.handle(iterator.next());
                }
View Full Code Here

Examples of org.apache.servicemix.jbi.cluster.requestor.JmsRequestor.begin()

                }
            } else {
                JmsRequestor item = pool.newRequestor();
                synchronized (item) {
                    try {
                        item.begin();
                        processExchange(item, exchange);
                    } finally {
                        item.close();
                    }
                }
View Full Code Here

Examples of org.apache.slide.common.NamespaceAccessToken.begin()

            final Subscriber contentSubscriber = new Subscriber() {
                public void notify(String uri, Map information) {
                    NamespaceAccessToken nat = Domain.accessNamespace(new SecurityToken(this), Domain.getDefaultNamespace());
                    try {
                        nat.begin();
                        Iterator keys = information.keySet().iterator();
                        while (keys.hasNext()) {
                            String key = keys.next().toString();
                            if ("uri".equals(key)) {
                                Uri theUri = nat.getUri(new SlideTokenImpl(new CredentialsToken("")), stripUri(information.get(key).toString()));
View Full Code Here

Examples of org.apache.sqoop.repository.RepositoryTransaction.begin()

    Repository repository = RepositoryManager.getInstance().getRepository();

    RepositoryTransaction rtx = null;
    try {
      rtx = repository.getTransaction();
      rtx.begin();
      for (String name : handlerMap.keySet()) {
        ConnectorHandler handler = handlerMap.get(name);
        MConnector connectorMetadata = handler.getMetadata();
        MConnector registeredMetadata =
            repository.registerConnector(connectorMetadata, autoUpgrade);
View Full Code Here

Examples of org.apache.tapestry.IMarkupWriter.begin()

   
    protected void writeHiddenFields()
    {
        IMarkupWriter writer = getHiddenFieldWriter();
       
        writer.begin("div");
        writer.attribute("style", "display:none;");
        writer.attribute("id", _form.getName() + "hidden");
       
        writeHiddenFieldList(writer);
       
View Full Code Here

Examples of org.apache.tapestry.NestedMarkupWriter.begin()

                        + "]>" + NEWLINE);
        writer.printRaw("<ajax-response>");

        expect(writer.getNestedWriter()).andReturn(nested);

        nested.begin("response");
        nested.attribute("id", "id1");
        nested.attribute("type", ResponseBuilder.ELEMENT_TYPE);

        comp1.render(nested, cycle);
View Full Code Here

Examples of org.apache.tapestry.internal.services.HeartbeatImpl.begin()

        train_getParameter(request, elementName, "login");

        replay();

        heartbeat.begin();

        Submit submit = new Submit(request);

        submit.setup(resources, support, heartbeat);
        submit.setDefer(false);
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.