Interface DatabaseCache<T extends DatabaseObject>

All Known Implementing Classes:
DatabaseLoader, TemporaryCache

public interface DatabaseCache<T extends DatabaseObject>
  • Method Summary

    Modifier and Type
    Method
    Description
    get(int pkey)
     
    The type of object this cache holds.
    boolean
    The default LinkBack setting
    void
    loads the cache from the database
    void
    clears the cache and reloads it from the database
  • Method Details

    • getObjectType

      Class<T> getObjectType()
      The type of object this cache holds. Caches should only hold 1 type of DatabaseObject
    • isLinkBackOn

      boolean isLinkBackOn()
      The default LinkBack setting
    • load

      void load(Statement stmt)
      loads the cache from the database
    • reset

      void reset(Statement stmt)
      clears the cache and reloads it from the database
    • get

      T get(int pkey)
      Returns:
      the object from the cache with the corresponding pkey