Skip navigation links
A B C D E F G H I J O R S U V 

A

AbstractOperation - Class in io.jsondb.query.ddl
 
AbstractOperation() - Constructor for class io.jsondb.query.ddl.AbstractOperation
 
addCollectionFileChangeListener(CollectionFileChangeListener) - Method in class io.jsondb.events.EventListenerList
 
addCollectionFileChangeListener(CollectionFileChangeListener) - Method in interface io.jsondb.JsonDBOperations
adds a CollectionFileChangeListener to db.
addCollectionFileChangeListener(CollectionFileChangeListener) - Method in class io.jsondb.JsonDBTemplate
 
AddOperation - Class in io.jsondb.query.ddl
Represents a CollectionUpdate ADD operation type.
AddOperation(Object, boolean) - Constructor for class io.jsondb.query.ddl.AddOperation
 
appendToJsonFile(Collection<T>, Object) - Method in class io.jsondb.io.JsonWriter
A utility method that appends the provided object to the end of collection file in a atomic way
appendToJsonFile(Collection<T>, Collection<? extends T>) - Method in class io.jsondb.io.JsonWriter
A utility method that appends the provided collection of objects to the end of collection file in a atomic way

B

backup(String) - Method in interface io.jsondb.JsonDBOperations
This method backs up JSONDB collections to specified backup path
backup(String) - Method in class io.jsondb.JsonDBTemplate
 
builder(JsonDBConfig) - Static method in class io.jsondb.CollectionMetaData
A utility builder method to scan through the specified package and find all classes/POJOs that are annotated with the @Document annotation.

C

changeEncryption(ICipher) - Method in interface io.jsondb.JsonDBOperations
A method that allows changing the encryption algorithm and or encryption key used.
changeEncryption(ICipher) - Method in class io.jsondb.JsonDBTemplate
 
close() - Method in class io.jsondb.io.JsonReader
 
collectionExists(Class<T>) - Method in interface io.jsondb.JsonDBOperations
Check to see if a collection with a name indicated by the entity class exists.
collectionExists(String) - Method in interface io.jsondb.JsonDBOperations
Check to see if a collection with a given name exists.
collectionExists(Class<T>) - Method in class io.jsondb.JsonDBTemplate
 
collectionExists(String) - Method in class io.jsondb.JsonDBTemplate
 
collectionFileAdded(String) - Method in class io.jsondb.events.CollectionFileChangeAdapter
 
collectionFileAdded(String) - Method in interface io.jsondb.events.CollectionFileChangeListener
Invoked when a new file is detected which has a corresponding identified collection.
CollectionFileChangeAdapter - Class in io.jsondb.events
An abstract adapter class for receiving Collection File Change events.
CollectionFileChangeAdapter() - Constructor for class io.jsondb.events.CollectionFileChangeAdapter
 
CollectionFileChangeListener - Interface in io.jsondb.events
A listener which fires when a change to one or more files which have corresponding identified collections is detected.
collectionFileDeleted(String) - Method in class io.jsondb.events.CollectionFileChangeAdapter
 
collectionFileDeleted(String) - Method in interface io.jsondb.events.CollectionFileChangeListener
Invoked when a file which has a corresponding identified collection is deleted Deleting files in the background is a dangerous operation after such a operation if the database is reloaded that data will be permanently lost.
collectionFileModified(String) - Method in class io.jsondb.events.CollectionFileChangeAdapter
 
collectionFileModified(String) - Method in interface io.jsondb.events.CollectionFileChangeListener
Invoked when a file which has a corresponding identified collection is modified by program other than this one.
CollectionMetaData - Class in io.jsondb
 
CollectionMetaData(String, Class<?>, String, Comparator<String>) - Constructor for class io.jsondb.CollectionMetaData
 
CollectionSchemaUpdate - Class in io.jsondb.query.ddl
 
CollectionSchemaUpdate() - Constructor for class io.jsondb.query.ddl.CollectionSchemaUpdate
 
