com.avaje.ebean.common.ModifySet Maven / Gradle / Ivy
package com.avaje.ebean.common;
import java.util.Set;
import com.avaje.ebean.bean.BeanCollection;
/**
* Wraps a Set for the purposes of notifying removals and additions to the
* BeanCollection owner.
*
* This is required for persisting ManyToMany objects. Additions and removals
* become inserts and deletes to the intersection table.
*
*/
class ModifySet extends ModifyCollection implements Set {
/**
* Create with an Owner that is notified of any additions or deletions.
*/
public ModifySet(BeanCollection owner, Set s) {
super(owner, s);
}
}