| Package | Description |
|---|---|
| org.jsimpledb |
Abstraction layer allowing access to a
Database using normal Java objects. |
| org.jsimpledb.change |
Classes passed to
@OnChange-annotated methods. |
| Modifier and Type | Class and Description |
|---|---|
class |
SnapshotJTransaction
A "snapshot"
JTransaction that persists indefinitely. |
| Modifier and Type | Method and Description |
|---|---|
JTransaction |
JSimpleDB.createTransaction(boolean allowNewSchema,
ValidationMode validationMode)
Create a new transaction.
|
JTransaction |
JSimpleDB.createTransaction(boolean allowNewSchema,
ValidationMode validationMode,
Map<String,?> kvoptions)
Create a new transaction with key/value transaction options.
|
JTransaction |
JSimpleDB.createTransaction(KVTransaction kvt,
boolean allowNewSchema,
ValidationMode validationMode)
Create a new transaction using an already-opened
KVTransaction. |
static JTransaction |
JTransaction.getCurrent()
Get the
JTransaction associated with the current thread, if any, otherwise throw an exception. |
JTransaction |
Session.getJTransaction()
Get the open
JTransaction currently associated with this instance. |
JTransaction |
JObject.getTransaction()
Get this instance's associated
JTransaction. |
| Modifier and Type | Method and Description |
|---|---|
void |
JTransaction.copyTo(JTransaction dest,
CopyState copyState,
Iterable<? extends JObject> jobjs)
Copy the objects in the specified
Iterable into the specified destination transaction. |
JObject |
JTransaction.copyTo(JTransaction dest,
JObject srcObj,
ObjId dstId,
CopyState copyState,
String... refPaths)
Copy the specified object, and any other objects referneced through the specified reference paths,
into the specified destination transaction.
|
JObject |
JObject.copyTo(JTransaction dest,
ObjId target,
CopyState copyState,
String... refPaths)
Copy this instance, and other instances it references through the specified
refPaths (if any), into a (possibly)
different JTransaction. |
Converter<?,?> |
JSimpleField.getConverter(JTransaction jtx)
Get a
Converter that converts this field values between core API type and Java model type. |
Converter<ObjId,JObject> |
JReferenceField.getConverter(JTransaction jtx) |
Converter<EnumValue,? extends Enum<?>> |
JEnumField.getConverter(JTransaction jtx) |
static void |
JTransaction.setCurrent(JTransaction jtx)
Set the
JTransaction associated with the current thread. |
| Modifier and Type | Field and Description |
|---|---|
protected JTransaction |
ChangeCopier.dest |
| Modifier and Type | Method and Description |
|---|---|
JTransaction |
ChangeCopier.getDestinationTransaction()
Get the destination transaction configured in this instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Change.apply(JTransaction jtx)
Apply this change to the object associated with this instance in the given transaction.
|
void |
SimpleFieldChange.apply(JTransaction jtx,
JObject jobj) |
void |
SetFieldRemove.apply(JTransaction jtx,
JObject jobj) |
void |
SetFieldClear.apply(JTransaction jtx,
JObject jobj) |
void |
SetFieldAdd.apply(JTransaction jtx,
JObject jobj) |
void |
ObjectDelete.apply(JTransaction jtx,
JObject jobj) |
void |
ObjectCreate.apply(JTransaction jtx,
JObject jobj) |
void |
MapFieldReplace.apply(JTransaction jtx,
JObject jobj) |
void |
MapFieldRemove.apply(JTransaction jtx,
JObject jobj) |
void |
MapFieldClear.apply(JTransaction jtx,
JObject jobj) |
void |
MapFieldAdd.apply(JTransaction jtx,
JObject jobj) |
void |
ListFieldReplace.apply(JTransaction jtx,
JObject jobj) |
void |
ListFieldRemove.apply(JTransaction jtx,
JObject jobj) |
void |
ListFieldClear.apply(JTransaction jtx,
JObject jobj) |
void |
ListFieldAdd.apply(JTransaction jtx,
JObject jobj) |
abstract void |
Change.apply(JTransaction jtx,
JObject jobj)
Apply this change to the given object in the given transaction.
|
| Constructor and Description |
|---|
ChangeCopier(JTransaction dest)
Primary constructor.
|
Copyright © 2017. All rights reserved.