Package | Description |
---|---|
io.stallion.dataAccess | |
io.stallion.dataAccess.db | |
io.stallion.dataAccess.file | |
io.stallion.users |
Modifier and Type | Class and Description |
---|---|
class |
LocalMemoryStash<T extends Model>
The Stash sits between the ModelController and the Persister.
|
class |
NoStash<T extends Model>
The Stash sits between the ModelController and the Persister.
|
class |
PartialStash<T extends Model>
PartialStash loads the most recently updated 50,000 items in memory, and also
keeps in memory every item directly loaded by id.
|
class |
StashBase<T extends Model> |
Modifier and Type | Method and Description |
---|---|
Stash<T> |
StandardModelController.getStash() |
Stash<T> |
ReadOnlyWrapper.getStash() |
Stash<T> |
Persister.getStash()
Get the Stash associated with this persister
|
Stash<T> |
ModelController.getStash()
The instance of the Stash class.
|
Stash<T> |
BasePersister.getStash() |
Stash<T> |
Stash.setKeyFields(Set<String> keyFields) |
Stash<T> |
Stash.setUniqueFields(Set<String> uniqueFields) |
Modifier and Type | Method and Description |
---|---|
Class<? extends Stash> |
DataAccessRegistration.getStashClass()
The class to use for the data stash.
|
Modifier and Type | Method and Description |
---|---|
void |
Persister.init(DataAccessRegistration registration,
ModelController<T> controller,
Stash<T> stash)
Initialize the persister, called during DalRegistery.register
|
void |
BasePersister.init(DataAccessRegistration registration,
ModelController<T> controller,
Stash<T> stash) |
void |
StandardModelController.init(DataAccessRegistration registration,
Persister<T> persister,
Stash<T> stash) |
void |
ReadOnlyWrapper.init(DataAccessRegistration registration,
Persister<T> persister,
Stash<T> stash) |
void |
ModelController.init(DataAccessRegistration registration,
Persister<T> persister,
Stash<T> stash)
Initialize the controller, loading all the key fields, setting defaults,
initializing key variables, etc.
|
Persister<T> |
Persister.setStash(Stash<T> stash) |
BasePersister |
BasePersister.setStash(Stash<T> stash) |
Modifier and Type | Method and Description |
---|---|
ModelController |
DataAccessRegistry.registerDbModel(Class<? extends Model> model,
Class<? extends ModelController> controller,
Class<? extends Stash> stash) |
ModelController |
DataAccessRegistry.registerDbModel(Class<? extends Model> model,
Class<? extends ModelController> controller,
Class<? extends Stash> stash,
String bucket)
Registers the given model and controller with a database persister, getting the bucket name
from the @Table annotation on the model.
|
DataAccessRegistration |
DataAccessRegistration.setStashClass(Class<? extends Stash> stashClass) |
Modifier and Type | Method and Description |
---|---|
void |
DbPersister.init(DataAccessRegistration registration,
ModelController<T> controller,
Stash<T> stash) |
Modifier and Type | Method and Description |
---|---|
void |
FilePersisterBase.init(DataAccessRegistration registration,
ModelController<T> controller,
Stash<T> stash) |
Modifier and Type | Class and Description |
---|---|
class |
UserMemoryStash<T extends IUser> |
class |
UserPartialStash<T extends IUser> |
Copyright © 2016. All rights reserved.