public static class ObjectCreator.IntegerCreator extends Object implements ObjectCreator<Integer>
null is returned instead of 0; this
differs from ResultSet.getInt(int).ObjectCreator.IntegerCreator, ObjectCreator.StringCreatorINTEGER_CREATOR, STRING_CREATOR| Constructor and Description |
|---|
IntegerCreator()
Creates a new object creator that returns the integer value of the
first column of the result set.
|
IntegerCreator(int index)
Creates a new object creator that returns the integer value of the
given column.
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
createObject(ResultSet resultSet)
Creates a new object from the current row in the given result set.
|
public IntegerCreator()
public IntegerCreator(int index)
index - The index of the column to returnpublic Integer createObject(ResultSet resultSet) throws SQLException
ObjectCreatorcreateObject in interface ObjectCreator<Integer>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.