Skip to content

Commit 3ba0eed

Browse files
authored
Merge pull request #285 from domaframework/translate
Translate documents from Japanese into English
2 parents e797bb0 + dc624d2 commit 3ba0eed

File tree

5 files changed

+210
-199
lines changed

5 files changed

+210
-199
lines changed

docs/faq.rst

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,45 +8,45 @@ Frequently Asked Questions
88
General Questions
99
=================
1010

11-
What does Doma stand for?
12-
-------------------------
11+
What does "Doma" mean?
12+
----------------------
1313

14-
Doma stands for the **D** ao **O** riented database **MA** pping framework.
14+
The name "Doma" comes from the "Dao Oriented database MApping framework".
1515

1616
What is annotation processing?
1717
------------------------------
1818

19-
Annotation processing, that is introduced in Java 6,
20-
allows us to validate and generate source codes at compile time.
19+
Annotation processing, that was introduced in Java 6,
20+
allows us to validate and generate source code at compile time.
2121

22-
We use annotation processing to do followings:
22+
We use annotation processing to the following:
2323

24-
- Generating meta classes from the classes annotated with ``@Entity`` and ``@Domain``
25-
- Generating implementation classes of the interfaces annotated with ``@Dao``
26-
- Validating SQL statements
24+
- generating meta classes from the classes annotated with ``@Entity`` and ``@Domain``;
25+
- generating implementation classes of the interfaces annotated with ``@Dao``; and
26+
- validating SQL statements.
2727

2828
Runtime environment
2929
===================
3030

3131
Which version of JRE does Doma support?
3232
---------------------------------------
3333

34-
JRE 8、9、10 and 11.
34+
JRE 8, 9, 10 and 11.
3535

36-
What libraries are required to work Doma?
37-
-----------------------------------------
36+
Which libraries are required for Doma to work?
37+
----------------------------------------------
3838

39-
Nothing.
39+
None.
4040

41-
Doma has no dependencies to other libraries.
41+
Doma has no dependencies on other libraries.
4242

4343
Development environment
4444
=======================
4545

4646
Which version of JDK does Doma support?
4747
---------------------------------------
4848

49-
JDK 8、9、10 and 11.
49+
JDK 8, 9, 10 and 11.
5050

5151
Which IDE do you recommend?
5252
---------------------------
@@ -67,7 +67,7 @@ In Eclipse, they are found in the .apt_generated directory.
6767
In Eclipse, where is the .apt_generated directory?
6868
--------------------------------------------------
6969

70-
You can find it in the Nivigator view.
70+
You can find it in the Navigator view.
7171

7272
I get the message that the sql file is not found, but it exists.
7373
----------------------------------------------------------------
@@ -79,35 +79,35 @@ You may get the following message, though the file exists:
7979
[DOMA4019] The file[META-INF/../select.sql] is not found from the classpath
8080
8181
When you use Eclipse, check that the location of the output folder of resources is
82-
same as the one of class files in the Java Build Path dialog.
82+
same as the one for the class files in the Java Build Path dialog.
8383

8484
When you use Gradle, check that the resource files are copied to ``compileJava.destinationDir``
8585
in advance of the compileJava task. See also :ref:`build-with-gradle`.
8686

8787

88-
Features as the database access library
89-
=======================================
88+
Features as a database access library
89+
=====================================
9090

9191
Does Doma generate SQL statements?
9292
----------------------------------
9393

94-
Yes, Doma generates following statements:
94+
Yes, Doma generates the following statements:
9595

96-
- INSERT
97-
- DELETE
98-
- UPDATE
99-
- stored procedure call
100-
- stored function call
96+
- INSERT;
97+
- DELETE;
98+
- UPDATE;
99+
- stored procedure call; and
100+
- stored function call.
101101

102102
Doma doesn't generate SELECT statements
103103
but executes arbitrary SELECT statements and maps the results to the Java objects.
104104

105-
See also :doc:`query/index` for detail information.
105+
See also :doc:`query/index` for detailed information.
106106

