Package org.apache.torque.manager
Interface CacheListener<T extends Persistent>
- Type Parameters:
T- The database object class for which this instance is a listener.
public interface CacheListener<T extends Persistent>
Listener for cache events
- Version:
- $Id: CacheListener.java 1728149 2016-02-02 15:27:42Z tv $
- Author:
- John McNally
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddedObject(T om) Notify listener that an object has been added to the databaseGet the list of fields we are listening forvoidrefreshedObject(T om) Notify listener that an object has been modifiedvoidremovedObject(T om) Notify listener that an object has been removed from the database
-
Method Details
-
addedObject
Notify listener that an object has been added to the database- Parameters:
om- the object
-
refreshedObject
Notify listener that an object has been modified- Parameters:
om- the object
-
removedObject
Notify listener that an object has been removed from the database- Parameters:
om- the object
-
getInterestedFields
Get the list of fields we are listening for- Returns:
- a list of fields, not null
-