CollectionSchemaUpdate.Type - Enum in io.jsondb.query.ddl
 
compare(String, String) - Method in class io.jsondb.DefaultSchemaVersionComparator
compare the expected version with the actual version.
createCollection(Class<T>) - Method in interface io.jsondb.JsonDBOperations
Create an uncapped collection with a name based on the provided entity class.
createCollection(String) - Method in interface io.jsondb.JsonDBOperations
Create an uncapped collection with the provided name.
createCollection(Class<T>) - Method in class io.jsondb.JsonDBTemplate
 
createCollection(String) - Method in class io.jsondb.JsonDBTemplate
 
CryptoUtil - Class in io.jsondb.crypto
 
CryptoUtil() - Constructor for class io.jsondb.crypto.CryptoUtil
 

D

decrypt(String) - Method in class io.jsondb.crypto.Default1Cipher
A method to decrypt the provided cipher text.
decrypt(String) - Method in class io.jsondb.crypto.DefaultAESCBCCipher
Deprecated.
A method to decrypt the provided cipher text.
decrypt(String) - Method in interface io.jsondb.crypto.ICipher
 
decryptFields(Object, CollectionMetaData, ICipher) - Static method in class io.jsondb.crypto.CryptoUtil
A utility method to decrypt the value of field marked by the @Secret annotation using its setter/mutator method.
deepCopy(Object) - Static method in class io.jsondb.Util
A utility method that creates a deep clone of the specified object.
Default1Cipher - Class in io.jsondb.crypto
A default AES (GCM Mode) Cipher.
Default1Cipher(String) - Constructor for class io.jsondb.crypto.Default1Cipher
Creates a new default cipher using 'UTF-8' encoding, with a base64-encoded key.
Default1Cipher(byte[]) - Constructor for class io.jsondb.crypto.Default1Cipher
Creates a new default cipher using 'UTF-8' encoding and key.
Default1Cipher(String, Charset) - Constructor for class io.jsondb.crypto.Default1Cipher
Creates a new default cipher with the specified charset encoding, with a base64-encoded key.
Default1Cipher(byte[], Charset) - Constructor for class io.jsondb.crypto.Default1Cipher
Creates a new default cipher with the specified charset encoding and key.
DefaultAESCBCCipher - Class in io.jsondb.crypto
Deprecated.
This cipher is insufficiently secure for many purposes. Please use Default1Cipher instead.
DefaultAESCBCCipher(String) - Constructor for class io.jsondb.crypto.DefaultAESCBCCipher
Deprecated.
This constructor assumes data to be of type 'UTF-8' A default AES (CBC Mode) Cipher.
DefaultAESCBCCipher(String, String) - Constructor for class io.jsondb.crypto.DefaultAESCBCCipher
Deprecated.
A default AES (CBC Mode) Cipher.
DefaultAESCBCCipher(byte[], String) - Constructor for class io.jsondb.crypto.DefaultAESCBCCipher
Deprecated.
A default AES (CBC Mode) Cipher.
DefaultSchemaVersionComparator - Class in io.jsondb
A default schema version comparator that expects the version to be in x.y.z form where each of the digits is strictly a integer.
DefaultSchemaVersionComparator() - Constructor for class io.jsondb.DefaultSchemaVersionComparator
 
delete(File) - Static method in class io.jsondb.Util
Utility to delete directory recursively
DeleteOperation - Class in io.jsondb.query.ddl
Represents a CollectionUpdate DELETE operation type.
DeleteOperation() - Constructor for class io.jsondb.query.ddl.DeleteOperation
 
determineCollectionName(Class<?>) - Static method in class io.jsondb.Util
A utility method to determine the collection name for a given entity class.
determineEntityCollectionName(T) - Static method in class io.jsondb.Util
 
Document - Annotation Type in io.jsondb.annotation
 
