Class ScalarHandler<T>

java.lang.Object
org.apache.commons.dbutils.handlers.ScalarHandler<T>
Type Parameters:
T - The type of the scalar
All Implemented Interfaces:
ResultSetHandler<T>

public class ScalarHandler<T> extends Object implements ResultSetHandler<T>
ResultSetHandler implementation that converts one ResultSet column into an Object. This class is thread safe.
See Also:
  • Constructor Details

    • ScalarHandler

      public ScalarHandler()
      Creates a new instance of ScalarHandler. The first column will be returned from handle().
    • ScalarHandler

      public ScalarHandler(int columnIndex)
      Creates a new instance of ScalarHandler.
      Parameters:
      columnIndex - The index of the column to retrieve from the ResultSet.
    • ScalarHandler

      public ScalarHandler(String columnName)
      Creates a new instance of ScalarHandler.
      Parameters:
      columnName - The name of the column to retrieve from the ResultSet.
  • Method Details