Package com.spun.util.database
Class DatabaseLoader<T extends DatabaseObject>
java.lang.Object
com.spun.util.database.DatabaseLoader<T>
- All Implemented Interfaces:
DatabaseCache<T>
public final class DatabaseLoader<T extends DatabaseObject>
extends Object
implements DatabaseCache<T>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanget(int pkey) The type of object this cache holds.static <T extends DatabaseObject>
booleanisDatabaseLoader(DatabaseCache<T> cache) booleanThe default LinkBack settingstatic <T extends DatabaseObject>
booleanisNormalCache(DatabaseCache<T> cache) voidloads the cache from the databasevoidclears the cache and reloads it from the database
-
Field Details
-
INSTANCE
-
-
Method Details
-
isDatabaseLoader
-
isNormalCache
-
equals
-
getObjectType
Description copied from interface:DatabaseCacheThe type of object this cache holds. Caches should only hold 1 type of DatabaseObject- Specified by:
getObjectTypein interfaceDatabaseCache<T extends DatabaseObject>
-
isLinkBackOn
public boolean isLinkBackOn()Description copied from interface:DatabaseCacheThe default LinkBack setting- Specified by:
isLinkBackOnin interfaceDatabaseCache<T extends DatabaseObject>
-
load
Description copied from interface:DatabaseCacheloads the cache from the database- Specified by:
loadin interfaceDatabaseCache<T extends DatabaseObject>
-
reset
Description copied from interface:DatabaseCacheclears the cache and reloads it from the database- Specified by:
resetin interfaceDatabaseCache<T extends DatabaseObject>
-
get
- Specified by:
getin interfaceDatabaseCache<T extends DatabaseObject>- Returns:
- the object from the cache with the corresponding pkey
-