public class BindingSequenceGenerator extends Object implements SequenceGenerator
Every property of every entity regardless of whether it is part of a collection must contain a sequence number that is unique for the entity type within the local graph row. This is essential as a single graph may contain multiple collections of the same entity type. The current sequence number for each entity type is maintained as state information for the graph row. This is minimal and consists of a simple mapping of type physical names, mapped to long integers. At runtime this state information is used within a sequence generator, with changes being written back to the graph row on commit.
StateModel,
URI,
TypeEntry| Constructor and Description |
|---|
BindingSequenceGenerator(StateMarshalingContext context) |
BindingSequenceGenerator(String state,
StateMarshalingContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasLastSequence(org.plasma.sdo.PlasmaType type) |
boolean |
isUpdated() |
Long |
lastSequence(org.plasma.sdo.PlasmaType type) |
byte[] |
marshal() |
String |
marshalAsString() |
String |
marshalAsString(boolean formatted) |
Long |
nextSequence(commonj.sdo.DataObject dataObject)
Creates and adds a sequence number mapped to the UUID within the given data
object.
|
Long |
nextSequence(org.plasma.sdo.PlasmaType type) |
public static final Charset charset
public BindingSequenceGenerator(StateMarshalingContext context)
public BindingSequenceGenerator(String state, StateMarshalingContext context)
public void close()
close in interface SequenceGeneratorpublic boolean hasLastSequence(org.plasma.sdo.PlasmaType type)
hasLastSequence in interface SequenceGeneratorpublic Long lastSequence(org.plasma.sdo.PlasmaType type)
lastSequence in interface SequenceGeneratorpublic Long nextSequence(commonj.sdo.DataObject dataObject)
SequenceGeneratornextSequence in interface SequenceGeneratordataObject - the data objectpublic Long nextSequence(org.plasma.sdo.PlasmaType type)
nextSequence in interface SequenceGeneratorpublic String marshalAsString()
marshalAsString in interface SequenceGeneratorpublic byte[] marshal()
marshal in interface SequenceGeneratorpublic String marshalAsString(boolean formatted)
marshalAsString in interface SequenceGeneratorpublic boolean isUpdated()
isUpdated in interface SequenceGeneratorCopyright © 2017. All Rights Reserved.