Examples of batchNativeStatement()


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

        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();
View Full Code Here

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

        final Batch batch = manager.createBatch();

        batch.startBatch();

        batch.batchNativeStatement(statement);

        batch.endBatch();

        //When
        final CompleteBean found = manager.find(CompleteBean.class, id);
View Full Code Here

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

        // create persistence manager -- pm
        Batch batch = manager.createBatch();
        batch.startBatch();

        RegularStatement statement = QueryBuilder.insertInto(ValuelessEntity.TABLE_NAME).value("id", 234L);
        batch.batchNativeStatement(statement);

        ValuelessEntity entity = new ValuelessEntity(123L);
        batch.insert(entity);

        batch.endBatch();
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.