Skip to content

Commit e95636f

Browse files
authored
Merge pull request #262 from domaframework/translate-javadoc-comments
Translate javadoc comments from Japanese to English
2 parents e95dad4 + 8049197 commit e95636f

File tree

1,438 files changed

+3344
-29059
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,438 files changed

+3344
-29059
lines changed

src/main/java/org/seasar/doma/AccessLevel.java

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,6 @@
1-
/*
2-
* Copyright 2004-2010 the Seasar Foundation and the Others.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13-
* either express or implied. See the License for the specific language
14-
* governing permissions and limitations under the License.
15-
*/
161
package org.seasar.doma;
172

18-
/**
19-
* Javaのアクセスレベルを表します。
20-
*
21-
* @author nakamura-to
22-
* @since 2.0.0
23-
*/
3+
/** Defines access levels in The Java Language. */
244
public enum AccessLevel {
255

266
/** {@code public} */
@@ -29,20 +9,16 @@ public enum AccessLevel {
299
/** {@code protected} */
3010
PROTECTED("protected"),
3111

32-
/** パッケージプライベート */
12+
/** package private */
3313
PACKAGE("");
3414

3515
private final String modifier;
3616

37-
private AccessLevel(String modifier) {
17+
AccessLevel(String modifier) {
3818
this.modifier = modifier;
3919
}
4020

41-
/**
42-
* 修飾子を返します。
43-
*
44-
* @return 修飾子
45-
*/
21+
/** @return the modifier's name */
4622
public String getModifier() {
4723
return modifier;
4824
}
Lines changed: 38 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,59 @@
1-
/*
2-
* Copyright 2004-2010 the Seasar Foundation and the Others.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13-
* either express or implied. See the License for the specific language
14-
* governing permissions and limitations under the License.
15-
*/
161
package org.seasar.doma;
172

183
import java.lang.annotation.ElementType;
194
import java.lang.annotation.Retention;
205
import java.lang.annotation.RetentionPolicy;
216
import java.lang.annotation.Target;
7+
import org.seasar.doma.jdbc.Config;
228

239
/**
24-
* Daoインタフェースの実装クラスのソースコードにアノテーションを注釈することを示します。
10+
* Indicates that a generated code that implements the annotated interface is annotated with some
11+
* annotations.
2512
*
26-
* <p>このアノテーションには2種類の使い方があります
13+
* <p>This annotation is mainly intended to inject a {@link Config} instance to a DAO
14+
* implementation's constructor. Don't use {@link Dao#config()} with this annotation.
15+
*
16+
* <p>There are 2 ways to use this annotation:
2717
*
2818
* <ul>
29-
* <li>Daoインタフェースに直接的に注釈する方法。
30-
* <li>Daoインタフェースに間接的に注釈する方法。この方法では、任意のアノテーションに{@code AnnotateWith}
31-
* を注釈し、そのアノテーションをDaoインタフェースに注釈する。
19+
* <li>annotate directly
20+
* <li>annotate indirectly
3221
* </ul>
3322
*
34-
* <p>このアノテーションを直接的であれ間接的であれDaoインタフェースに注釈する場合、{@link Dao#config()} に値を設定してはいけません。
23+
* <p>annotate directly:
24+
*
25+
* <pre>
26+
* &#64;Dao
27+
* &#64;AnnotateWith(annotations = {
28+
* &#64;Annotation(target = AnnotationTarget.CONSTRUCTOR, type = javax.inject.Inject.class),
29+
* &#64;Annotation(target = AnnotationTarget.CONSTRUCTOR_PARAMETER, type = javax.inject.Named.class, elements = "\"config\"") })
30+
* public interface EmployeeDao {
31+
* ...
32+
* }
33+
* </pre>
34+
*
35+
* annotate indirectly:
36+
*
37+
* <pre>
38+
* &#64;AnnotateWith(annotations = {
39+
* &#64;Annotation(target = AnnotationTarget.CONSTRUCTOR, type = javax.inject.Inject.class),
40+
* &#64;Annotation(target = AnnotationTarget.CONSTRUCTOR_PARAMETER, type = javax.inject.Named.class, elements = "\"config\"") })
41+
* public @interface InjectConfig {
42+
* }
43+
* </pre>
3544
*
36-
* @author taedium
45+
* <pre>
46+
* &#64;Dao
47+
* &#64;InjectConfig
48+
* public interface EmployeeDao {
49+
* ...
50+
* }
51+
* </pre>
3752
*/
3853
@Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE})
3954
@Retention(RetentionPolicy.RUNTIME)
4055
public @interface AnnotateWith {
4156

42-
/**
43-
* アノテーションの配列を返します。
44-
*
45-
* @return アノテーションの配列
46-
*/
57+
/** @return the {@link Annotation} array. */
4758
Annotation[] annotations();
4859
}
Lines changed: 11 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,31 @@
1-
/*
2-
* Copyright 2004-2010 the Seasar Foundation and the Others.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13-
* either express or implied. See the License for the specific language
14-
* governing permissions and limitations under the License.
15-
*/
161
package org.seasar.doma;
172

183
import java.lang.annotation.Retention;
194
import java.lang.annotation.RetentionPolicy;
205

216
/**
22-
* アノテーションを示します。
23-
*
24-
* @author taedium
25-
* @see AnnotateWith
7+
* Used in conjunction with the {@link AnnotateWith} annotation to indicate which kind of annotation
8+
* is specified for generated code.
269
*/
2710
@Retention(RetentionPolicy.RUNTIME)
2811
public @interface Annotation {
2912

30-
/**
31-
* 注釈する対象を返します。
32-
*
33-
* @return 注釈する対象
34-
*/
13+
/** @return the location where the annotation is specified. */
3514
AnnotationTarget target();
3615

37-
/**
38-
* アノテーションの型を返します。
39-
*
40-
* @return アノテーションの型
41-
*/
16+
/** @return the annotation class that this annotation represents. */
4217
Class<? extends java.lang.annotation.Annotation> type();
4318

4419
/**
45-
* アノテーションの要素を返します。
20+
* The annotation elements as a set of key-value pair.
21+
*
22+
* <p>Represented in CSV format:
4623
*
47-
* <p>「要素名 = 値」 形式で文字列を記述します。 複数存在する場合はカンマで区切ります。
24+
* <pre>
25+
* elementName1=value1, elementName2=value2
26+
* </pre>
4827
*
49-
* @return アノテーションの要素
28+
* @return the annotation elements
5029
*/
5130
String elements() default "";
5231
}
Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,18 @@
1-
/*
2-
* Copyright 2004-2010 the Seasar Foundation and the Others.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13-
* either express or implied. See the License for the specific language
14-
* governing permissions and limitations under the License.
15-
*/
161
package org.seasar.doma;
172

183
/**
19-
* アノテーションを注釈する対象です。
4+
* Defines the locations where annotations may appear.
205
*
21-
* @author taedium
226
* @see Annotation
237
*/
248
public enum AnnotationTarget {
259

26-
/** クラス */
10+
/** Class */
2711
CLASS,
2812

29-
/** コンストラクタ */
13+
/** Constructor */
3014
CONSTRUCTOR,
3115

32-
/** コンストラクターのパラメータ */
16+
/** Constructor's parameter */
3317
CONSTRUCTOR_PARAMETER,
3418
}
Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
/*
2-
* Copyright 2004-2010 the Seasar Foundation and the Others.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13-
* either express or implied. See the License for the specific language
14-
* governing permissions and limitations under the License.
15-
*/
161
package org.seasar.doma;
172

183
import java.lang.annotation.ElementType;
@@ -24,11 +9,9 @@
249
import org.seasar.doma.jdbc.JdbcException;
2510

2611
/**
27-
* {@link Array} のインスタンスを生成することを示します。
28-
*
29-
* <p>このアノテーションが注釈されるメソッドは、 Daoインタフェースのメンバでなければいけません。
12+
* Indicates to create an {@link Array} instance.
3013
*
31-
* <h3>例:</h3>
14+
* <p>The annotated method must be a member of a {@link Dao} annotated interface.
3215
*
3316
* <pre>
3417
* &#064;Dao(config = AppConfig.class)
@@ -39,14 +22,13 @@
3922
* }
4023
* </pre>
4124
*
42-
* 注釈されるメソッドは、次の例外をスローすることがあります。
25+
* The method may throw following exceptions:
4326
*
4427
* <ul>
45-
* <li>{@link DomaNullPointerException} パラメータに {@code null}を渡した場合
46-
* <li>{@link JdbcException} JDBCに関する例外が発生した場合
28+
* <li>{@link DomaNullPointerException} if any of the method parameters are {@code null}
29+
* <li>{@link JdbcException} if a JDBC related error occurs
4730
* </ul>
4831
*
49-
* @author taedium
5032
* @see Connection#createArrayOf(String, Object[])
5133
*/
5234
@Target(ElementType.METHOD)
@@ -55,11 +37,12 @@
5537
public @interface ArrayFactory {
5638

5739
/**
58-
* 配列の要素がマッピングされる型のSQL名を返します。。
40+
* The SQL name of the type the elements of the array map to.
5941
*
60-
* <p>この値は、 {@link Connection#createArrayOf(String, Object[])} の最初のパラメータに渡されます。
42+
* <p>The value is passed as the first argument to {@link Connection#createArrayOf(String,
43+
* Object[])}.
6144
*
62-
* @return 配列の要素がマッピングされる型のSQL名
45+
* @return the type name
6346
*/
6447
String typeName();
6548
}

0 commit comments

Comments
 (0)