107-
How dynamic SQL statements are executed?
107+
How are dynamic SQL statements executed?
108108
----------------------------------------
109109

110-
The dynamic SQL statements are built by directives that are represented as the SQL comments.
110+
Dynamic SQL statements are built by directives that are represented by the SQL comments.
111111

112112
See also :doc:`sql` for detail information.
113113

@@ -124,5 +124,5 @@ Does Doma provide a JDBC connection pooling feature?
124124
No.
125125

126126
Use Doma together with
127-
the JDBC connection pool library such as `HikariCP <https://github.com/brettwooldridge/HikariCP>`_.
127+
a JDBC connection pool library such as `HikariCP <https://github.com/brettwooldridge/HikariCP>`_.
128128

docs/query/factory.rst

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,66 @@
1-
==================
2-
ファクトリ
3-
==================
1+
=========
2+
Factories
3+
=========
44

5-
.. contents:: 目次
5+
.. contents::
66
:depth: 3
77

8-
``java.sql.Connection`` が提供するファクトリメソッドからインスタンスを取得するには、
9-
Daoのメソッドに次のアノテーションを注釈します。
8+
To get instances from the factory methods of ``java.sql.Connection``,
9+
annotate DAO methods with one of following annotations;
1010

11-
* java.sql.Arrayを生成するには、@ArrayFactory
12-
* java.sql.Blobを生成するには、@BlobFactory
13-
* java.sql.Clobを生成するには、@ClobFactory
14-
* java.sql.NClobを生成するには、@NClobFactory
15-
* java.sql.SQLXMLを生成するには、@SQLXMLFactory
11+
* @ArrayFactory
12+
* @BlobFactory
13+
* @ClobFactory
14+
* @NClobFactory
15+
* @SQLXMLFactory
1616

17-
Arrayの生成
18-
===========
17+
Creating Array instances
18+
========================
1919

20-
戻り値の型は ``java.sql.Array`` 、パラメータは1つの配列型でなければいけません。
21-
引数は ``null`` であってはいけません。
20+
A return type must be ``java.sql.Array`` and the number of parameters must be one.
21+
The parameter type must be an array type and the parameter must not be null.
2222

23-
``@ArrayFactory````typeName`` 要素にはデータベースの型名を指定します。
23+
Specify a database type name to the ``@ArrayFactory``'s ``typeName`` element:
2424

2525
.. code-block:: java
2626
2727
@ArrayFactory(typeName = "integer")
2828
Array createIntegerArray(Integer[] elements);
2929
30-
Blobの生成
31-
==========
30+
Creating Blob instances
31+
=======================
3232

33-
戻り値の型は ``java.sql.Blob`` 、パラメータの数は0でなければいけません。
33+
A return type must be ``java.sql.Blob`` and the number of parameters must be zero:
3434

3535
.. code-block:: java
3636
3737
@BlobFactory
3838
Blob createBlob();
3939
40-
Clobの生成
41-
==========
40+
Creating Clob instances
41+
=======================
4242

43-
戻り値の型は ``java.sql.Clob`` 、パラメータの数は0でなければいけません。
43+
A return type must be ``java.sql.Clob`` and the number of parameters must be zero:
4444

4545
.. code-block:: java
4646
4747
@ClobFactory
4848
Clob createClob();
4949
50-
NClobの生成
51-
===========
50+
Creating NClob instances
51+
========================
5252

53-
戻り値の型は ``java.sql.NClob`` 、パラメータの数は0でなければいけません。
53+
A return type must be ``java.sql.NClob`` and the number of parameters must be zero:
5454

5555
.. code-block:: java
5656
5757
@NClobFactory
5858
NClob createNClob();
5959
60-
SQLXMLの生成
61-
============
60+
Creating SQLXML instances
61+
=========================
6262

63-
戻り値の型は ``java.sql.SQLXML`` 、パラメータの数は0でなければいけません。
63+
A return type must be ``java.sql.SQLXML`` and the number of parameters must be zero:
6464

6565
.. code-block:: java
6666

0 commit comments

Comments
 (0)