Skip to content

Commit b73ab94

Browse files
committed
AUTO: Sync ScalarDB docs in English to docs site repo
1 parent 489f867 commit b73ab94

File tree

2 files changed

+36
-36
lines changed

2 files changed

+36
-36
lines changed

versioned_docs/version-3.13/scalardb-sql/jdbc-guide.mdx

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -84,39 +84,39 @@ The data type mapping between ScalarDB and JDBC is as follows:
8484

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

9595
How to get the data from a `java.sql.ResultSet` object for each data type is as follows:
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 @@ How to set the data as a parameter for each data type for a `java.sql.PreparedSt
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
}

versioned_docs/version-3.13/scalardb-sql/sql-api-guide.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,35 +151,35 @@ As mentioned, a `ResultSet` object returns `Record` objects that represent recor
151151
You can get a column value of a result with `getXXX("<column name>")` or `getXXX(<column index>)` methods (XXX is a type name) as follows:
152152

153153
```java
154-
// Get a Boolean value of a column
154+
// Get a BOOLEAN value of a column
155155
boolean booleanValueGottenByName = record.getBoolean("<column name>");
156156
boolean booleanValueGottenByIndex = record.getBoolean(<column index>);
157157

158-
// Get an Int value of a column
158+
// Get an INT value of a column
159159
int intValueGottenByName = record.getInt("<column name>");
160160
int intValueGottenByIndex = record.getInt(<column index>);
161161

162-
// Get a BigInt value of a column
162+
// Get a BIGINT value of a column
163163
long bigIntValueGottenByName = record.getBigInt("<column name>");
164164
long bigIntValueGottenByIndex = record.getBigInt(<column index>);
165165

166-
// Get a Float value of a column
166+
// Get a FLOAT value of a column
167167
float floatValueGottenByName = record.getFloat("<column name>");
168168
float floatValueGottenByIndex = record.getFloat(<column index>);
169169

170-
// Get a Double value of a column
170+
// Get a DOUBLE value of a column
171171
double doubleValueGottenByName = record.getDouble("<column name>");
172172
double doubleValueGottenByIndex = record.getDouble(<column index>);
173173

174-
// Get a Text value of a column
174+
// Get a TEXT value of a column
175175
String textValueGottenByName = record.getText("<column name>");
176176
String textValueGottenByIndex = record.getText(<column index>);
177177

178-
// Get a Blob value of a column (as a ByteBuffer)
178+
// Get a BLOB value of a column (as a ByteBuffer)
179179
ByteBuffer blobValueGottenByName = record.getBlob("<column name>");
180180
ByteBuffer blobValueGottenByIndex = record.getBlob(<column index>);
181181

182-
// Get a Blob value of a column as a byte array
182+
// Get a BLOB value of a column as a byte array
183183
byte[] blobValueAsBytesGottenByName = record.getBlobAsBytes("<column name>");
184184
byte[] blobValueAsBytesGottenByIndex = record.getBlobAsBytes(<column index>);
185185
```

0 commit comments

Comments
 (0)