neo4j/src/test/java/rxtx/plain/Neo4jTransactionTypesTests.java
/**
		 * Most useful for framework code, as it gives the lifecycle of the transaction
		 * away from the driver into the callers hands.
		 */
Most useful for framework code, as it gives the lifecycle of the transaction
away from the driver into the callers hands.
Most useful for framework code as it gives the lifecycle of the transaction away from the driver into the callers hands .
@Test
		void explicit() {
			try (Session session = driver.session()) {
				Transaction tx = session.beginTransaction(TransactionConfig.builder().build());
				long personId =
					tx.run("CREATE (a:Person {name: $name}) RETURN id(a) as id", parameters("name", NAME))
						.single().get("id").asLong();
				tx.commit();
			}
		}
@ Test void explicit ( ) { try ( Session session = driver . session ( ) ) { Transaction tx = session . beginTransaction ( TransactionConfig . builder ( ) . build ( ) ) ; long personId = tx . run ( "CREATE (a:Person {name: $name}) RETURN id(a) as id" , parameters ( "name" , NAME ) ) . single ( ) . get ( "id" ) . asLong ( ) ; tx . commit ( ) ; } }
Most useful for framework code, as it gives the lifecycle of the transaction
 away from the driver into the callers hands.
Most useful for framework code as it gives the lifecycle of the transaction away from the driver into the callers hands .