Skip navigation links
A C D E F G H I J L M N O P Q R S T U V W 

A

adjust(long) - Method in class org.jsimpledb.Counter
Adjust this counter's value by the specified amount.
apply(JTransaction, JObject) - Method in class org.jsimpledb.change.Change
Apply this change to the given object in the given transaction.
apply(JTransaction) - Method in class org.jsimpledb.change.Change
Apply this change to the object associated with this instance in the given transaction.
apply() - Method in class org.jsimpledb.change.Change
Apply this change to the transaction associated with the current thread.
apply(JObject) - Method in class org.jsimpledb.change.Change
Apply this change to the specified object.
apply(JTransaction, JObject) - Method in class org.jsimpledb.change.ListFieldAdd
 
apply(JTransaction, JObject) - Method in class org.jsimpledb.change.ListFieldClear
 
apply(JTransaction, JObject) - Method in class org.jsimpledb.change.ListFieldRemove
 
apply(JTransaction, JObject) - Method in class org.jsimpledb.change.ListFieldReplace
 
apply(JTransaction, JObject) - Method in class org.jsimpledb.change.MapFieldAdd
 
apply(JTransaction, JObject) - Method in class org.jsimpledb.change.MapFieldClear
 
apply(JTransaction, JObject) - Method in class org.jsimpledb.change.MapFieldRemove
 
apply(JTransaction, JObject) - Method in class org.jsimpledb.change.MapFieldReplace
 
apply(JTransaction, JObject) - Method in class org.jsimpledb.change.ObjectCreate
 
apply(JTransaction, JObject) - Method in class org.jsimpledb.change.ObjectDelete
 
apply(JTransaction, JObject) - Method in class org.jsimpledb.change.SetFieldAdd
 
apply(JTransaction, JObject) - Method in class org.jsimpledb.change.SetFieldClear
 
apply(JTransaction, JObject) - Method in class org.jsimpledb.change.SetFieldRemove
 
apply(JTransaction, JObject) - Method in class org.jsimpledb.change.SimpleFieldChange
 

C

caseChange(Change<T>) - Method in class org.jsimpledb.change.ChangeAdapter
Internal roll-up method.
caseFieldChange(FieldChange<T>) - Method in class org.jsimpledb.change.ChangeAdapter
Internal roll-up method.
caseJCollectionField(JCollectionField) - Method in class org.jsimpledb.JFieldSwitchAdapter
Adapter class roll-up method.
caseJComplexField(JComplexField) - Method in class org.jsimpledb.JFieldSwitchAdapter
Adapter class roll-up method.
caseJCounterField(JCounterField) - Method in interface org.jsimpledb.JFieldSwitch
Handle a JCounterField.
caseJCounterField(JCounterField) - Method in class org.jsimpledb.JFieldSwitchAdapter
Handle a JCounterField.
caseJEnumField(JEnumField) - Method in interface org.jsimpledb.JFieldSwitch
Handle a JEnumField.
caseJEnumField(JEnumField) - Method in class org.jsimpledb.JFieldSwitchAdapter
Handle a JEnumField.
caseJField(JField) - Method in class org.jsimpledb.JFieldSwitchAdapter
Adapter class roll-up method.
caseJListField(JListField) - Method in interface org.jsimpledb.JFieldSwitch
Handle a JListField.
caseJListField(JListField) - Method in class org.jsimpledb.JFieldSwitchAdapter
Handle a JListField.
caseJMapField(JMapField) - Method in interface org.jsimpledb.JFieldSwitch
Handle a JMapField.
caseJMapField(JMapField) - Method in class org.jsimpledb.JFieldSwitchAdapter
Handle a JMapField.
caseJReferenceField(JReferenceField) - Method in interface org.jsimpledb.JFieldSwitch
Handle a JReferenceField.
caseJReferenceField(JReferenceField) - Method in class org.jsimpledb.JFieldSwitchAdapter
Handle a JReferenceField.
caseJSetField(JSetField) - Method in interface org.jsimpledb.JFieldSwitch
Handle a JSetField.
caseJSetField(JSetField) - Method in class org.jsimpledb.JFieldSwitchAdapter
Handle a JSetField.
caseJSimpleField(JSimpleField) - Method in interface org.jsimpledb.JFieldSwitch
Handle a JSimpleField.
caseJSimpleField(JSimpleField) - Method in class org.jsimpledb.JFieldSwitchAdapter
Handle a JSimpleField.
caseListFieldAdd(ListFieldAdd<T, E>) - Method in class org.jsimpledb.change.ChangeAdapter
Handle a ListFieldAdd event.
caseListFieldAdd(ListFieldAdd<T, E>) - Method in class org.jsimpledb.change.ChangeCopier
 
caseListFieldAdd(ListFieldAdd<T, E>) - Method in interface org.jsimpledb.change.ChangeSwitch
Handle a ListFieldAdd event.
caseListFieldChange(ListFieldChange<T>) - Method in class org.jsimpledb.change.ChangeAdapter
Internal roll-up method.
caseListFieldClear(ListFieldClear<T>) - Method in class org.jsimpledb.change.ChangeAdapter
Handle a ListFieldClear event.
caseListFieldClear(ListFieldClear<T>) - Method in class org.jsimpledb.change.ChangeCopier
 
caseListFieldClear(ListFieldClear<T>) - Method in interface org.jsimpledb.change.ChangeSwitch
Handle a ListFieldClear event.
caseListFieldRemove(ListFieldRemove<T, E>) - Method in class org.jsimpledb.change.ChangeAdapter
Handle a ListFieldRemove event.
caseListFieldRemove(ListFieldRemove<T, E>) - Method in class org.jsimpledb.change.ChangeCopier
 
caseListFieldRemove(ListFieldRemove<T, E>) - Method in interface org.jsimpledb.change.ChangeSwitch
Handle a ListFieldRemove event.
caseListFieldReplace(ListFieldReplace<T, E>) - Method in class org.jsimpledb.change.ChangeAdapter
Handle a ListFieldReplace event.
caseListFieldReplace(ListFieldReplace<T, E>) - Method in class org.jsimpledb.change.ChangeCopier
 
caseListFieldReplace(ListFieldReplace<T, E>) - Method in interface org.jsimpledb.change.ChangeSwitch
Handle a ListFieldReplace event.
caseMapFieldAdd(MapFieldAdd<T, K, V>) - Method in class org.jsimpledb.change.ChangeAdapter
Handle a MapFieldAdd event.
caseMapFieldAdd(MapFieldAdd<T, K, V>) - Method in class org.jsimpledb.change.ChangeCopier
 
caseMapFieldAdd(MapFieldAdd<T, K, V>) - Method in interface org.jsimpledb.change.ChangeSwitch
Handle a MapFieldAdd event.
caseMapFieldChange(MapFieldChange<T>) - Method in class org.jsimpledb.change.ChangeAdapter
Internal roll-up method.
caseMapFieldClear(MapFieldClear<T>) - Method in class org.jsimpledb.change.ChangeAdapter
Handle a MapFieldClear event.
caseMapFieldClear(MapFieldClear<T>) - Method in class org.jsimpledb.change.ChangeCopier
 
caseMapFieldClear(MapFieldClear<T>) - Method in interface org.jsimpledb.change.ChangeSwitch
Handle a MapFieldClear event.
caseMapFieldRemove(MapFieldRemove<T, K, V>) - Method in class org.jsimpledb.change.ChangeAdapter
Handle a MapFieldRemove event.
caseMapFieldRemove(MapFieldRemove<T, K, V>) - Method in class org.jsimpledb.change.ChangeCopier
 
