Class RowView

  • Direct Known Subclasses:
    RowViewImpl

    public abstract class RowView
    extends java.lang.Object
    A RowView is an accessor for ResultSet that uses RowMapper or ColumnMapper to extract values. It is not valid outside the scope of the method that receives it.
    • Constructor Summary

      Constructors 
      Constructor Description
      RowView()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T getColumn​(int column, java.lang.Class<T> type)
      Use a column mapper to extract a type from the current ResultSet row.
      java.lang.Object getColumn​(int column, java.lang.reflect.Type type)
      Use a column mapper to extract a type from the current ResultSet row.
      <T> T getColumn​(int column, GenericType<T> type)
      Use a column mapper to extract a type from the current ResultSet row.
      abstract <T> T getColumn​(int column, QualifiedType<T> type)
      Use a qualified column mapper to extract a type from the current ResultSet row.
      <T> T getColumn​(java.lang.String column, java.lang.Class<T> type)
      Use a column mapper to extract a type from the current ResultSet row.
      java.lang.Object getColumn​(java.lang.String column, java.lang.reflect.Type type)
      Use a column mapper to extract a type from the current ResultSet row.
      <T> T getColumn​(java.lang.String column, GenericType<T> type)
      Use a column mapper to extract a type from the current ResultSet row.
      abstract <T> T getColumn​(java.lang.String column, QualifiedType<T> type)
      Use a qualified column mapper to extract a type from the current ResultSet row.
      <T> T getRow​(java.lang.Class<T> rowType)
      Use a row mapper to extract a type from the current ResultSet row.
      abstract java.lang.Object getRow​(java.lang.reflect.Type type)
      Use a row mapper to extract a type from the current ResultSet row.
      <T> T getRow​(GenericType<T> rowType)
      Use a row mapper to extract a type from the current ResultSet row.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RowView

        public RowView()
    • Method Detail

      • getRow

        public <T> T getRow​(java.lang.Class<T> rowType)
        Use a row mapper to extract a type from the current ResultSet row.
        Type Parameters:
        T - the type to map
        Parameters:
        rowType - the Class of the type
        Returns:
        the materialized T
      • getRow

        public <T> T getRow​(GenericType<T> rowType)
        Use a row mapper to extract a type from the current ResultSet row.
        Type Parameters:
        T - the type to map
        Parameters:
        rowType - the GenericType of the type
        Returns:
        the materialized T
      • getRow

        public abstract java.lang.Object getRow​(java.lang.reflect.Type type)
        Use a row mapper to extract a type from the current ResultSet row.
        Parameters:
        type - the type to map
        Returns:
        the materialized object
      • getColumn

        public <T> T getColumn​(java.lang.String column,
                               java.lang.Class<T> type)
        Use a column mapper to extract a type from the current ResultSet row.
        Type Parameters:
        T - the type to map
        Parameters:
        column - the column name
        type - the Class of the type
        Returns:
        the materialized T
      • getColumn

        public <T> T getColumn​(int column,
                               java.lang.Class<T> type)
        Use a column mapper to extract a type from the current ResultSet row.
        Type Parameters:
        T - the type to map
        Parameters:
        column - the column index
        type - the Class of the type
        Returns:
        the materialized T
      • getColumn

        public <T> T getColumn​(java.lang.String column,
                               GenericType<T> type)
        Use a column mapper to extract a type from the current ResultSet row.
        Type Parameters:
        T - the type to map
        Parameters:
        column - the column name
        type - the GenericType of the type
        Returns:
        the materialized T
      • getColumn

        public abstract <T> T getColumn​(int column,
                                        QualifiedType<T> type)
        Use a qualified column mapper to extract a type from the current ResultSet row.
        Type Parameters:
        T - the type to map
        Parameters:
        column - the column index
        type - the QualifiedType of the type
        Returns:
        the materialized T
      • getColumn

        public abstract <T> T getColumn​(java.lang.String column,
                                        QualifiedType<T> type)
        Use a qualified column mapper to extract a type from the current ResultSet row.
        Type Parameters:
        T - the type to map
        Parameters:
        column - the column name
        type - the QualifiedType of the type
        Returns:
        the materialized T
      • getColumn

        public <T> T getColumn​(int column,
                               GenericType<T> type)
        Use a column mapper to extract a type from the current ResultSet row.
        Type Parameters:
        T - the type to map
        Parameters:
        column - the column index
        type - the GenericType of the type
        Returns:
        the materialized T
      • getColumn

        public java.lang.Object getColumn​(java.lang.String column,
                                          java.lang.reflect.Type type)
        Use a column mapper to extract a type from the current ResultSet row.
        Parameters:
        column - the column name
        type - the Type of the type
        Returns:
        the materialized object
      • getColumn

        public java.lang.Object getColumn​(int column,
                                          java.lang.reflect.Type type)
        Use a column mapper to extract a type from the current ResultSet row.
        Parameters:
        column - the column name
        type - the Class of the type
        Returns:
        the materialized object