01: // $Id: Result.java 12 2007-08-29 05:23:13Z jcamaia $
02:
03: package net.sf.persist;
04:
05: import java.util.List;
06:
07: /**
08: * Represents a result from an insert operation with auto-generated keys.
09: */
10: public final class Result {
11:
12: private final int rowsModified;
13: private final List<String> generatedKeys;
14:
15: public Result(final int rowsModified, final List generatedKeys) {
16: this .rowsModified = rowsModified;
17: this .generatedKeys = generatedKeys;
18: }
19:
20: public int getRowsModified() {
21: return rowsModified;
22: }
23:
24: public List<String> getGeneratedKeys() {
25: return generatedKeys;
26: }
27:
28: }
|