public enum GraknTxType extends Enum<GraknTxType>
A Class Describing the behaviour of a transaction
This class is used to describe how a transaction on GraknGraph should behave.
When producing a graph using a GraknSession one of the following enums must be provided:
READ - A read only transaction. If you attempt to mutate the graph with such a transaction an exception will be thrown.
WRITE - A transaction which allows you to mutate the graph.
BATCH - A transaction which allows mutations to be performed more quickly but disables some consitency checks.
| Modifier and Type | Method and Description |
|---|---|
static GraknTxType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GraknTxType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GraknTxType READ
public static final GraknTxType WRITE
public static final GraknTxType BATCH
public static GraknTxType[] values()
for (GraknTxType c : GraknTxType.values()) System.out.println(c);
public static GraknTxType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2017 Grakn Labs Ltd. All rights reserved.