dropCollection(Class<T>) - Method in interface io.jsondb.JsonDBOperations
Drop the collection with the name indicated by the entity class.
dropCollection(String) - Method in interface io.jsondb.JsonDBOperations
Drop the collection with the given name.
dropCollection(Class<T>) - Method in class io.jsondb.JsonDBTemplate
 
dropCollection(String) - Method in class io.jsondb.JsonDBTemplate
 

E

encrypt(String) - Method in class io.jsondb.crypto.Default1Cipher
This method is used to encrypt(Symmetric) plainText coming in input using AES algorithm
encrypt(String) - Method in class io.jsondb.crypto.DefaultAESCBCCipher
Deprecated.
This method is used to encrypt(Symmetric) plainText coming in input using AES algorithm
encrypt(String) - Method in interface io.jsondb.crypto.ICipher
 
encryptFields(Object, CollectionMetaData, ICipher) - Static method in class io.jsondb.crypto.CryptoUtil
A utility method to encrypt the value of field marked by the @Secret annotation using its setter/mutator method.
ensureNotRestricted(Object) - Static method in class io.jsondb.Util
 
EventListenerList - Class in io.jsondb.events
A class that holds a list of CollectionFileChangeListeners.
EventListenerList(JsonDBConfig, Map<String, CollectionMetaData>) - Constructor for class io.jsondb.events.EventListenerList
 

F

find(String, Class<T>) - Method in interface io.jsondb.JsonDBOperations
Map the results of an ad-hoc query on the collection for the entity class to a List of the specified type.
find(String, String) - Method in interface io.jsondb.JsonDBOperations
Map the results of an ad-hoc query on the specified collection to a List of the specified type.
find(String, Class<T>, Comparator<? super T>) - Method in interface io.jsondb.JsonDBOperations
Map the results of an ad-hoc query on the collection for the entity class to a List of the specified type.
find(String, String, Comparator<? super T>) - Method in interface io.jsondb.JsonDBOperations
Map the results of an ad-hoc query on the specified collection to a List of the specified type.
find(String, Class<T>, Comparator<? super T>, String) - Method in interface io.jsondb.JsonDBOperations
Map the results of an ad-hoc query on the specified collection to a List of the specified type.
find(String, String, Comparator<? super T>, String) - Method in interface io.jsondb.JsonDBOperations
Map the results of an ad-hoc query on the specified collection to a List of the specified type.
find(String, Class<T>) - Method in class io.jsondb.JsonDBTemplate
 
find(String, String) - Method in class io.jsondb.JsonDBTemplate
 
find(String, Class<T>, Comparator<? super T>) - Method in class io.jsondb.JsonDBTemplate
 
find(String, String, Comparator<? super T>) - Method in class io.jsondb.JsonDBTemplate
 
find(String, Class<T>, Comparator<? super T>, String) - Method in class io.jsondb.JsonDBTemplate
 
find(String, String, Comparator<? super T>, String) - Method in class io.jsondb.JsonDBTemplate
 
findAll(Class<T>) - Method in interface io.jsondb.JsonDBOperations
Query for a list of objects of type T from the specified collection.
findAll(String) - Method in interface io.jsondb.JsonDBOperations
Query for a list of objects of type T from the specified collection.
findAll(Class<T>, Comparator<? super T>) - Method in interface io.jsondb.JsonDBOperations
Query for a list of objects of type T from the specified collection.
findAll(String, Comparator<? super T>) - Method in interface io.jsondb.JsonDBOperations
Query for a list of objects of type T from the specified collection.
findAll(Class<T>, Comparator<? super T>, String) - Method in interface io.jsondb.JsonDBOperations
Query for a list of objects of type T from the specified collection.
findAll(String, Comparator<? super T>, String) - Method in interface io.jsondb.JsonDBOperations
Query for a list of objects of type T from the specified collection.
findAll(Class<T>) - Method in class io.jsondb.JsonDBTemplate
 
findAll(String) - Method in class io.jsondb.JsonDBTemplate
 
