01: package net.sourceforge.jaxor.api;
02:
03: import java.sql.Connection;
04:
05: /*
06: * User: Mike
07: * Date: Oct 18, 2002
08: * Time: 7:54:05 PM
09: */
10:
11: public interface UnitOfWork extends java.io.Serializable {
12:
13: void registerNew(EntityInterface newEntity);
14:
15: void registerUpdate(EntityInterface update);
16:
17: void registerDelete(EntityInterface ent);
18:
19: void flush(Connection connection);
20:
21: long size();
22:
23: void batching(boolean isEnabled);
24: }
|