org.mentabean.event.TriggerEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of menta-bean Show documentation
Show all versions of menta-bean Show documentation
An query helper and simple CRUD ORM.
package org.mentabean.event;
import org.mentabean.BeanSession;
public class TriggerEvent {
private final BeanSession session;
private final Object bean;
public TriggerEvent(final BeanSession session, final Object bean) {
this.session = session;
this.bean = bean;
}
public BeanSession getSession() {
return session;
}
@SuppressWarnings("unchecked")
public E getBean() {
return (E) bean;
}
}