findAll(Class<T>, Comparator<? super T>) - Method in class io.jsondb.JsonDBTemplate
 
findAll(String, Comparator<? super T>) - Method in class io.jsondb.JsonDBTemplate
 
findAll(Class<T>, Comparator<? super T>, String) - Method in class io.jsondb.JsonDBTemplate
 
findAll(String, Comparator<? super T>, String) - Method in class io.jsondb.JsonDBTemplate
 
findAllAndModify(String, Update, Class<T>) - Method in interface io.jsondb.JsonDBOperations
 
findAllAndModify(String, Update, String) - Method in interface io.jsondb.JsonDBOperations
 
findAllAndModify(String, Update, Class<T>) - Method in class io.jsondb.JsonDBTemplate
 
findAllAndModify(String, Update, String) - Method in class io.jsondb.JsonDBTemplate
 
findAllAndRemove(String, Class<T>) - Method in interface io.jsondb.JsonDBOperations
Returns and removes all documents matching the given query form the collection used to store the entityClass.
findAllAndRemove(String, String) - Method in interface io.jsondb.JsonDBOperations
Returns and removes all documents matching the given query form the collection used to store the entityClass.
findAllAndRemove(String, Class<T>) - Method in class io.jsondb.JsonDBTemplate
 
findAllAndRemove(String, String) - Method in class io.jsondb.JsonDBTemplate
 
findAndModify(String, Update, Class<T>) - Method in interface io.jsondb.JsonDBOperations
Triggers findAndModify to apply provided Update on the first document matching Criteria of given Query.
findAndModify(String, Update, String) - Method in interface io.jsondb.JsonDBOperations
Triggers findAndModify to apply provided Update on the first document matching Criteria of given Query.
findAndModify(String, Update, Class<T>) - Method in class io.jsondb.JsonDBTemplate
 
findAndModify(String, Update, String) - Method in class io.jsondb.JsonDBTemplate
 
findAndRemove(String, Class<T>) - Method in interface io.jsondb.JsonDBOperations
Map the results of the jxQuery on the collection for the entity type to a single instance of an object of the specified type.
findAndRemove(String, String) - Method in interface io.jsondb.JsonDBOperations
Map the results of the jxQuery on the collection for the entity type to a single instance of an object of the specified type.
findAndRemove(String, Class<T>) - Method in class io.jsondb.JsonDBTemplate
 
findAndRemove(String, String) - Method in class io.jsondb.JsonDBTemplate
 
findById(Object, Class<T>) - Method in interface io.jsondb.JsonDBOperations
Returns a document with the given id mapped onto the given class.
findById(Object, String) - Method in interface io.jsondb.JsonDBOperations
Returns the document with the given id from the given collection mapped onto the given target class.
findById(Object, Class<T>) - Method in class io.jsondb.JsonDBTemplate
 
findById(Object, String) - Method in class io.jsondb.JsonDBTemplate
 
findOne(String, Class<T>) - Method in interface io.jsondb.JsonDBOperations
 
findOne(String, String) - Method in interface io.jsondb.JsonDBOperations
 
findOne(String, Class<T>) - Method in class io.jsondb.JsonDBTemplate
 
findOne(String, String) - Method in class io.jsondb.JsonDBTemplate
 

G

generate128BitKey(String, String) - Static method in class io.jsondb.crypto.CryptoUtil
Utility method to help generate a strong 128 bit Key to be used for the DefaultAESCBCCipher.
getActualSchemaVersion() - Method in class io.jsondb.CollectionMetaData
 
getAddOperations() - Method in class io.jsondb.query.ddl.CollectionSchemaUpdate
Returns a Map of ADD operations which have a non-null default value specified.
getBaseScanPackage() - Method in class io.jsondb.JsonDBConfig
 
getCharset() - Method in class io.jsondb.JsonDBConfig
 
getCipher() - Method in class io.jsondb.JsonDBConfig
 
