Examples of endBatch()


Examples of com.exedosoft.plat.bo.DOService.endBatch()

          map.put("l10n_en", paras[0].toLowerCase());
          map.put("l10n_china", paras[1]);
          theService.addBatch(map);
        }
      }
      theService.endBatch();
    } catch (Exception e) {
      e.printStackTrace();
    }
    this.setEchoValue(I18n.instance().get("翻译完成!"));
    return DEFAULT_FORWARD;
View Full Code Here

Examples of info.archinnov.achilles.persistence.Batch.endBatch()

        // Then
        assertThat(entity.getName()).isEqualTo("DuyHai");
        assertThat(entity.getLabel()).isEqualTo("label");

        // When
        batchingPM.endBatch();

        // Then
        assertThat(entity.getName()).isEqualTo("prePersist");
        assertThat(entity.getLabel()).isEqualTo("postPersist : label");
    }
View Full Code Here

Examples of info.archinnov.achilles.persistence.Batch.endBatch()

        managed.setName("changed_name");
        logAsserter.prepareLogLevel();

        batch.update(managed);

        batch.endBatch();
        logAsserter.assertConsistencyLevels(ONE);
        assertThatBatchContextHasBeenReset(batch);

        entity = manager.find(EntityWithConsistencyLevelOnClassAndField.class, entity.getId(), ONE);
        assertThat(entity.getName()).isEqualTo("changed_name");
View Full Code Here

Examples of info.archinnov.achilles.persistence.Batch.endBatch()

        batch.insert(tweet2);
        batch.insert(tweet3);

        logAsserter.prepareLogLevel();

        batch.endBatch();

        logAsserter.assertConsistencyLevels(QUORUM);
        assertThatBatchContextHasBeenReset(batch);
    }
View Full Code Here

Examples of info.archinnov.achilles.persistence.Batch.endBatch()

        batch.startBatch(TWO);
        batch.insertOrUpdate(tweet2);

        try {
            batch.endBatch();
        } catch (Exception e) {
            assertThatBatchContextHasBeenReset(batch);
            exceptionCaught = true;
        }
View Full Code Here

Examples of info.archinnov.achilles.persistence.Batch.endBatch()

        assertThat(exceptionCaught).isTrue();

        Thread.sleep(1000);
        logAsserter.prepareLogLevel();
        batch.insert(tweet2);
        batch.endBatch();
        logAsserter.assertConsistencyLevels(ONE);
    }

    @Test
    public void should_order_batch_operations_on_the_same_column_with_insert_and_update() throws Exception {
View Full Code Here

Examples of info.archinnov.achilles.persistence.Batch.endBatch()

        entity = batch.insert(entity);
        entity.setLabel("label");
        batch.update(entity);

        batch.endBatch();

        //Then
        Statement statement = new SimpleStatement("SELECT label from CompleteBean where id=" + entity.getId());
        Row row = manager.getNativeSession().execute(statement).one();
        assertThat(row.getString("label")).isEqualTo("label");
View Full Code Here

Examples of info.archinnov.achilles.persistence.Batch.endBatch()

        entity = batch.insert(entity);
        entity.setName("name");
        batch.update(entity);

        batch.endBatch();

        //Then
        Statement statement = new SimpleStatement("SELECT name from CompleteBean where id=" + entity.getId());
        Row row = manager.getNativeSession().execute(statement).one();
        assertThat(row.getString("name")).isEqualTo("name");
View Full Code Here

Examples of info.archinnov.achilles.persistence.Batch.endBatch()

        final Update.Where statement = update(CompleteBean.TABLE_NAME).with(set("name", bindMarker("name")))
                .where(eq("id", bindMarker("id")));

        //When
        batch.batchNativeStatement(statement,"DuyHai",entity2.getId());
        batch.endBatch();

        //Then
        Statement select = new SimpleStatement("SELECT name from CompleteBean where id=" + entity2.getId());
        Row row = manager.getNativeSession().execute(select).one();
        assertThat(row.getString("name")).isEqualTo("DuyHai");
View Full Code Here

Examples of info.archinnov.achilles.persistence.Batch.endBatch()

            }
        };

        //When
        batch.batchNativeStatementWithCASListener(statement,listener, entity.getId(),"name");
        batch.endBatch();

        //Then
        assertThat(error.get()).isTrue();
        assertThat(result.get()).isNotNull();
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.