caseMapFieldRemove(MapFieldRemove<T, K, V>) - Method in interface org.jsimpledb.change.ChangeSwitch
Handle a MapFieldRemove event.
caseMapFieldReplace(MapFieldReplace<T, K, V>) - Method in class org.jsimpledb.change.ChangeAdapter
Handle a MapFieldReplace event.
caseMapFieldReplace(MapFieldReplace<T, K, V>) - Method in class org.jsimpledb.change.ChangeCopier
 
caseMapFieldReplace(MapFieldReplace<T, K, V>) - Method in interface org.jsimpledb.change.ChangeSwitch
Handle a MapFieldReplace event.
caseObjectCreate(ObjectCreate<T>) - Method in class org.jsimpledb.change.ChangeAdapter
Handle a ObjectCreate event.
caseObjectCreate(ObjectCreate<T>) - Method in class org.jsimpledb.change.ChangeCopier
 
caseObjectCreate(ObjectCreate<T>) - Method in interface org.jsimpledb.change.ChangeSwitch
Handle an ObjectCreate event.
caseObjectDelete(ObjectDelete<T>) - Method in class org.jsimpledb.change.ChangeAdapter
Handle a ObjectDelete event.
caseObjectDelete(ObjectDelete<T>) - Method in class org.jsimpledb.change.ChangeCopier
 
caseObjectDelete(ObjectDelete<T>) - Method in interface org.jsimpledb.change.ChangeSwitch
Handle an ObjectDelete event.
caseSetFieldAdd(SetFieldAdd<T, E>) - Method in class org.jsimpledb.change.ChangeAdapter
Handle a SetFieldAdd event.
caseSetFieldAdd(SetFieldAdd<T, E>) - Method in class org.jsimpledb.change.ChangeCopier
 
caseSetFieldAdd(SetFieldAdd<T, E>) - Method in interface org.jsimpledb.change.ChangeSwitch
Handle a SetFieldAdd event.
caseSetFieldChange(SetFieldChange<T>) - Method in class org.jsimpledb.change.ChangeAdapter
Internal roll-up method.
caseSetFieldClear(SetFieldClear<T>) - Method in class org.jsimpledb.change.ChangeAdapter
Handle a SetFieldClear event.
caseSetFieldClear(SetFieldClear<T>) - Method in class org.jsimpledb.change.ChangeCopier
 
caseSetFieldClear(SetFieldClear<T>) - Method in interface org.jsimpledb.change.ChangeSwitch
Handle a SetFieldClear event.
caseSetFieldRemove(SetFieldRemove<T, E>) - Method in class org.jsimpledb.change.ChangeAdapter
Handle a SetFieldRemove event.
caseSetFieldRemove(SetFieldRemove<T, E>) - Method in class org.jsimpledb.change.ChangeCopier
 
caseSetFieldRemove(SetFieldRemove<T, E>) - Method in interface org.jsimpledb.change.ChangeSwitch
Handle a SetFieldRemove event.
caseSimpleFieldChange(SimpleFieldChange<T, V>) - Method in class org.jsimpledb.change.ChangeAdapter
Handle a SimpleFieldChange event.
caseSimpleFieldChange(SimpleFieldChange<T, V>) - Method in class org.jsimpledb.change.ChangeCopier
 
caseSimpleFieldChange(SimpleFieldChange<T, V>) - Method in interface org.jsimpledb.change.ChangeSwitch
Handle a SimpleFieldChange event.
Change<T> - Class in org.jsimpledb.change
Object change notification.
Change(T) - Constructor for class org.jsimpledb.change.Change
Constructor.
ChangeAdapter<R> - Class in org.jsimpledb.change
Adpater class for the ChangeSwitch interface.
ChangeAdapter() - Constructor for class org.jsimpledb.change.ChangeAdapter
 
ChangeCopier - Class in org.jsimpledb.change
Creates a new Change object based on an existing one where the JObjects referred to by the new Change are copies in a different transaction of the originals.
ChangeCopier(JTransaction) - Constructor for class org.jsimpledb.change.ChangeCopier
Primary constructor.
ChangeCopier() - Constructor for class org.jsimpledb.change.ChangeCopier
"Snapshot" constructor for when the destination transaction is the "snapshot" transaction of the transaction associated with the current thread.
ChangeSwitch<R> - Interface in org.jsimpledb.change
Visitor pattern interface for the Change class hierarchy.
clone() - Method in class org.jsimpledb.CopyState
 
commit() - Method in class org.jsimpledb.JTransaction
Commit this transaction.
commit() - Method in class org.jsimpledb.SnapshotJTransaction
Commit this transaction.
copy(JObject) - Method in class org.jsimpledb.change.ChangeCopier
Copy the given JObject into the destination transaction.
copyIn(String...) - Method in interface org.jsimpledb.JObject
Copy this instance, and other instances it references through the specified refPaths (if any), into the transaction associated with the current thread.
copyOut(String...) - Method in interface org.jsimpledb.JObject
Snapshot this instance and other instances it references through the specified refPaths (if any).
copyState - Variable in class org.jsimpledb.change.ChangeCopier
 
CopyState - Class in org.jsimpledb
Keeps tracks of which objects have already been copied when copying objects between transactions.
CopyState() - Constructor for class org.jsimpledb.CopyState
Default constructor.
CopyState(ObjIdSet) - Constructor for class org.jsimpledb.CopyState
Constructor to use when a set of known objects has already been copied.
copyTo(JTransaction, ObjId, CopyState, String...) - Method in interface org.jsimpledb.JObject
Copy this instance, and other instances it references through the specified refPaths (if any), into a (possibly) different JTransaction.
copyTo(JTransaction, JObject, ObjId, CopyState, String...) - Method in class org.jsimpledb.JTransaction
Copy the specified object, and any other objects referneced through the specified reference paths, into the specified destination transaction.
copyTo(JTransaction, CopyState, Iterable<? extends JObject>) - Method in class org.jsimpledb.JTransaction
Copy the objects in the specified Iterable into the specified destination transaction.
Counter - Class in org.jsimpledb
Represents a 64-bit counter value that can be adjusted concurrently by multiple transactions, typically without locking (depending on the underlying key/value store).
create(Class<T>) - Method in class org.jsimpledb.JTransaction
Create a new instance of the given model class in this transaction.
create(JClass<T>) - Method in class org.jsimpledb.JTransaction
Create a new instance of the given type in this transaction.
createEnumConverter(Class<? extends Enum<?>>) - Static method in class org.jsimpledb.EnumConverter
Convenience "constructor" allowing wildcard caller Enum types.
createSnapshotTransaction(ValidationMode) - Method in class org.jsimpledb.JSimpleDB
Create a new, empty SnapshotJTransaction backed by a NavigableMapKVStore.
createSnapshotTransaction(KVStore, boolean, ValidationMode) - Method in class org.jsimpledb.JSimpleDB
Create a new SnapshotJTransaction based on the provided key/value store.
createSnapshotTransaction(ValidationMode) - Method in class org.jsimpledb.JTransaction
Create an empty snapshot transaction based on this instance.
createTransaction(boolean, ValidationMode) - Method in class org.jsimpledb.JSimpleDB
Create a new transaction.
createTransaction(boolean, ValidationMode, Map<String, ?>) - Method in class org.jsimpledb.JSimpleDB
Create a new transaction with key/value transaction options.
createTransaction(KVTransaction, boolean, ValidationMode) - Method in class org.jsimpledb.JSimpleDB
Create a new transaction using an already-opened KVTransaction.

D

decrement() - Method in class org.jsimpledb.Counter
Decrement this counter's value by one.
DEFAULT_INITIAL_RETRY_DELAY - Static variable in class org.jsimpledb.Session
Default value for the initial retry delay (in milliseconds).
DEFAULT_MAX_RETRIES - Static variable in class org.jsimpledb.Session
Default value for the maximum number of retry attempts.
DEFAULT_MAXIMUM_RETRY_DELAY - Static variable in class org.jsimpledb.Session
Default value for the maximum retry delay (in milliseconds).
DefaultStorageIdGenerator - Class in org.jsimpledb
Default StorageIdGenerator implementation.
DefaultStorageIdGenerator() - Constructor for class org.jsimpledb.DefaultStorageIdGenerator
 