getClazz() - Method in class io.jsondb.CollectionMetaData
 
getCollection(Class<T>) - Method in interface io.jsondb.JsonDBOperations
Get a collection by name, creating it if it doesn't exist.
getCollection(Class<T>) - Method in class io.jsondb.JsonDBTemplate
 
getCollectionLock() - Method in class io.jsondb.CollectionMetaData
 
getCollectionName() - Method in class io.jsondb.CollectionMetaData
 
getCollectionName(Class<?>) - Method in interface io.jsondb.JsonDBOperations
The collection name used for the specified class by this template.
getCollectionName(Class<?>) - Method in class io.jsondb.JsonDBTemplate
 
getCollectionNames() - Method in interface io.jsondb.JsonDBOperations
A set of collection names.
getCollectionNames() - Method in class io.jsondb.JsonDBTemplate
 
getDbFilesLocation() - Method in class io.jsondb.JsonDBConfig
 
getDbFilesLocationString() - Method in class io.jsondb.JsonDBConfig
 
getDbFilesPath() - Method in class io.jsondb.JsonDBConfig
 
getDefaultValue() - Method in class io.jsondb.query.ddl.AddOperation
 
getDeleteOperations() - Method in class io.jsondb.query.ddl.CollectionSchemaUpdate
Returns a Map of DELETE operations.
getGetterMethodForFieldName(String) - Method in class io.jsondb.CollectionMetaData
 
getIdAnnotatedFieldGetterMethod() - Method in class io.jsondb.CollectionMetaData
 
getIdAnnotatedFieldName() - Method in class io.jsondb.CollectionMetaData
 
getIdAnnotatedFieldSetterMethod() - Method in class io.jsondb.CollectionMetaData
 
getIdForEntity(Object, Method) - Static method in class io.jsondb.Util
A utility method to extract the value of field marked by the @Id annotation using its getter/accessor method.
getNewName() - Method in class io.jsondb.query.ddl.RenameOperation
 
getObjectMapper() - Method in class io.jsondb.JsonDBConfig
 
getOperationType() - Method in class io.jsondb.query.ddl.AbstractOperation
 
getOperationType() - Method in interface io.jsondb.query.ddl.IOperation
 
getRenameOperations() - Method in class io.jsondb.query.ddl.CollectionSchemaUpdate
Returns a Map of RENAME operations.
getSchemaComparator() - Method in class io.jsondb.JsonDBConfig
 
getSchemaVersion() - Method in class io.jsondb.CollectionMetaData
 
getSchemaVersion() - Method in class io.jsondb.SchemaVersion
 
getSecretAnnotatedFieldNames() - Method in class io.jsondb.CollectionMetaData
 
getSetterMethodForFieldName(String) - Method in class io.jsondb.CollectionMetaData
 
getSliceIndexes(String, int) - Static method in class io.jsondb.Util
Utility method to compute the indexes to select based on slice string
getUpdateData() - Method in class io.jsondb.query.ddl.CollectionSchemaUpdate
 
getUpdateData() - Method in class io.jsondb.query.Update
 

H

hasCollectionFileChangeListener() - Method in class io.jsondb.events.EventListenerList
 
hasCollectionFileChangeListener() - Method in interface io.jsondb.JsonDBOperations
a method to check if there are any registered CollectionFileChangeListener
hasCollectionFileChangeListener() - Method in class io.jsondb.JsonDBTemplate
 
hasSecret() - Method in class io.jsondb.CollectionMetaData
 

I

ICipher - Interface in io.jsondb.crypto
 
Id - Annotation Type in io.jsondb.annotation
 
insert(Object) - Method in interface io.jsondb.JsonDBOperations
Insert the object into correct collection.
insert(Object, String) - Method in interface io.jsondb.JsonDBOperations
Insert the object into the specified collection.
insert(Collection<? extends T>, Class<T>) - Method in interface io.jsondb.JsonDBOperations
Insert a Collection of objects into a collection in a single batch write to the database.
insert(Collection<? extends T>, String) - Method in interface io.jsondb.JsonDBOperations
Insert a Collection of objects into a collection in a single batch write to the database.
insert(Object) - Method in class io.jsondb.JsonDBTemplate
 
