Package com.spun.util.database
Interface DatabaseCache<T extends DatabaseObject>
- All Known Implementing Classes:
DatabaseLoader,TemporaryCache
public interface DatabaseCache<T extends DatabaseObject>
-
Method Summary
Modifier and TypeMethodDescriptionget(int pkey) The type of object this cache holds.booleanThe default LinkBack settingvoidloads the cache from the databasevoidclears the cache and reloads it from the database
-
Method Details
-
getObjectType
The type of object this cache holds. Caches should only hold 1 type of DatabaseObject -
isLinkBackOn
boolean isLinkBackOn()The default LinkBack setting -
load
loads the cache from the database -
reset
clears the cache and reloads it from the database -
get
- Returns:
- the object from the cache with the corresponding pkey
-