delete() - Method in interface org.jsimpledb.JObject
Delete this instance, if it exists, in this instance's associated transaction.
delete(JObject) - Method in class org.jsimpledb.JTransaction
Delete the object with the given object ID in this transaction.
dest - Variable in class org.jsimpledb.change.ChangeCopier
 
doBackward(EnumValue) - Method in class org.jsimpledb.EnumConverter
 
doForward(T) - Method in class org.jsimpledb.EnumConverter
 

E

EnumConverter<T extends Enum<T>> - Class in org.jsimpledb
Converts between core database EnumValue objects and the corresponding Java Enum model values.
EnumConverter(Class<T>) - Constructor for class org.jsimpledb.EnumConverter
Constructor.
equals(Object) - Method in class org.jsimpledb.change.Change
 
equals(Object) - Method in class org.jsimpledb.change.FieldChange
 
equals(Object) - Method in class org.jsimpledb.change.ListFieldAdd
 
equals(Object) - Method in class org.jsimpledb.change.ListFieldRemove
 
equals(Object) - Method in class org.jsimpledb.change.ListFieldReplace
 
equals(Object) - Method in class org.jsimpledb.change.MapFieldAdd
 
equals(Object) - Method in class org.jsimpledb.change.MapFieldRemove
 
equals(Object) - Method in class org.jsimpledb.change.MapFieldReplace
 
equals(Object) - Method in class org.jsimpledb.change.SetFieldAdd
 
equals(Object) - Method in class org.jsimpledb.change.SetFieldRemove
 
equals(Object) - Method in class org.jsimpledb.change.SimpleFieldChange
 
equals(Object) - Method in class org.jsimpledb.EnumConverter
 
exists() - Method in interface org.jsimpledb.JObject
Determine whether this instance still exists in its associated transaction.
exists(ObjId) - Method in class org.jsimpledb.JTransaction
Determine whether the object with the given object ID exists in this transaction.

F

FieldChange<T> - Class in org.jsimpledb.change
Notification object that gets passed to @OnChange-annotated methods when a field changes.
FieldChange(T, int, String) - Constructor for class org.jsimpledb.change.FieldChange
Constructor.
findJClass(Class<T>) - Method in class org.jsimpledb.JSimpleDB
Find the most specific JClass for which the give type is a sub-type of the corresponding Java model type.
findLowestCommonAncestor(Iterable<TypeToken<?>>) - Static method in class org.jsimpledb.Util
Find the narrowest type that is a supertype of all of the given types.
findLowestCommonAncestorOfClasses(Iterable<Class<?>>) - Static method in class org.jsimpledb.Util
Find the narrowest type that is a supertype of all of the given types.
findLowestCommonAncestors(Iterable<TypeToken<?>>) - Static method in class org.jsimpledb.Util
Find the narrowest type(s) each of which is a supertype of all of the given types.
findLowestCommonAncestorsOfClasses(Iterable<Class<?>>) - Static method in class org.jsimpledb.Util
Find the narrowest type(s) each of which is a supertype of all of the given types.

G

generateClassStorageId(Class<?>, String) - Method in class org.jsimpledb.DefaultStorageIdGenerator
 
generateClassStorageId(Class<?>, String) - Method in interface org.jsimpledb.StorageIdGenerator
Generage a storage ID for a Java model class.
generateCompositeIndexStorageId(Class<?>, String, int[]) - Method in class org.jsimpledb.DefaultStorageIdGenerator
 
generateCompositeIndexStorageId(Class<?>, String, int[]) - Method in interface org.jsimpledb.StorageIdGenerator
Generage a storage ID for a composite index.
GENERATED_CLASS_NAME_SUFFIX - Static variable in class org.jsimpledb.JSimpleDB
The suffix that is appended to Java model class names to get the corresponding JSimpleDB generated class name.
generateFieldStorageId(Method, String) - Method in class org.jsimpledb.DefaultStorageIdGenerator
 
generateFieldStorageId(Method, String) - Method in interface org.jsimpledb.StorageIdGenerator
Generage a storage ID for a regular field.
generateListElementStorageId(Method, String) - Method in class org.jsimpledb.DefaultStorageIdGenerator
 
generateListElementStorageId(Method, String) - Method in interface org.jsimpledb.StorageIdGenerator
Generage a storage ID for a list field.
generateMapKeyStorageId(Method, String) - Method in class org.jsimpledb.DefaultStorageIdGenerator
 
generateMapKeyStorageId(Method, String) - Method in interface org.jsimpledb.StorageIdGenerator
Generage a storage ID for a map key field.
generateMapValueStorageId(Method, String) - Method in class org.jsimpledb.DefaultStorageIdGenerator
 
generateMapValueStorageId(Method, String) - Method in interface org.jsimpledb.StorageIdGenerator
Generage a storage ID for a map value field.
generateSetElementStorageId(Method, String) - Method in class org.jsimpledb.DefaultStorageIdGenerator
 
generateSetElementStorageId(Method, String) - Method in interface org.jsimpledb.StorageIdGenerator
Generage a storage ID for a set field.
get() - Method in class org.jsimpledb.Counter
Read this counter's current value.
get(ObjId) - Method in class org.jsimpledb.JTransaction
Get the Java model object that is associated with this transaction and has the given ID.
get(ObjId, Class<T>) - Method in class org.jsimpledb.JTransaction
Get the Java model object that is associated with this transaction and has the given ID, cast to the given type.
get(T) - Method in class org.jsimpledb.JTransaction
Get the Java model object with the same object ID as the given JObject and whose state derives from this transaction.
getActualVersion() - Method in class org.jsimpledb.JSimpleDB
Get the schema version that this instance used for the most recently created transaction.
getAll(Class<T>) - Method in class org.jsimpledb.JTransaction
Get all instances of the given type.
getConfiguredVersion() - Method in class org.jsimpledb.JSimpleDB
Get the schema version that this instance was configured to use.
getConverter(JTransaction) - Method in class org.jsimpledb.JEnumField
 
getConverter(JTransaction) - Method in class org.jsimpledb.JReferenceField
 