insert(Object, String) - Method in class io.jsondb.JsonDBTemplate
 
insert(Collection<? extends T>, Class<T>) - Method in class io.jsondb.JsonDBTemplate
 
insert(Collection<? extends T>, String) - Method in class io.jsondb.JsonDBTemplate
 
InvalidJsonDbApiUsageException - Exception in io.jsondb
 
InvalidJsonDbApiUsageException(String) - Constructor for exception io.jsondb.InvalidJsonDbApiUsageException
 
InvalidJsonDbApiUsageException(String, Throwable) - Constructor for exception io.jsondb.InvalidJsonDbApiUsageException
 
io.jsondb - package io.jsondb
 
io.jsondb.annotation - package io.jsondb.annotation
 
io.jsondb.crypto - package io.jsondb.crypto
 
io.jsondb.events - package io.jsondb.events
 
io.jsondb.io - package io.jsondb.io
 
io.jsondb.query - package io.jsondb.query
 
io.jsondb.query.ddl - package io.jsondb.query.ddl
 
IOperation - Interface in io.jsondb.query.ddl
 
isCollectionReadonly(Class<T>) - Method in interface io.jsondb.JsonDBOperations
is a collection readonly, A collection can be readonly if its schema version does not match the actualSchema version
isCollectionReadonly(String) - Method in interface io.jsondb.JsonDBOperations
 
isCollectionReadonly(Class<T>) - Method in class io.jsondb.JsonDBTemplate
 
isCollectionReadonly(String) - Method in class io.jsondb.JsonDBTemplate
 
isCompatibilityMode() - Method in class io.jsondb.JsonDBConfig
 
isReadOnly() - Method in class io.jsondb.CollectionMetaData
 
isSecret() - Method in class io.jsondb.query.ddl.AddOperation
 
isSecretField(String) - Method in class io.jsondb.CollectionMetaData
 
isSliceable(String) - Static method in class io.jsondb.Util
 

J

JsonDBConfig - Class in io.jsondb
A POJO that has settings for the functioning of DB.
JsonDBConfig(String, String, ICipher, boolean, Comparator<String>) - Constructor for class io.jsondb.JsonDBConfig
 
JsonDBException - Exception in io.jsondb
 
JsonDBException(String) - Constructor for exception io.jsondb.JsonDBException
 
JsonDBException(String, Throwable) - Constructor for exception io.jsondb.JsonDBException
 
JsonDBOperations - Interface in io.jsondb
Interface that defines the methods available in JsonDBTemplate
JsonDBTemplate - Class in io.jsondb
 
JsonDBTemplate(String, String) - Constructor for class io.jsondb.JsonDBTemplate
 
JsonDBTemplate(String, String, boolean, Comparator<String>) - Constructor for class io.jsondb.JsonDBTemplate
 
JsonDBTemplate(String, String, ICipher) - Constructor for class io.jsondb.JsonDBTemplate
 
JsonDBTemplate(String, String, ICipher, boolean, Comparator<String>) - Constructor for class io.jsondb.JsonDBTemplate
 
JsonFileLockException - Exception in io.jsondb.io
 
JsonFileLockException(String, Throwable) - Constructor for exception io.jsondb.io.JsonFileLockException
 
JsonReader - Class in io.jsondb.io
A special File Reader to read the .json DB files that ensures proper character encoding is used and the necessary File Locks are created.
JsonReader(JsonDBConfig, File) - Constructor for class io.jsondb.io.JsonReader
 
JsonWriter - Class in io.jsondb.io
A special File Writer to write to the .json DB files that ensures proper character encoding is used and the necessary File Locks are created.
JsonWriter(JsonDBConfig, CollectionMetaData, String, File) - Constructor for class io.jsondb.io.JsonWriter
 

