Allows overriding the collection name being utilized for the datastore.
Allows overriding the collection name being utilized for the datastore.
Defaults to return the same value passed in or the simple class name if name is null.
Executes the supplied function within a local session.
Executes the supplied function within a local session. If a session already exists it will be utilized or a new one will be created and terminated upon completion of the session block.
the function to execute within the session
the result from the function
Called during deserialization from the datastore to support conversion from one type (what is persisted in the datastore) to another type (what is represented in the class structure).
Called during deserialization from the datastore to support conversion from one type (what is persisted in the datastore) to another type (what is represented in the class structure). This can be useful for refactors of the class structure without having to immediately update the datastore.
the name of the field for this value being converted
the value found in the datastore
the expected result type
the other values for the other fields for this conversion
value converted to resultType
Called by DatastoreSession to create an instance of a DatastoreCollection.
Called by DatastoreSession to create an instance of a DatastoreCollection.
By default this method simply invokes: creator(name)
the type of collection to be created
the name of this collection
the current session the collection is to be created with
the default creator function
DatastoreCollection[T]
a new session for use with this datastore
Indexes that need to be defined for this Datastore.
Indexes that need to be defined for this Datastore.
Creates an alias for all classes that are subclasses of clazz to map to the clazz.
Creates an alias for all classes that are subclasses of clazz to map to the clazz.getSimpleName.
the existing session for this thread or null if one does not exist.