com.spun.util.database.DatabaseCache Maven / Gradle / Ivy
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