MCPcopy Create free account
hub / github.com/dgraph-io/dgraph4j / newTransaction

Method newTransaction

src/main/java/io/dgraph/DgraphClient.java:412–414  ·  view source on GitHub ↗

Creates a new Transaction object. All operations performed by this transaction are synchronous. A transaction lifecycle is as follows: - Created using AsyncTransaction#newTransaction() - Various AsyncTransaction#query() and AsyncTransaction#mutate() calls made. - Commit using Transac

()

Source from the content-addressed store, hash-verified

410 * @return a new Transaction object.
411 */
412 public Transaction newTransaction() {
413 return new Transaction(asyncClient.newTransaction());
414 }
415
416 /**
417 * Creates a new Transaction object from a TxnContext. All operations performed by this

Callers 15

mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
testOpenWithACLMethod · 0.95
testClientOptionsMethod · 0.95
withRetryMethod · 0.95
doSetupTransactionMethod · 0.45
doMutationMethod · 0.45
upsertBlockTestMethod · 0.45

Calls

no outgoing calls

Tested by 15

testOpenWithACLMethod · 0.76
testClientOptionsMethod · 0.76
upsertBlockTestMethod · 0.36
upsertZeroMutationsMethod · 0.36
upsertTimeoutTestMethod · 0.36
testConflictExceptionMethod · 0.36
testFinishedExceptionMethod · 0.36