diff --git a/i18n/versioned_docs/ja-jp/docusaurus-plugin-content-docs/current/scalardb-sql/jdbc-guide.mdx b/i18n/versioned_docs/ja-jp/docusaurus-plugin-content-docs/current/scalardb-sql/jdbc-guide.mdx index c45888f4..d0535a6a 100644 --- a/i18n/versioned_docs/ja-jp/docusaurus-plugin-content-docs/current/scalardb-sql/jdbc-guide.mdx +++ b/i18n/versioned_docs/ja-jp/docusaurus-plugin-content-docs/current/scalardb-sql/jdbc-guide.mdx @@ -83,14 +83,14 @@ ScalarDB は JDBC で定義されているすべてのデータ型をサポー ScalarDB と JDBC 間のデータ型マッピングは次のとおりです。 | ScalarDB タイプ | JDBC (Java) タイプ | -|----------------|-----------------------| -| Boolean | boolean または Boolean | -| Int | int または Integer | -| BigInt | long または Long | -| Float | float または Float | -| Double | double または Double | -| Text | String | -| Blob | byte[] | +|--------------|-----------------------| +| BOOLEAN | boolean または Boolean | +| INT | int または Integer | +| BIGINT | long または Long | +| FLOAT | float または Float | +| DOUBLE | double または Double | +| TEXT | String | +| BLOB | byte[] | 各データ型の `java.sql.ResultSet` オブジェクトからデータを取得する方法は次のとおりです。 @@ -98,25 +98,25 @@ ScalarDB と JDBC 間のデータ型マッピングは次のとおりです。 try (ResultSet resultSet = ...) { resultSet.next(); - // Get a Boolean value of a column + // Get a BOOLEAN value of a column boolean booleanValue = resultSet.getBoolean(""); - // Get an Int value of a column + // Get an INT value of a column int intValue = resultSet.getInt(""); - // Get a BigInt value of a column + // Get a BIGINT value of a column long bigIntValue = resultSet.getLong(""); - // Get a Float value of a column + // Get a FLOAT value of a column float floatValue = resultSet.getFloat(""); - // Get a Double value of a column + // Get a DOUBLE value of a column double doubleValue = resultSet.getDouble(""); - // Get a Text value of a column + // Get a TEXT value of a column String textValue = resultSet.getString(""); - // Get a Blob value of a column + // Get a BLOB value of a column byte[] blobValue = resultSet.getBytes(""); } ``` @@ -125,26 +125,26 @@ try (ResultSet resultSet = ...) { ```java try (PreparedStatement preparedStatement = ...) { - // Set a Boolean value as parameter - preparedStatement.setBoolean(1, ); + // Set a BOOLEAN value as parameter + preparedStatement.setBoolean(1, ); - // Set an Int value as parameter - preparedStatement.setInt(2, ); + // Set an INT value as parameter + preparedStatement.setInt(2, ); - // Set a BigInt value as parameter - preparedStatement.setLong(3, ); + // Set a BIGINT value as parameter + preparedStatement.setLong(3, ); - // Set a Float value as parameter - preparedStatement.setFloat(4, ); + // Set a FLOAT value as parameter + preparedStatement.setFloat(4, ); - // Set a Double value as parameter - preparedStatement.setDouble(5, ); + // Set a DOUBLE value as parameter + preparedStatement.setDouble(5, ); - // Set a Text value as parameter - preparedStatement.setString(7, ""); + // Set a TEXT value as parameter + preparedStatement.setString(7, ""); - // Set a Blob value as parameter - preparedStatement.setBytes(8, ); + // Set a BLOB value as parameter + preparedStatement.setBytes(8, ); preparedStatement.execute(); } diff --git a/i18n/versioned_docs/ja-jp/docusaurus-plugin-content-docs/current/scalardb-sql/sql-api-guide.mdx b/i18n/versioned_docs/ja-jp/docusaurus-plugin-content-docs/current/scalardb-sql/sql-api-guide.mdx index 1f3c6225..3f939f74 100644 --- a/i18n/versioned_docs/ja-jp/docusaurus-plugin-content-docs/current/scalardb-sql/sql-api-guide.mdx +++ b/i18n/versioned_docs/ja-jp/docusaurus-plugin-content-docs/current/scalardb-sql/sql-api-guide.mdx @@ -154,35 +154,35 @@ ColumnDefinitions columnDefinitions = resultSet.getColumnDefinitions(); 次のように、`getXXX("")` メソッドまたは `getXXX()` メソッド (XXX は型名) を使用して結果の列値を取得できます。 ```java -// Get a Boolean value of a column +// Get a BOOLEAN value of a column boolean booleanValueGottenByName = record.getBoolean(""); boolean booleanValueGottenByIndex = record.getBoolean(); -// Get an Int value of a column +// Get an INT value of a column int intValueGottenByName = record.getInt(""); int intValueGottenByIndex = record.getInt(); -// Get a BigInt value of a column +// Get a BIGINT value of a column long bigIntValueGottenByName = record.getBigInt(""); long bigIntValueGottenByIndex = record.getBigInt(); -// Get a Float value of a column +// Get a FLOAT value of a column float floatValueGottenByName = record.getFloat(""); float floatValueGottenByIndex = record.getFloat(); -// Get a Double value of a column +// Get a DOUBLE value of a column double doubleValueGottenByName = record.getDouble(""); double doubleValueGottenByIndex = record.getDouble(); -// Get a Text value of a column +// Get a TEXT value of a column String textValueGottenByName = record.getText(""); String textValueGottenByIndex = record.getText(); -// Get a Blob value of a column (as a ByteBuffer) +// Get a BLOB value of a column (as a ByteBuffer) ByteBuffer blobValueGottenByName = record.getBlob(""); ByteBuffer blobValueGottenByIndex = record.getBlob(); -// Get a Blob value of a column as a byte array +// Get a BLOB value of a column as a byte array byte[] blobValueAsBytesGottenByName = record.getBlobAsBytes(""); byte[] blobValueAsBytesGottenByIndex = record.getBlobAsBytes(); ```