All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.spun.util.database.DatabaseCache Maven / Gradle / Ivy

There is a newer version: 24.9.0
Show newest version
package com.spun.util.database;

import java.sql.Statement;

public interface DatabaseCache
{
  /**
   * The type of object this cache holds. Caches should only hold 1 type of
   * DatabaseObject
   **/
  public Class getObjectType();
  /**
   * The default LinkBack setting
   **/
  public boolean isLinkBackOn();
  /**
   * loads the cache from the database
   **/
  public void load(Statement stmt);
  /**
   * clears the cache and reloads it from the database
   **/
  public void reset(Statement stmt);
  /**
   * @return the object from the cache with the corresponding pkey
   **/
  public T get(int pkey);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy