|
13 | 13 | import org.seasar.doma.jdbc.SqlLogType; |
14 | 14 |
|
15 | 15 | /** |
16 | | - * バッチ削除処理を示します。 |
| 16 | + * Indicates a batch delete. |
17 | 17 | * |
18 | | - * <p>このアノテーションが注釈されるメソッドは、 Daoインタフェースのメンバでなければいけません。 |
19 | | - * |
20 | | - * <h3>例:</h3> |
| 18 | + * <p>The annotated method must be a member of a {@link Dao} annotated interface. |
21 | 19 | * |
22 | 20 | * <pre> |
23 | 21 | * @Entity |
|
33 | 31 | * } |
34 | 32 | * </pre> |
35 | 33 | * |
36 | | - * 注釈されるメソッドは、次の例外をスローすることがあります。 |
| 34 | + * The method may throw following exceptions: |
37 | 35 | * |
38 | 36 | * <ul> |
39 | | - * <li>{@link DomaNullPointerException} パラメータに {@code null} を渡した場合 |
40 | | - * <li>{@link OptimisticLockException} 楽観的排他制御が有効なで更新件数が0件の場合 |
41 | | - * <li>{@link SqlFileNotFoundException} {@code sqlFile} 要素の値が {@code true} で、SQLファイルが見つからなかった場合 |
42 | | - * <li>{@link JdbcException} 上記以外でJDBCに関する例外が発生した場合 |
| 37 | + * <li>{@link DomaNullPointerException} if any of the method parameters are {@code null} |
| 38 | + * <li>{@link OptimisticLockException} if optimistic locking is enabled and an update count is 0 |
| 39 | + * for each entity |
| 40 | + * <li>{@link SqlFileNotFoundException} if {@code sqlFile} is {@code true} and the SQL file is not |
| 41 | + * found |
| 42 | + * <li>{@link JdbcException} if a JDBC related error occurs |
43 | 43 | * </ul> |
44 | | - * |
45 | | - * @author taedium |
46 | 44 | */ |
47 | 45 | @Target(ElementType.METHOD) |
48 | 46 | @Retention(RetentionPolicy.RUNTIME) |
49 | 47 | @DaoMethod |
50 | 48 | public @interface BatchDelete { |
51 | 49 |
|
52 | | - /** |
53 | | - * SQLファイルにマッピングするかどうかを返します。 |
54 | | - * |
55 | | - * @return SQLファイルにマッピングするかどうか |
56 | | - */ |
| 50 | + /** @return whether the annotated method is mapped to an SQL file. */ |
57 | 51 | boolean sqlFile() default false; |
58 | 52 |
|
59 | 53 | /** |
60 | | - * クエリタイムアウト(秒)を返します。 |
| 54 | + * The query timeout in seconds. |
61 | 55 | * |
62 | | - * <p>指定しない場合、{@link Config#getQueryTimeout()}が使用されます。 |
| 56 | + * <p>If not specified, {@link Config#getQueryTimeout()} is used. |
63 | 57 | * |
64 | | - * @return クエリタイムアウト |
| 58 | + * @return the query timeout |
65 | 59 | * @see Statement#setQueryTimeout(int) |
66 | 60 | */ |
67 | 61 | int queryTimeout() default -1; |
68 | 62 |
|
69 | 63 | /** |
70 | | - * バッチサイズを返します。 |
| 64 | + * The batch size. |
71 | 65 | * |
72 | | - * <p>指定しない場合、{@link Config#getBatchSize()}が使用されます。 |
| 66 | + * <p>If not specified, {@link Config#getBatchSize()} is used. |
73 | 67 | * |
74 | | - * <p>{@link PreparedStatement#executeBatch()} を実行する際のバッチサイズです。 バッチ対象の数がバッチサイズを上回る場合、バッチサイズの数だけ |
75 | | - * {@link PreparedStatement#addBatch()} を呼び出し、 {@link PreparedStatement#executeBatch()} |
76 | | - * を実行するということを繰り返します。 |
| 68 | + * <p>This value is used when {@link PreparedStatement#executeBatch()} is executed. |
77 | 69 | * |
78 | | - * @return バッチサイズ |
| 70 | + * @return the batch size |
79 | 71 | * @see PreparedStatement#addBatch() |
80 | | - * @since 1.21.0 |
81 | 72 | */ |
82 | 73 | int batchSize() default -1; |
83 | 74 |
|
84 | 75 | /** |
85 | | - * 楽観的排他制御用のバージョン番号を無視するかどうかを返します。 |
| 76 | + * Whether the version property is ignored. |
86 | 77 | * |
87 | | - * <p>{@code true} の場合、削除条件にバージョン番号を含めません。 |
| 78 | + * <p>If {@code true}, the column that mapped to the version property is excluded from SQL DELETE |
| 79 | + * statements. |
88 | 80 | * |
89 | | - * @return 楽観的排他制御用のバージョン番号を無視するかどうか |
| 81 | + * @return whether the version property is ignored |
90 | 82 | */ |
91 | 83 | boolean ignoreVersion() default false; |
92 | 84 |
|
93 | 85 | /** |
94 | | - * 削除結果が1件でない場合にスローされる {@link OptimisticLockException} を抑制するかどうかを返します。 |
| 86 | + * Whether {@link OptimisticLockException} is suppressed. |
95 | 87 | * |
96 | | - * <p>この要素に対する指定は、{@link #sqlFile()} が {@code false} の場合にのみ有効です。 |
| 88 | + * <p>Only if {@link #sqlFile()} is {@code false}, this element value is used. |
97 | 89 | * |
98 | | - * @return {@link OptimisticLockException}を抑制するかどうか |
| 90 | + * @return whether {@link OptimisticLockException} is suppressed |
99 | 91 | */ |
100 | 92 | boolean suppressOptimisticLockException() default false; |
101 | 93 |
|
102 | | - /** |
103 | | - * SQLのログの出力形式を返します。 |
104 | | - * |
105 | | - * @return SQLログの出力形式 |
106 | | - * @since 2.0.0 |
107 | | - */ |
| 94 | + /** @return the output format of SQL logs. */ |
108 | 95 | SqlLogType sqlLog() default SqlLogType.FORMATTED; |
109 | 96 | } |
0 commit comments