org.fuchss.objectcasket.tablemodule.port.TableObserver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of object-casket Show documentation
Show all versions of object-casket Show documentation
Object Casket is a simple O/R mapper that can be used together with the Java Persistence API (JPA). The aim is to provide a simple solution for small projects to store multi-related
entities in a simple manner.
package org.fuchss.objectcasket.tablemodule.port;
import java.util.Set;
/**
* To keep track of modifications done by others, it is possible to attach an
* observer to any {@link Table} inside the {@link TableModule table module}.
* These observers will be informed whenever things changed in the assigned
* database table.
*
* @see Table#register(TableObserver)
* @see Table#deregister(TableObserver)
*/
public interface TableObserver {
/**
* If an object should be informed about performed table changes, it must
* implement this operation.
*
* @param changed - all changed rows.
* @param deleted - all deleted rows.
* @param added - all added rows.
*/
void update(Set changed, Set deleted, Set added);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy