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

org.fuchss.objectcasket.tablemodule.port.TableObserver Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 0.20.17
Show newest version
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