getConverter(JTransaction) - Method in class org.jsimpledb.JSimpleField
Get a Converter that converts this field values between core API type and Java model type.
getCopyState() - Method in class org.jsimpledb.change.ChangeCopier
Get the CopyState used by this instance.
getCurrent() - Static method in class org.jsimpledb.JTransaction
Get the JTransaction associated with the current thread, if any, otherwise throw an exception.
getDatabase() - Method in class org.jsimpledb.JSimpleDB
Get the core API Database underlying this instance.
getDatabase() - Method in class org.jsimpledb.Session
Get the associated Database, if any.
getDatabaseDescription() - Method in class org.jsimpledb.Session
Get a description of the database.
getDestinationTransaction() - Method in class org.jsimpledb.change.ChangeCopier
Get the destination transaction configured in this instance.
getElement() - Method in class org.jsimpledb.change.ListFieldAdd
Get the element that was added to the list.
getElement() - Method in class org.jsimpledb.change.ListFieldRemove
Get the element that was removed from the list.
getElement() - Method in class org.jsimpledb.change.SetFieldAdd
Get the element that was added to the set.
getElement() - Method in class org.jsimpledb.change.SetFieldRemove
Get the element that was removed from the set.
getElementField() - Method in class org.jsimpledb.JCollectionField
Get the element sub-field.
getEnumType() - Method in class org.jsimpledb.EnumConverter
Get the Enum type associated with this instance.
getFieldName() - Method in class org.jsimpledb.change.FieldChange
Get the name of the field that changed.
getFieldType() - Method in class org.jsimpledb.JSimpleField
Get the FieldType used by the core API to encode this field's values.
getGetter() - Method in class org.jsimpledb.JField
Get the getter method associated with this field.
getIndex() - Method in class org.jsimpledb.change.ListFieldAdd
Get the list index at which the new element was added.
getIndex() - Method in class org.jsimpledb.change.ListFieldRemove
Get the list index from which the element was removed.
getIndex() - Method in class org.jsimpledb.change.ListFieldReplace
Get the list index at which the element was replaced.
getInitialRetryDelay() - Method in class org.jsimpledb.Session
Get the initial retry delay when a Session.RetryableAction is given to performSessionAction().
getJClass(Class<T>) - Method in class org.jsimpledb.JSimpleDB
Get the JClass modeled by the given type.
getJClass(ObjId) - Method in class org.jsimpledb.JSimpleDB
Get the JClass associated with the object ID.
getJClass(int) - Method in class org.jsimpledb.JSimpleDB
Get the JClass associated with the given storage ID.
getJClasses() - Method in class org.jsimpledb.JSimpleDB
Get all JClass's associated with this instance, indexed by storage ID.
getJClasses(Class<T>) - Method in class org.jsimpledb.JSimpleDB
Get all JClasses which sub-type the given type.
getJClassesByType() - Method in class org.jsimpledb.JSimpleDB
Get all JClass's associated with this instance, indexed by Java model type.
getJField(int, Class<T>) - Method in class org.jsimpledb.JClass
Get the JField in this instance associated with the specified storage ID, cast to the given type.
getJFields() - Method in class org.jsimpledb.JCompositeIndex
Get the JSimpleFields on which this index is based.
getJFieldsByName() - Method in class org.jsimpledb.JClass
Get all JField's associated with this instance, indexed by name.
getJFieldsByStorageId() - Method in class org.jsimpledb.JClass
Get all JField's associated with this instance, indexed by storage ID.
getJObject() - Method in class org.jsimpledb.change.Change
Get the Java model object containing the field that changed.
getJSimpleDB() - Method in class org.jsimpledb.JSchemaObject
Get the JSimpleDB with which this instance is associated.
getJSimpleDB() - Method in class org.jsimpledb.JTransaction
Get the JSimpleDB associated with this instance.
getJSimpleDB() - Method in class org.jsimpledb.Session
Get the associated JSimpleDB, if any.
getJTransaction() - Method in class org.jsimpledb.Session
Get the open JTransaction currently associated with this instance.
getKey() - Method in class org.jsimpledb.change.MapFieldAdd
Get the key of the new key/value pair that was added.
getKey() - Method in class org.jsimpledb.change.MapFieldRemove
Get the key of the key/value pair that was removed.
getKey() - Method in class org.jsimpledb.change.MapFieldReplace
Get the key of the key/value pair whose value was replaced.
getKey(JObject) - Method in class org.jsimpledb.JTransaction
Get the byte[] key in the underlying key/value store corresponding to the specified object.
getKey(JObject, String) - Method in class org.jsimpledb.JTransaction
Get the byte[] key in the underlying key/value store corresponding to the specified field in the specified object.
getKeyField() - Method in class org.jsimpledb.JMapField
Get the key sub-field.
getKVDatabase() - Method in class org.jsimpledb.Session
Get the associated KVDatabase.
getKVTransaction() - Method in class org.jsimpledb.Session
Get the open KVTransaction currently associated with this instance.
getMaximumRetryDelay() - Method in class org.jsimpledb.Session
Configure the maximum retry delay when a Session.RetryableAction is given to performSessionAction().
getMaxRetries() - Method in class org.jsimpledb.Session
Get the maximum number of allowed retries when a Session.RetryableAction is given to performSessionAction().
getMode() - Method in class org.jsimpledb.Session
Get this instance's SessionMode.
getModelClass(JObject) - Static method in class org.jsimpledb.JSimpleDB
Get the Java model class of the given JObject.
getName() - Method in class org.jsimpledb.JSchemaObject
Get the name of this instance.
getNameIndex() - Method in class org.jsimpledb.JSimpleDB
getNameIndex() - Method in class org.jsimpledb.Session
Get the NameIndex for this instance's SchemaModel.
getNewValue() - Method in class org.jsimpledb.change.ListFieldReplace
Get the value of the field after the change.
getNewValue() - Method in class org.jsimpledb.change.MapFieldReplace
Get the value of the key/value pair after the change.
getNewValue() - Method in class org.jsimpledb.change.SimpleFieldChange
Get the value of the field after the change.
getObject() - Method in class org.jsimpledb.change.Change
Get the Java model object containing the field that changed.
getObject() - Method in exception org.jsimpledb.ValidationException
Get the object that failed to validate.
getObjId() - Method in interface org.jsimpledb.JObject
Get this instance's unique JSimpleDB object identifier.
getOldValue() - Method in class org.jsimpledb.change.ListFieldReplace
Get the value of the field before the change.
getOldValue() - Method in class org.jsimpledb.change.MapFieldReplace
Get the value of the key/value pair before the change.
getOldValue() - Method in class org.jsimpledb.change.SimpleFieldChange
Get the value of the field before the change.
getOnDelete() - Method in class org.jsimpledb.JReferenceField
Get the DeleteAction configured for this field.
getParentField() - Method in class org.jsimpledb.JSimpleField
Get the JComplexField of which this instance is a sub-field, if any.
getReferencedObjects(JObject) - Method in class org.jsimpledb.JSimpleDB
Utility method to get all of the objects directly referenced by a given object via any field.
getReferenceFields() - Method in class org.jsimpledb.ReferencePath
Get the storage IDs of the reference fields in this path.
getSchemaModel() - Method in class org.jsimpledb.JSimpleDB
Get the SchemaModel associated with this instance, derived from the annotations on the scanned classes.
getSchemaModel() - Method in class org.jsimpledb.Session
Get the SchemaModel configured for this instance.
getSchemaVersion() - Method in interface org.jsimpledb.JObject
Get this instance's current schema version.
getSchemaVersion(ObjId) - Method in class org.jsimpledb.JTransaction
Get this schema version of the specified object.
getSchemaVersion() - Method in class org.jsimpledb.Session
Get the schema version associated with this instance.
getSetter() - Method in class org.jsimpledb.JSimpleField
Get the setter method associated with this field.
getSnapshotTransaction() - Method in class org.jsimpledb.JTransaction
Get the default SnapshotJTransaction associated with this instance.
getStartType() - Method in class org.jsimpledb.ReferencePath
Get the Java type of the object at which this path starts.
getStorageId() - Method in class org.jsimpledb.change.FieldChange
Get the storage ID of the field that changed.
getStorageId() - Method in class org.jsimpledb.JSchemaObject
Get the storage ID of this instance.
getSubField(String) - Method in class org.jsimpledb.JCollectionField
 
getSubField(String) - Method in class org.jsimpledb.JComplexField
Get the sub-field with the given name.
getSubField(String) - Method in class org.jsimpledb.JMapField
 
getSubFields() - Method in class org.jsimpledb.JCollectionField
 
getSubFields() - Method in class org.jsimpledb.JComplexField
Get the sub-fields associated with this field.
getSubFields() - Method in class org.jsimpledb.JMapField
 
getTargetField() - Method in class org.jsimpledb.ReferencePath
Get the storage ID associated with the target field in the target object type.
getTargetFieldTypes() - Method in class org.jsimpledb.ReferencePath
Get the Java type(s) corresponding to the field at which this path ends.
getTargetSuperField() - Method in class org.jsimpledb.ReferencePath
Get the storage ID associated with the complex field containing the target field a sub-field, in the case that the target field is a sub-field of a complex field.
getTargetType() - Method in class org.jsimpledb.ReferencePath
Get the Java type of the object at which this path ends.
getTargetTypes() - Method in class org.jsimpledb.ReferencePath
Get the possible Java types of the object at which this path ends.
getTransaction() - Method in interface org.jsimpledb.JObject
Get this instance's associated JTransaction.
getTransaction() - Method in class org.jsimpledb.JTransaction
Get the Transaction associated with this instance.
getTransaction() - Method in class org.jsimpledb.Session
Get the open Transaction currently associated with this instance.
getTransaction() - Method in class org.jsimpledb.SnapshotJTransaction
Get the SnapshotTransaction associated with this instance.
getTransactionOptions() - Method in interface org.jsimpledb.Session.HasTransactionOptions
Get the options, if any, to be used when creating a new transaction for this action to run in.
getType() - Method in class org.jsimpledb.JClass
Get the Java model object type associated with this instance.
getTypeParameter(Type, int) - Static method in class org.jsimpledb.Util
Get the n'th generic type parameter.
getTypeToken() - Method in class org.jsimpledb.JEnumField
 
getTypeToken() - Method in class org.jsimpledb.JSimpleField
Get the type of this field.
getValidationMode() - Method in class org.jsimpledb.JTransaction
Get the ValidationMode configured for this instance.
getValidationMode() - Method in class org.jsimpledb.Session
Get the ValidationMode associated with this instance.
getValue() - Method in class org.jsimpledb.change.MapFieldAdd
Get the value of the new key/value pair that was added.
getValue() - Method in class org.jsimpledb.change.MapFieldRemove
Get the value of the key/value pair that was removed.
getValue(JObject) - Method in class org.jsimpledb.JCollectionField
 
getValue(JObject) - Method in class org.jsimpledb.JCounterField
 
getValue(JObject) - Method in class org.jsimpledb.JField
Get the Java value of this field in the given Java model object.
getValue(JObject) - Method in class org.jsimpledb.JListField
 
getValue(JObject) - Method in class org.jsimpledb.JMapField
 
getValue(JObject) - Method in class org.jsimpledb.JReferenceField
 
getValue(JObject) - Method in class org.jsimpledb.JSetField
 
getValue(JObject) - Method in class org.jsimpledb.JSimpleField
 
getValueField() - Method in class org.jsimpledb.JMapField
Get the value sub-field.
getViolations() - Method in exception org.jsimpledb.ValidationException
Get the validation errors in case validation failed due to a failed JSR 303 validation check.
getWildcardedType(Class<T>) - Static method in class org.jsimpledb.Util
Parameterize the raw type with wildcards.

H

hasCoreAPI() - Method in enum org.jsimpledb.SessionMode
Determine whether the core API (e.g., Transaction) is available in this mode.
hasDefaultValidationAnnotation(AnnotatedElement) - Static method in class org.jsimpledb.Util
Determine whether the given object has any JSR 303 annotation(s) defining validation constraints in the default group.
hashCode() - Method in class org.jsimpledb.change.Change
 
hashCode() - Method in class org.jsimpledb.change.FieldChange
 
hashCode() - Method in class org.jsimpledb.change.ListFieldAdd
 
hashCode() - Method in class org.jsimpledb.change.ListFieldRemove
 
hashCode() - Method in class org.jsimpledb.change.ListFieldReplace
 
hashCode() - Method in class org.jsimpledb.change.MapFieldAdd
 
hashCode() - Method in class org.jsimpledb.change.MapFieldRemove
 
hashCode() - Method in class org.jsimpledb.change.MapFieldReplace
 
hashCode() - Method in class org.jsimpledb.change.SetFieldAdd
 
hashCode() - Method in class org.jsimpledb.change.SetFieldRemove
 
hashCode() - Method in class org.jsimpledb.change.SimpleFieldChange
 
hashCode() - Method in class org.jsimpledb.EnumConverter
 
hasJSimpleDB() - Method in enum org.jsimpledb.SessionMode
Determine whether the JSimpleDB (or "Java") API (e.g., JTransaction) is available in this mode.
hasValidation(Class<?>) - Static method in class org.jsimpledb.Util
Determine if any JSR 303 validation annotations are present on the given type itself or any of its methods (public methods only).
hasValidationAnnotation(AnnotatedElement) - Static method in class org.jsimpledb.Util
Determine whether the given object has any JSR 303 annotation(s).

I

increment() - Method in class org.jsimpledb.Counter
Increment this counter's value by one.
invertReferencePath(Class<T>, String, Iterable<? extends JObject>) - Method in class org.jsimpledb.JTransaction
Find all objects that refer to any object in the given target set through the specified path of references.
invoke(Method, Object, Object...) - Static method in class org.jsimpledb.Util
Invoke method via reflection and re-throw any checked exception wrapped in an JSimpleDBException.
isAllowNewSchema() - Method in class org.jsimpledb.Session
Get whether the recording of new schema versions should be allowed.
isAnyGroupBeingValidated(Class<?>[], Class<?>[]) - Static method in class org.jsimpledb.Util
Determine if a constraint whose groups() contain the given constraint groups should be applied when validating with the given validation groups.
isCascadeDelete() - Method in class org.jsimpledb.JReferenceField
Determine whether the referred-to object should be deleted when an object containing this field is deleted.
isCopied(ObjId) - Method in class org.jsimpledb.CopyState
Determine if an object has been marked as copied.
isGroupBeingValidated(Class<?>, Class<?>[]) - Static method in class org.jsimpledb.Util
Determine if a constraint whose groups() contain the given constraint group should be applied when validating with the given validation groups.
isIndexed() - Method in class org.jsimpledb.JSimpleField
Get whether this field is indexed.
isReadOnly() - Method in class org.jsimpledb.Session
Get whether new transactions should be marked read-only.
isSnapshot() - Method in interface org.jsimpledb.JObject
Determine whether this instance is a normal instance or is a "snapshot" instance associated with a SnapshotJTransaction.
isSnapshot() - Method in class org.jsimpledb.JTransaction
Determine whether this instance is a SnapshotJTransaction.
isSnapshot() - Method in class org.jsimpledb.SnapshotJTransaction
 
isSuppressNotifications() - Method in class org.jsimpledb.CopyState
Determine whether to suppress @OnCreate and @OnChange notifications in the destination transaction.
isTransactionOpen() - Method in class org.jsimpledb.Session
Determine whether there is a transaction already associated with this instance.
isValid() - Method in class org.jsimpledb.JTransaction
Determine whether this transaction is still usable.
isValid() - Method in class org.jsimpledb.SnapshotJTransaction
Determine whether this transaction is still valid.

J

JClass<T> - Class in org.jsimpledb
Information about a Java class that is used to represent a specific JSimpleDB object type.
JCollectionField - Class in org.jsimpledb
Represents a collection field in a JClass.
JComplexField - Class in org.jsimpledb
Represents a complex field in a JClass.
JCompositeIndex - Annotation Type in org.jsimpledb.annotation
Java annotation defining a composite index on a JSimpleClass-annotated class.
JCompositeIndex - Class in org.jsimpledb
A composite index.
JCounterField - Class in org.jsimpledb
Represents a counter field in a JClass.
JEnumField - Class in org.jsimpledb
Represents an Enum field in a JClass.
JField - Annotation Type in org.jsimpledb.annotation
Java annotation for defining simple fields, including reference fields that refer to other Java model object types.
JField - Class in org.jsimpledb
Represents a field in a Java model object.
JFieldSwitch<R> - Interface in org.jsimpledb
Visitor pattern interface for JFields.
JFieldSwitchAdapter<R> - Class in org.jsimpledb
Adapter class for JFieldSwitch.
JFieldSwitchAdapter() - Constructor for class org.jsimpledb.JFieldSwitchAdapter
 
