Java Reference
In-Depth Information
while (i.hasNext()) {
Booking b = (Booking) i.next();
sendMail(b);
}
}
stored.set(null);
}
public boolean onSave(Object entity, Serializable id,
Object[] state, String[] propertyNames, Type[] types)
throws CallbackException {
((Collection) stored.get()).add(entity);
return false;
}
private void sendMail(Booking b) {
// Here we would actually send out the e-mail
System.out.print("Name: " + b.getName());
System.out.println(", Seat: " + b.getSeat());
}
public void beforeTransactionCompletion(Transaction tx) {
}
public int[] findDirty(Object entity, Serializable id,
Object[] currentState, Object[] previousState,
String[] propertyNames, Type[] types) {
return null;
}
public Object getEntity(String entityName, Serializable id)
throws CallbackException {
return null;
}
public String getEntityName(Object object) throws CallbackException {
return null;
}
public Object instantiate(String entityName, EntityMode entityMode,
Serializable id) throws CallbackException {
return null;
}
public Boolean isTransient(Object object) {
return null;
}
Search WWH ::




Custom Search