Skip to content

Commit 5336dd1

Browse files
committed
AUTO: Sync ScalarDB docs in Japanese to docs site repo
1 parent 489f867 commit 5336dd1

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed

i18n/versioned_docs/ja-jp/docusaurus-plugin-content-docs/current/scalardb-sql/jdbc-guide.mdx

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -83,40 +83,40 @@ ScalarDB は JDBC で定義されているすべてのデータ型をサポー
8383
ScalarDB と JDBC 間のデータ型マッピングは次のとおりです。
8484

8585
| ScalarDB タイプ | JDBC (Java) タイプ |
86-
|----------------|-----------------------|
87-
| Boolean | boolean または Boolean |
88-
| Int | int または Integer |
89-
| BigInt | long または Long |
90-
| Float | float または Float |
91-
| Double | double または Double |
92-
| Text | String |
93-
| Blob | byte[] |
86+
|--------------|-----------------------|
87+
| BOOLEAN | boolean または Boolean |
88+
| INT | int または Integer |
89+
| BIGINT | long または Long |
90+
| FLOAT | float または Float |
91+
| DOUBLE | double または Double |
92+
| TEXT | String |
93+
| BLOB | byte[] |
9494

9595
各データ型の `java.sql.ResultSet` オブジェクトからデータを取得する方法は次のとおりです。
9696

9797
```java
9898
try (ResultSet resultSet = ...) {
9999
resultSet.next();
100100

101-
// Get a Boolean value of a column
101+
// Get a BOOLEAN value of a column
102102
boolean booleanValue = resultSet.getBoolean("<column name>");
103103

104-
// Get an Int value of a column
104+
// Get an INT value of a column
105105
int intValue = resultSet.getInt("<column name>");
106106

107-
// Get a BigInt value of a column
107+
// Get a BIGINT value of a column
108108
long bigIntValue = resultSet.getLong("<column name>");
109109

110-
// Get a Float value of a column
110+
// Get a FLOAT value of a column
111111
float floatValue = resultSet.getFloat("<column name>");
112112

113-
// Get a Double value of a column
113+
// Get a DOUBLE value of a column
114114
double doubleValue = resultSet.getDouble("<column name>");
115115

116-
// Get a Text value of a column
116+
// Get a TEXT value of a column
117117
String textValue = resultSet.getString("<column name>");
118118

119-
// Get a Blob value of a column
119+
// Get a BLOB value of a column
120120
byte[] blobValue = resultSet.getBytes("<column name>");
121121
}
122122
```
@@ -125,26 +125,26 @@ try (ResultSet resultSet = ...) {
125125

126126
```java
127127
try (PreparedStatement preparedStatement = ...) {
128-
// Set a Boolean value as parameter
129-
preparedStatement.setBoolean(1, <Boolean value>);
128+
// Set a BOOLEAN value as parameter
129+
preparedStatement.setBoolean(1, <BOOLEAN value>);
130130

131-
// Set an Int value as parameter
132-
preparedStatement.setInt(2, <Int value>);
131+
// Set an INT value as parameter
132+
preparedStatement.setInt(2, <INT value>);
133133

134-
// Set a BigInt value as parameter
135-
preparedStatement.setLong(3, <BigInt value>);
134+
// Set a BIGINT value as parameter
135+
preparedStatement.setLong(3, <BIGINT value>);
136136

137-
// Set a Float value as parameter
138-
preparedStatement.setFloat(4, <Float value>);
137+
// Set a FLOAT value as parameter
138+
preparedStatement.setFloat(4, <FLOAT value>);
139139

140-
// Set a Double value as parameter
141-
preparedStatement.setDouble(5, <Double value>);
140+
// Set a DOUBLE value as parameter
141+
preparedStatement.setDouble(5, <DOUBLE value>);
142142

143-
// Set a Text value as parameter
144-
preparedStatement.setString(7, "<Text value>");
143+
// Set a TEXT value as parameter
144+
preparedStatement.setString(7, "<TEXT value>");
145145

146-
// Set a Blob value as parameter
147-
preparedStatement.setBytes(8, <Blob value>);
146+
// Set a BLOB value as parameter
147+
preparedStatement.setBytes(8, <BLOB value>);
148148

149149
preparedStatement.execute();
150150
}

i18n/versioned_docs/ja-jp/docusaurus-plugin-content-docs/current/scalardb-sql/sql-api-guide.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,35 +154,35 @@ ColumnDefinitions columnDefinitions = resultSet.getColumnDefinitions();
154154
次のように、`getXXX("<column name>")` メソッドまたは `getXXX(<column index>)` メソッド (XXX は型名) を使用して結果の列値を取得できます。
155155

156156
```java
157-
// Get a Boolean value of a column
157+
// Get a BOOLEAN value of a column
158158
boolean booleanValueGottenByName = record.getBoolean("<column name>");
159159
boolean booleanValueGottenByIndex = record.getBoolean(<column index>);
160160

161-
// Get an Int value of a column
161+
// Get an INT value of a column
162162
int intValueGottenByName = record.getInt("<column name>");
163163
int intValueGottenByIndex = record.getInt(<column index>);
164164

165-
// Get a BigInt value of a column
165+
// Get a BIGINT value of a column
166166
long bigIntValueGottenByName = record.getBigInt("<column name>");
167167
long bigIntValueGottenByIndex = record.getBigInt(<column index>);
168168

169-
// Get a Float value of a column
169+
// Get a FLOAT value of a column
170170
float floatValueGottenByName = record.getFloat("<column name>");
171171
float floatValueGottenByIndex = record.getFloat(<column index>);
172172

173-
// Get a Double value of a column
173+
// Get a DOUBLE value of a column
174174
double doubleValueGottenByName = record.getDouble("<column name>");
175175
double doubleValueGottenByIndex = record.getDouble(<column index>);
176176

177-
// Get a Text value of a column
177+
// Get a TEXT value of a column
178178
String textValueGottenByName = record.getText("<column name>");
179179
String textValueGottenByIndex = record.getText(<column index>);
180180

181-
// Get a Blob value of a column (as a ByteBuffer)
181+
// Get a BLOB value of a column (as a ByteBuffer)
182182
ByteBuffer blobValueGottenByName = record.getBlob("<column name>");
183183
ByteBuffer blobValueGottenByIndex = record.getBlob(<column index>);
184184

185-
// Get a Blob value of a column as a byte array
185+
// Get a BLOB value of a column as a byte array
186186
byte[] blobValueAsBytesGottenByName = record.getBlobAsBytes("<column name>");
187187
byte[] blobValueAsBytesGottenByIndex = record.getBlobAsBytes(<column index>);
188188
```

0 commit comments

Comments
 (0)