JFieldType - Annotation Type in org.jsimpledb.annotation
Java annotation for classes that define custom FieldTypes for a JSimpleDB's underlying Database.
JListField - Annotation Type in org.jsimpledb.annotation
Java annotation for the getter methods of Java bean properties reflecting List fields.
JListField - Class in org.jsimpledb
Represents a list field in a JClass.
JMapField - Annotation Type in org.jsimpledb.annotation
Java annotation for the getter methods of Java bean properties reflecting JSimpleDB Map fields.
JMapField - Class in org.jsimpledb
Represents a map field in a JClass.
JObject - Interface in org.jsimpledb
Interface implemented by JSimpleDB Java model objects.
JReferenceField - Class in org.jsimpledb
Represents a reference field in a JClass or a reference sub-field of a complex field in a JClass.
JSchemaObject - Class in org.jsimpledb
Superclass for the JClass and JField classes which define the schema associated with a JSimpleDB.
JSetField - Annotation Type in org.jsimpledb.annotation
Java annotation for the getter methods of Java bean properties reflecting JSimpleDB Set fields.
JSetField - Class in org.jsimpledb
Represents a set field in a JClass.
JSimpleClass - Annotation Type in org.jsimpledb.annotation
Java annotation for Java classes that are JSimpleDB object model types.
JSimpleDB - Class in org.jsimpledb
JSimpleDB Java persistence layer.
JSimpleDB(Iterable<? extends Class<?>>) - Constructor for class org.jsimpledb.JSimpleDB
Create an instance using an initially empty, in-memory SimpleKVDatabase.
JSimpleDB(Class<?>...) - Constructor for class org.jsimpledb.JSimpleDB
Create an instance using an initially empty, in-memory SimpleKVDatabase.
JSimpleDB(Database, int, StorageIdGenerator, Iterable<? extends Class<?>>) - Constructor for class org.jsimpledb.JSimpleDB
Primary constructor.
JSIMPLEDB_VERSION - Static variable in class org.jsimpledb.Version
The version of this library.
JSimpleDBException - Exception in org.jsimpledb
Superclass of all unchecked exceptions thrown by the JSimpleDB API.
JSimpleDBException() - Constructor for exception org.jsimpledb.JSimpleDBException
 
JSimpleDBException(String) - Constructor for exception org.jsimpledb.JSimpleDBException
 
JSimpleDBException(Throwable) - Constructor for exception org.jsimpledb.JSimpleDBException
 
JSimpleDBException(String, Throwable) - Constructor for exception org.jsimpledb.JSimpleDBException
 
JSimpleDBFactory - Class in org.jsimpledb
Factory for JSimpleDB instances.
JSimpleDBFactory() - Constructor for class org.jsimpledb.JSimpleDBFactory
 
JSimpleField - Class in org.jsimpledb
Represents a simple field in a JClass or a simple sub-field of a complex field in a JClass.
JTransaction - Class in org.jsimpledb
A transaction associated with a JSimpleDB instance.
JTransient - Annotation Type in org.jsimpledb.annotation
Eliminates the annotated method from consideration for JSimpleDB field auto-generation.

L

ListFieldAdd<T,E> - Class in org.jsimpledb.change
Notification object that gets passed to @OnChange-annotated methods when an element is added to a list field.
ListFieldAdd(T, int, String, int, E) - Constructor for class org.jsimpledb.change.ListFieldAdd
Constructor.
ListFieldChange<T> - Class in org.jsimpledb.change
Notification object that gets passed to @OnChange-annotated methods when a list field changes.
ListFieldChange(T, int, String) - Constructor for class org.jsimpledb.change.ListFieldChange
Constructor.
ListFieldClear<T> - Class in org.jsimpledb.change
Notification object that gets passed to @OnChange-annotated methods when a list field is cleared.
ListFieldClear(T, int, String) - Constructor for class org.jsimpledb.change.ListFieldClear
Constructor.
ListFieldRemove<T,E> - Class in org.jsimpledb.change
Notification object that gets passed to @OnChange-annotated methods when an element is removed from a list field.
ListFieldRemove(T, int, String, int, E) - Constructor for class org.jsimpledb.change.ListFieldRemove
Constructor.
ListFieldReplace<T,E> - Class in org.jsimpledb.change
Notification object that gets passed to @OnChange-annotated methods when an element is replaced in a list field.
ListFieldReplace(T, int, String, int, E, E) - Constructor for class org.jsimpledb.change.ListFieldReplace
Constructor.
log - Variable in class org.jsimpledb.Session
 

M

MapFieldAdd<T,K,V> - Class in org.jsimpledb.change
Notification object that gets passed to @OnChange-annotated methods when a new key/value pair is added to a map field.
MapFieldAdd(T, int, String, K, V) - Constructor for class org.jsimpledb.change.MapFieldAdd
Constructor.
MapFieldChange<T> - Class in org.jsimpledb.change
Notification object that gets passed to @OnChange-annotated methods when a map field changes.
MapFieldChange(T, int, String) - Constructor for class org.jsimpledb.change.MapFieldChange
Constructor.
MapFieldClear<T> - Class in org.jsimpledb.change
Notification object that gets passed to @OnChange-annotated methods when a map field is cleared.
MapFieldClear(T, int, String) - Constructor for class org.jsimpledb.change.MapFieldClear
Constructor.
MapFieldRemove<T,K,V> - Class in org.jsimpledb.change
Notification object that gets passed to @OnChange-annotated methods when a key/value pair is removed from a map field.
MapFieldRemove(T, int, String, K, V) - Constructor for class org.jsimpledb.change.MapFieldRemove
Constructor.
MapFieldReplace<T,K,V> - Class in org.jsimpledb.change
Notification object that gets passed to @OnChange-annotated methods when the value in a key/value pair is replaced with a new value.
MapFieldReplace(T, int, String, K, V, V) - Constructor for class org.jsimpledb.change.MapFieldReplace
Constructor.
markCopied(ObjId) - Method in class org.jsimpledb.CopyState
Determine if an object has already been copied, and if not mark it so.
markTraversed(ObjId, int[]) - Method in class org.jsimpledb.CopyState
Determine if the specified reference path has already been traversed starting at the given object, and if not mark it so.
MAX_STORAGE_ID - Static variable in class org.jsimpledb.DefaultStorageIdGenerator
 
MIN_STORAGE_ID - Static variable in class org.jsimpledb.DefaultStorageIdGenerator
 

N

newJSimpleDB() - Method in class org.jsimpledb.JSimpleDBFactory
Construct a JSimpleDB instance using this instance's configuration.
newParameterizedType(Class<T>, Type[]) - Static method in class org.jsimpledb.Util
Convert a raw class back into its generic type using caller-supplied type parameters.

O

ObjectCreate<T> - Class in org.jsimpledb.change
Change notification that indicates a new object has been created.
ObjectCreate(T) - Constructor for class org.jsimpledb.change.ObjectCreate
Constructor.
ObjectDelete<T> - Class in org.jsimpledb.change
Change notification that indicates an object has been deleted.
ObjectDelete(T) - Constructor for class org.jsimpledb.change.ObjectDelete
Constructor.
OnChange - Annotation Type in org.jsimpledb.annotation
Annotation for methods that are to be invoked whenever a target field in some target object changes during a transaction, where the target object containing the changed field is found at the end of a path of references starting from the object to be notified.
OnCreate - Annotation Type in org.jsimpledb.annotation
Annotates JSimpleDB model class methods that are to be invoked whenever a database object is newly created.
OnDelete - Annotation Type in org.jsimpledb.annotation
Annotates JSimpleDB model class methods that are to be invoked whenever an object is about to be deleted.
OnValidate - Annotation Type in org.jsimpledb.annotation
Annotates a JSimpleDB model class method that should be invoked any time the associated model object is validated.
OnVersionChange - Annotation Type in org.jsimpledb.annotation
Annotation for methods that are to be invoked whenever an object's schema version has just changed.
org.jsimpledb - package org.jsimpledb
Abstraction layer allowing access to a Database using normal Java objects.
org.jsimpledb.annotation - package org.jsimpledb.annotation
Annotations used for automatic creation of a JSimpleDB and corresponding schema configuration of the underlying Database from annotated classes, as well as automatic registration of various listeners, etc.
org.jsimpledb.change - package org.jsimpledb.change
Classes passed to @OnChange-annotated methods.

