public class UserMemoryStash<T extends IUser> extends LocalMemoryStash<T>
columns, itemByPrimaryKey, items, keyFields, keyNameToKeyToValue, keyNameToUniqueKeyToValue, uniqueFields
Constructor and Description |
---|
UserMemoryStash() |
Modifier and Type | Method and Description |
---|---|
boolean |
isPredefinedUser(T user) |
void |
loadAll()
Load all items from the datastore into the stash.
|
void |
loadForId(Long id)
Load or reload the item with the given id from the datastore into the stash
|
boolean |
loadItem(T item)
Re-load the given object from the datastore into the stash
|
void |
loadPredefinedUsers()
Users are defined one of two ways:
- dynamically via the application, and stored either in the production database or the production app-date folder
- as a json file in target-path/users folder.
|
void |
save(T obj)
Save the object to the stash and the underlying data store
|
cloneInto, countForKey, detach, filterByKey, filterChain, filterChain, forId, forUniqueKey, getItems, getKeyFields, getUniqueFields, hardDelete, init, listForKey, onPreRead, originalForId, preRegisterItem, registerItem, registerKeys, reloadIfNewer, reset, sync, syncForSave
getBucket, getController, getPersister, setKeyFields, setUniqueFields
public UserMemoryStash()
public void loadForId(Long id)
Stash
loadForId
in class LocalMemoryStash<T extends IUser>
public void save(T obj)
Stash
save
in class LocalMemoryStash<T extends IUser>
public boolean isPredefinedUser(T user)
public void loadAll()
Stash
loadAll
in class LocalMemoryStash<T extends IUser>
public boolean loadItem(T item)
Stash
loadItem
in class LocalMemoryStash<T extends IUser>
public void loadPredefinedUsers()
Copyright © 2016. All rights reserved.