O

operationType - Variable in class io.jsondb.query.ddl.AbstractOperation
 

R

readLine() - Method in class io.jsondb.io.JsonReader
A utility method that reads the next line and returns it.
reloadCollection(String) - Method in interface io.jsondb.JsonDBOperations
Reloads a particular collection from dblocation directory
reloadCollection(String) - Method in class io.jsondb.JsonDBTemplate
 
reLoadDB() - Method in interface io.jsondb.JsonDBOperations
Re-load the collections from dblocation folder.
reLoadDB() - Method in class io.jsondb.JsonDBTemplate
 
remove(Object, Class<T>) - Method in interface io.jsondb.JsonDBOperations
Remove the given object from the collection by id.
remove(Object, String) - Method in interface io.jsondb.JsonDBOperations
Remove the given object from the collection by id.
remove(Collection<? extends T>, Class<T>) - Method in interface io.jsondb.JsonDBOperations
Remove a Collection of objects from a collection in a single batch write to the database.
remove(Collection<? extends T>, String) - Method in interface io.jsondb.JsonDBOperations
Remove a Collection of objects from a collection in a single batch write to the database.
remove(Object, Class<T>) - Method in class io.jsondb.JsonDBTemplate
 
remove(Object, String) - Method in class io.jsondb.JsonDBTemplate
 
remove(Collection<? extends T>, Class<T>) - Method in class io.jsondb.JsonDBTemplate
 
remove(Collection<? extends T>, String) - Method in class io.jsondb.JsonDBTemplate
 
removeCollectionFileChangeListener(CollectionFileChangeListener) - Method in class io.jsondb.events.EventListenerList
 
removeCollectionFileChangeListener(CollectionFileChangeListener) - Method in interface io.jsondb.JsonDBOperations
removes a previously added CollectionFileChangeListener
removeCollectionFileChangeListener(CollectionFileChangeListener) - Method in class io.jsondb.JsonDBTemplate
 
removeFromJsonFile(Map<Object, T>, Object) - Method in class io.jsondb.io.JsonWriter
A utility method that substracts the provided Ids and writes rest of the collection to file in a atomic way
removeFromJsonFile(Map<Object, T>, Set<Object>) - Method in class io.jsondb.io.JsonWriter
A utility method that subtracts the provided Ids and writes rest of the collection to file in a atomic way
renameKeyInJsonFile(Collection<T>, boolean, String, String) - Method in class io.jsondb.io.JsonWriter
A utility method renames a particular key for the entire contents of .json in a atomic way
RenameOperation - Class in io.jsondb.query.ddl
Represents a CollectionUpdate RENAME operation type.
RenameOperation(String) - Constructor for class io.jsondb.query.ddl.RenameOperation
 
restore(String, boolean) - Method in interface io.jsondb.JsonDBOperations
This method restores JSONDB collections from specified restore path.
restore(String, boolean) - Method in class io.jsondb.JsonDBTemplate
 
reWriteJsonFile(Collection<T>, boolean) - Method in class io.jsondb.io.JsonWriter
A utility method that completely replaces the contents of .json with the provided collection in a atomic way

S

save(Object, Class<T>) - Method in interface io.jsondb.JsonDBOperations
Save the object to the collection for the entity type of the object to save.
save(Object, String) - Method in interface io.jsondb.JsonDBOperations
Save the object to the collection for the entity type of the object to save.
save(Object, Class<T>) - Method in class io.jsondb.JsonDBTemplate
 
save(Object, String) - Method in class io.jsondb.JsonDBTemplate
 
SchemaVersion - Class in io.jsondb
 
SchemaVersion() - Constructor for class io.jsondb.SchemaVersion
 
SchemaVersion(String) - Constructor for class io.jsondb.SchemaVersion
 
Secret - Annotation Type in io.jsondb.annotation
 
