public static class ObjectCreator.StringCreator extends Object implements ObjectCreator<String>
String from a result set.ObjectCreator.IntegerCreator, ObjectCreator.StringCreatorINTEGER_CREATOR, STRING_CREATOR| Constructor and Description |
|---|
StringCreator()
Creates a new object creator that returns the value of the result
set’s first column as a
String. |
StringCreator(int index)
Creates a new object creator that returns the value of the result
set’s given column as a
String. |
StringCreator(String fieldName)
Creates a new object creator that returns the value of the column
with the given name as a
String. |
| Modifier and Type | Method and Description |
|---|---|
String |
createObject(ResultSet resultSet)
Creates a new object from the current row in the given result set.
|
public StringCreator()
String.public StringCreator(int index)
String.index - The index of the columnpublic String createObject(ResultSet resultSet) throws SQLException
ObjectCreatorcreateObject in interface ObjectCreator<String>resultSet - The result set to create a new object fromnull if the result set is not on a valid row, i.e. if the
result set is empty or there are no more rows left in itSQLException - if an SQL error occursObjectCreator.createObject(java.sql.ResultSet)Copyright © 2026. All rights reserved.