P

parseReferencePath(Class<?>, String) - Method in class org.jsimpledb.JSimpleDB
Parse a ReferencePath in String form.
performAction(Runnable) - Method in class org.jsimpledb.JTransaction
Invoke the given Runnable with this instance as the current transaction.
performSessionAction(Session.Action) - Method in class org.jsimpledb.Session
Perform the given action in the context of this session.
performSessionActionWithCurrentTransaction(Session.Action) - Method in class org.jsimpledb.Session
Associate the current JTransaction with this instance, if not already associated, while performing the given action.

Q

queryCompositeIndex(Class<T>, String, Class<V1>, Class<V2>) - Method in class org.jsimpledb.JTransaction
Access a composite index on two fields.
queryCompositeIndex(Class<T>, String, Class<V1>, Class<V2>, Class<V3>) - Method in class org.jsimpledb.JTransaction
Access a composite index on three fields.
queryCompositeIndex(Class<T>, String, Class<V1>, Class<V2>, Class<V3>, Class<V4>) - Method in class org.jsimpledb.JTransaction
Access a composite index on four fields.
queryIndex(Class<T>, String, Class<V>) - Method in class org.jsimpledb.JTransaction
Get the index on a simple field.
queryIndex(int) - Method in class org.jsimpledb.JTransaction
Query an index by storage ID.
queryListElementIndex(Class<T>, String, Class<V>) - Method in class org.jsimpledb.JTransaction
Get the composite index on a list field that includes list indicies.
queryMapValueIndex(Class<T>, String, Class<V>, Class<K>) - Method in class org.jsimpledb.JTransaction
Get the composite index on a map value field that includes map keys.
queryVersion(Class<T>) - Method in class org.jsimpledb.JTransaction
Get all instances of the given type, grouped according to schema version.

R

readCounterField(ObjId, int, boolean) - Method in class org.jsimpledb.JTransaction
Read a counter field.
readListField(ObjId, int, boolean) - Method in class org.jsimpledb.JTransaction
Read a list field.
readMapField(ObjId, int, boolean) - Method in class org.jsimpledb.JTransaction
Read a map field.
readSetField(ObjId, int, boolean) - Method in class org.jsimpledb.JTransaction
Read a set field.
readSimpleField(ObjId, int, boolean) - Method in class org.jsimpledb.JTransaction
Read a simple field.
recreate() - Method in interface org.jsimpledb.JObject
Recreate a deleted instance, if it does not exist, in its associated transaction.
recreate(JObject) - Method in class org.jsimpledb.JTransaction
Recreate the given instance in this transaction.
ReferencePath - Class in org.jsimpledb
Reference paths.
registerJObject(JObject) - Static method in class org.jsimpledb.JTransaction
Ensure the given JObject is registered in its associated transaction's object cache.
reportException(Exception) - Method in class org.jsimpledb.Session
Handle an exception thrown during an invocation of performSessionAction().
requiresDefaultValidation(Class<?>) - Static method in class org.jsimpledb.Util
Determine if instances of the given type require any validation under the default validation group.
requiresDefaultValidation(Method) - Static method in class org.jsimpledb.Util
Determine if the given getter method, or any method it overrides, has a JSR 303 validation constraint applicable under the default validation group.
reset() - Method in class org.jsimpledb.SnapshotJTransaction
Delete all objects contained in this snapshot transaction and reset it back to its initial state.
resetCachedFieldValues() - Method in interface org.jsimpledb.JObject
Reset cached simple field values.
resetValidationQueue() - Method in class org.jsimpledb.JTransaction
Clear the validation queue associated with this transaction.
revalidate(Class<?>...) - Method in interface org.jsimpledb.JObject
Add this instance to the validation queue for validation in its associated transaction.
revalidate(ObjId, Class<?>...) - Method in class org.jsimpledb.JTransaction
Add the given instance to the validation queue for validation, which will occur either at JTransaction.commit() time or at the next invocation of JTransaction.validate(), whichever occurs first.
rollback() - Method in class org.jsimpledb.JTransaction
Roll back this transaction.
rollback() - Method in class org.jsimpledb.SnapshotJTransaction
Roll back this transaction.
run(Session) - Method in interface org.jsimpledb.Session.Action
Perform some action using the given Session.

S

Session - Class in org.jsimpledb
Utility class for programmatic JSimpleDB database access.
Session(KVDatabase) - Constructor for class org.jsimpledb.Session
Constructor for SessionMode.KEY_VALUE.
Session(Database) - Constructor for class org.jsimpledb.Session
Constructor for SessionMode.CORE_API.
Session(JSimpleDB) - Constructor for class org.jsimpledb.Session
Constructor for SessionMode.JSIMPLEDB.
Session.Action - Interface in org.jsimpledb
Session.HasTransactionOptions - Interface in org.jsimpledb
Interface implemented by Session.TransactionalAction's that want to provide custom transaction options.
Session.RetryableAction - Interface in org.jsimpledb
Tagging interface indicating a Session.TransactionalAction that should be retried if a RetryTransactionException is thrown.
Session.TransactionalAction - Interface in org.jsimpledb
Tagging interface indicating an Session.Action that requires there to be an open transaction.
SessionMode - Enum in org.jsimpledb
Session modes.
set(long) - Method in class org.jsimpledb.Counter
Set this counter's value.
setAllowNewSchema(boolean) - Method in class org.jsimpledb.Session
 
setCurrent(JTransaction) - Static method in class org.jsimpledb.JTransaction
Set the JTransaction associated with the current thread.
setDatabase(Database) - Method in class org.jsimpledb.JSimpleDBFactory
Configure the underlying Database for this instance.
setDatabaseDescription(String) - Method in class org.jsimpledb.Session
 
SetFieldAdd<T,E> - Class in org.jsimpledb.change
Notification object that gets passed to @OnChange-annotated methods when an element is added to a set field.
SetFieldAdd(T, int, String, E) - Constructor for class org.jsimpledb.change.SetFieldAdd
Constructor.
SetFieldChange<T> - Class in org.jsimpledb.change
Notification object that gets passed to @OnChange-annotated methods when a set field changes.
SetFieldChange(T, int, String) - Constructor for class org.jsimpledb.change.SetFieldChange
Constructor.
SetFieldClear<T> - Class in org.jsimpledb.change
Notification object that gets passed to @OnChange-annotated methods when a set field is cleared.
SetFieldClear(T, int, String) - Constructor for class org.jsimpledb.change.SetFieldClear
Constructor.
SetFieldRemove<T,E> - Class in org.jsimpledb.change
Notification object that gets passed to @OnChange-annotated methods when an element is removed from a set field.
SetFieldRemove(T, int, String, E) - Constructor for class org.jsimpledb.change.SetFieldRemove
Constructor.
setInitialRetryDelay(int) - Method in class org.jsimpledb.Session
 
setMaximumRetryDelay(int) - Method in class org.jsimpledb.Session
 
setMaxRetries(int) - Method in class org.jsimpledb.Session
 
setMode(SessionMode) - Method in class org.jsimpledb.Session
Change this instance's SessionMode.
setModelClasses(Iterable<? extends Class<?>>) - Method in class org.jsimpledb.JSimpleDBFactory
Configure the Java model classes.
setModelClasses(Class<?>...) - Method in class org.jsimpledb.JSimpleDBFactory
Configure the Java model classes.
setReadOnly(boolean) - Method in class org.jsimpledb.Session
 