set(String, IOperation) - Method in class io.jsondb.query.ddl.CollectionSchemaUpdate
A method to set a new Operation for a key.
set(String, Object) - Method in class io.jsondb.query.Update
 
setActualSchemaVersion(String) - Method in class io.jsondb.CollectionMetaData
 
setBaseScanPackage(String) - Method in class io.jsondb.JsonDBConfig
 
setCharset(Charset) - Method in class io.jsondb.JsonDBConfig
 
setCipher(ICipher) - Method in class io.jsondb.JsonDBConfig
 
setCompatibilityMode(boolean) - Method in class io.jsondb.JsonDBConfig
 
setDbFilesLocationString(String) - Method in class io.jsondb.JsonDBConfig
 
setFieldValueForEntity(Object, Object, Method) - Static method in class io.jsondb.Util
 
setIdForEntity(Object, Method) - Static method in class io.jsondb.Util
A utility method to set the value of field marked by the @Id annotation using its setter/mutator method.
setObjectMapper(ObjectMapper) - Method in class io.jsondb.JsonDBConfig
 
setSchemaVersion(String) - Method in class io.jsondb.SchemaVersion
 
shutdown() - Method in class io.jsondb.events.EventListenerList
 
stampVersion(JsonDBConfig, File, String) - Static method in class io.jsondb.Util
Utility to stamp the version into a newly created .json File This method is expected to be invoked on a newly created .json file before it is usable.

U

update(String, IOperation) - Static method in class io.jsondb.query.ddl.CollectionSchemaUpdate
Static factory method to create an CollectionUpdate for the specified key
Update - Class in io.jsondb.query
 
Update() - Constructor for class io.jsondb.query.Update
 
update(String, Object) - Static method in class io.jsondb.query.Update
Static factory method to create an Update using the provided key
updateCollectionSchema(CollectionSchemaUpdate, Class<T>) - Method in interface io.jsondb.JsonDBOperations
 
updateCollectionSchema(CollectionSchemaUpdate, String) - Method in interface io.jsondb.JsonDBOperations
Update a collection as per the specified CollectionUpdate param.
updateCollectionSchema(CollectionSchemaUpdate, Class<T>) - Method in class io.jsondb.JsonDBTemplate
 
updateCollectionSchema(CollectionSchemaUpdate, String) - Method in class io.jsondb.JsonDBTemplate
 
updateInJsonFile(Map<Object, T>, Object, T) - Method in class io.jsondb.io.JsonWriter
A utility method that updates the provided collection of objects into the existing collection file in a atomic way
updateInJsonFile(Map<Object, T>, Map<Object, T>) - Method in class io.jsondb.io.JsonWriter
A utility method that updates the provided collection of objects into the existing collection file in a atomic way
upsert(Object) - Method in interface io.jsondb.JsonDBOperations
Performs an upsert.
upsert(Object, String) - Method in interface io.jsondb.JsonDBOperations
Performs an upsert.
upsert(Collection<? extends T>, Class<T>) - Method in interface io.jsondb.JsonDBOperations
Performs an upsert.
upsert(Collection<? extends T>, String) - Method in interface io.jsondb.JsonDBOperations
Performs an upsert.
upsert(Object) - Method in class io.jsondb.JsonDBTemplate
 
upsert(Object, String) - Method in class io.jsondb.JsonDBTemplate
 
upsert(Collection<? extends T>, Class<T>) - Method in class io.jsondb.JsonDBTemplate
 
upsert(Collection<? extends T>, String) - Method in class io.jsondb.JsonDBTemplate
 
Util - Class in io.jsondb
 
Util() - Constructor for class io.jsondb.Util
 

V

valueOf(String) - Static method in enum io.jsondb.query.ddl.CollectionSchemaUpdate.Type
Returns the enum constant of this type with the specified name.
values() - Static method in enum io.jsondb.query.ddl.CollectionSchemaUpdate.Type
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D E F G H I J O R S U V 
Skip navigation links