Subversion Repositories WebE

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 PointedEar 1
//$Id:
2
package org.hibernate.annotations;
3
 
4
/**
5
 * Possible checks on Sql Insert, Delete, Update
6
 *
7
 * @author László Benke
8
 */
9
public enum ResultCheckStyle {
10
        /**
11
         * Do not perform checking.  Either user simply does not want checking, or is
12
         * indicating a {@link java.sql.CallableStatement} execution in which the
13
         * checks are being performed explicitly and failures are handled through
14
         * propogation of {@link java.sql.SQLException}s.
15
         */
16
        NONE,
17
        /**
18
         * Perform row-count checking.  Row counts are the int values returned by both
19
         * {@link java.sql.PreparedStatement#executeUpdate()} and
20
         * {@link java.sql.Statement#executeBatch()}.  These values are checked
21
         * against some expected count.
22
         */
23
        COUNT,
24
        /**
25
         * Essentially the same as {@link #COUNT} except that the row count actually
26
         * comes from an output parameter registered as part of a
27
         * {@link java.sql.CallableStatement}.  This style explicitly prohibits
28
         * statement batching from being used...
29
         */
30
        PARAM
31
}