77 {
88 present : "search_lastname" ,
99 text : "You should replace \"search_lastname\" with a placeholder (?)." ,
10+ text_ja : "\"search_lastname\" をプレースホルダの (?) に置き換える必要があります。" ,
1011 index : 0 ,
1112 examples : [
1213 [
@@ -17,12 +18,14 @@ info =
1718 {
1819 absent : String . raw `\?` ,
1920 text : "Write an parameterized statement with the Special character \"?\" added." ,
21+ text_ja : "特殊文字である \"?\" を使ってパラメータ化されたステートメントを書いてください。" ,
2022 index : 0
2123 } ,
2224 {
2325 present : String . raw `\+` ,
2426 index : 0 ,
2527 text : "There is no need for string concatenation. Use a simple constant string using the form \"...\"." ,
28+ text_ja : "文字列連結は必要ありません。\"...\" の形で定数文字列を使ってください。" ,
2629 examples : [
2730 [
2831 "String QueryString =\n \"select * from authors where lastname = \" + \"?\" + \" ; \";\n" ,
@@ -34,28 +37,33 @@ info =
3437 absent : String . raw `\s* PreparedStatement\s+pstmt = connection \.
3538 prepareStatement \( QueryString \) \; \s*` ,
3639 text : "After defining the query string you should create a prepared statement, using the form `PreparedStatement pstmt = connection.prepareStatement(QueryString);`" ,
40+ text_ja : "クエリ文字列を定義したあとに、`PreparedStatement pstmt = connection.prepareStatement(QueryString);` の形でプリペアドステートメントを作成する必要があります。" ,
3741 } ,
3842 {
3943 absent : "search_lastname" ,
4044 present : "lastname" ,
4145 index : 1 ,
4246 text : "The term `lastname` is the name of the database field to be searched, However, you want to search for a specific value in that field. That value is held in the variable `search_lastname`, not in `lastname`." ,
47+ text_ja : "`lastname` は検索するデータベースのフィールド名です。このフィールドからある特定の値を検索したいはずです。その値は `lastname` ではなく `search_lastname` に格納されています。" ,
4348 } ,
4449 {
4550 absent : String . raw `pstmt \. setString \( 1 , search_lastname \) \;` ,
4651 index : 1 ,
4752 text : "Start the second section with a statement like `pstmt.setString(1, search_lastname);`" ,
53+ text_ja : "2つ目のセクションは `pstmt.setString(1, search_lastname);` で始めてください。" ,
4854 } ,
4955 {
5056 absent : "executeQuery" ,
5157 present : "execute" ,
5258 index : 1 ,
5359 text : "Use `executeQuery` not `execute` so we can receive and use a potential series of results (a `ResultSet`)." ,
60+ text_ja : "`execute` ではなく `executeQuery` を使用してください。これで一連の結果(ResultSet)を得ることができます。" ,
5461 } ,
5562 {
5663 absent : String . raw `\s* ResultSet\s+results = pstmt \. executeQuery \( \) \; \s*` ,
5764 index : 1 ,
5865 text : "After using `setString` execute the query and place the results in `results`, something like `ResultSet results = pstmt.executeQuery();`" ,
66+ text_ja : "`setString` のあとでクエリを実行し、結果を `result` に格納してください。`ResultSet results = pstmt.executeQuery();` のような形になるはずです。" ,
5967 } ,
6068 ] ,
6169 expected : [
0 commit comments