setRollbackOnly() - Method in class org.jsimpledb.Session
Mark the current transaction to be rolled back.
setSchemaModel(SchemaModel) - Method in class org.jsimpledb.Session
 
setSchemaVersion(int) - Method in class org.jsimpledb.JSimpleDBFactory
Configure the schema version number associated with the configured Java model classes.
setSchemaVersion(int) - Method in class org.jsimpledb.Session
 
setStorageIdGenerator(StorageIdGenerator) - Method in class org.jsimpledb.JSimpleDBFactory
Configure the StorageIdGenerator for auto-generating storage ID's when not explicitly specified in @JSimpleClass, @JField, etc., annotations.
setSuppressNotifications(boolean) - Method in class org.jsimpledb.CopyState
Configure whether to suppress @OnCreate and @OnChange notifications in the destination transaction.
setValidationMode(ValidationMode) - Method in class org.jsimpledb.Session
 
setValidatorFactory(ValidatorFactory) - Method in class org.jsimpledb.JSimpleDB
Configure a custom ValidatorFactory used to create Validators for validation within transactions.
setValidatorFactory(ValidatorFactory) - Method in class org.jsimpledb.JSimpleDBFactory
Configure a custom ValidatorFactory used to create Validators for validation within transactions.
setValue(JObject, Object) - Method in class org.jsimpledb.JSimpleField
Set the Java value of this field in the given object.
SimpleFieldChange<T,V> - Class in org.jsimpledb.change
Notification object that gets passed to @OnChange-annotated methods when a simple field changes.
SimpleFieldChange(T, int, String, V, V) - Constructor for class org.jsimpledb.change.SimpleFieldChange
Constructor.
SnapshotJTransaction - Class in org.jsimpledb
A "snapshot" JTransaction that persists indefinitely.
StorageIdGenerator - Interface in org.jsimpledb
Used to auto-generate storage ID's for Java model classes, fields, and composite indexes when not specified explicitly in the corresponding @JSimpleClass, @JField, etc., annotations.

T

toString() - Method in class org.jsimpledb.change.ListFieldAdd
 
toString() - Method in class org.jsimpledb.change.ListFieldClear
 
toString() - Method in class org.jsimpledb.change.ListFieldRemove
 
toString() - Method in class org.jsimpledb.change.ListFieldReplace
 
toString() - Method in class org.jsimpledb.change.MapFieldAdd
 
toString() - Method in class org.jsimpledb.change.MapFieldClear
 
toString() - Method in class org.jsimpledb.change.MapFieldRemove
 
toString() - Method in class org.jsimpledb.change.MapFieldReplace
 
toString() - Method in class org.jsimpledb.change.ObjectCreate
 
toString() - Method in class org.jsimpledb.change.ObjectDelete
 
toString() - Method in class org.jsimpledb.change.SetFieldAdd
 
toString() - Method in class org.jsimpledb.change.SetFieldClear
 
toString() - Method in class org.jsimpledb.change.SetFieldRemove
 
toString() - Method in class org.jsimpledb.change.SimpleFieldChange
 
toString() - Method in class org.jsimpledb.EnumConverter
 
toString() - Method in class org.jsimpledb.JSchemaObject
 
toString() - Method in class org.jsimpledb.ReferencePath
Get the String form of the path associated with this instance.

U

UniquenessConstraints - Interface in org.jsimpledb
JSR 303 validation group for JSimpleDB uniqueness constraints.
UntypedJObject - Class in org.jsimpledb
Represents a JObject for which no Java model type is defined in the current schema.
UntypedJObject() - Constructor for class org.jsimpledb.UntypedJObject
 
updateSchemaVersion(JObject) - Method in class org.jsimpledb.JTransaction
Update the schema version of the specified object, if necessary, so that its version matches the schema version associated with this instance's JSimpleDB.
upgrade() - Method in interface org.jsimpledb.JObject
Update the schema version of this instance, if necessary, so that it matches the schema version of its associated transaction.
Util - Class in org.jsimpledb
Various utility routines.

V

validate() - Method in class org.jsimpledb.JTransaction
Perform validation checks on all objects currently in the validation queue.
ValidationException - Exception in org.jsimpledb
Thrown when JTransaction.validate() (or JTransaction.commit()) fails due to one or more validation errors.
ValidationException(JObject, Set<ConstraintViolation<JObject>>, String) - Constructor for exception org.jsimpledb.ValidationException
Constructor.
ValidationException(JObject, String) - Constructor for exception org.jsimpledb.ValidationException
Convenience constructor for use when JSR 303 validation is not involved.
ValidationException(JObject, String, Throwable) - Constructor for exception org.jsimpledb.ValidationException
Convenience constructor for use when JSR 303 validation is not involved.
ValidationMode - Enum in org.jsimpledb
Configures whether and how objects are enqueued for validation in a JTransaction.
valueOf(String) - Static method in enum org.jsimpledb.SessionMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.jsimpledb.ValidationMode
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.jsimpledb.SessionMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.jsimpledb.ValidationMode
Returns an array containing the constants of this enum type, in the order they are declared.
Version - Class in org.jsimpledb
Contains JSimpleDB library version information.
visit(ChangeSwitch<R>) - Method in class org.jsimpledb.change.Change
Apply visitor pattern.
visit(ChangeSwitch<R>) - Method in class org.jsimpledb.change.ListFieldAdd
 
visit(ChangeSwitch<R>) - Method in class org.jsimpledb.change.ListFieldClear
 
visit(ChangeSwitch<R>) - Method in class org.jsimpledb.change.ListFieldRemove
 
visit(ChangeSwitch<R>) - Method in class org.jsimpledb.change.ListFieldReplace
 
visit(ChangeSwitch<R>) - Method in class org.jsimpledb.change.MapFieldAdd
 
visit(ChangeSwitch<R>) - Method in class org.jsimpledb.change.MapFieldClear
 
visit(ChangeSwitch<R>) - Method in class org.jsimpledb.change.MapFieldRemove
 
visit(ChangeSwitch<R>) - Method in class org.jsimpledb.change.MapFieldReplace
 
visit(ChangeSwitch<R>) - Method in class org.jsimpledb.change.ObjectCreate
 
visit(ChangeSwitch<R>) - Method in class org.jsimpledb.change.ObjectDelete
 
visit(ChangeSwitch<R>) - Method in class org.jsimpledb.change.SetFieldAdd
 
visit(ChangeSwitch<R>) - Method in class org.jsimpledb.change.SetFieldClear
 
visit(ChangeSwitch<R>) - Method in class org.jsimpledb.change.SetFieldRemove
 
visit(ChangeSwitch<R>) - Method in class org.jsimpledb.change.SimpleFieldChange
 
visit(JFieldSwitch<R>) - Method in class org.jsimpledb.JCounterField
 
visit(JFieldSwitch<R>) - Method in class org.jsimpledb.JEnumField
 
visit(JFieldSwitch<R>) - Method in class org.jsimpledb.JField
Apply visitor pattern.
visit(JFieldSwitch<R>) - Method in class org.jsimpledb.JListField
 
visit(JFieldSwitch<R>) - Method in class org.jsimpledb.JMapField
 
visit(JFieldSwitch<R>) - Method in class org.jsimpledb.JReferenceField
 
visit(JFieldSwitch<R>) - Method in class org.jsimpledb.JSetField
 
visit(JFieldSwitch<R>) - Method in class org.jsimpledb.JSimpleField
 

W

writeSimpleField(JObject, int, Object, boolean) - Method in class org.jsimpledb.JTransaction
Write a simple field.
A C D E F G H I J L M N O P Q R S T U V W 
Skip navigation links

Copyright © 2017. All rights reserved.