Class SqlTimeTypeHandler

  • All Implemented Interfaces:
    TypeHandler<java.sql.Time>

    public class SqlTimeTypeHandler
    extends BaseTypeHandler<java.sql.Time>
    Author:
    Clinton Begin
    • Constructor Detail

      • SqlTimeTypeHandler

        public SqlTimeTypeHandler()
    • Method Detail

      • setNonNullParameter

        public void setNonNullParameter​(java.sql.PreparedStatement ps,
                                        int i,
                                        java.sql.Time parameter,
                                        JdbcType jdbcType)
                                 throws java.sql.SQLException
        Specified by:
        setNonNullParameter in class BaseTypeHandler<java.sql.Time>
        Throws:
        java.sql.SQLException
      • getNullableResult

        public java.sql.Time getNullableResult​(java.sql.ResultSet rs,
                                               java.lang.String columnName)
                                        throws java.sql.SQLException
        Specified by:
        getNullableResult in class BaseTypeHandler<java.sql.Time>
        columnName - Colunm name, when configuration useColumnLabel is false
        Throws:
        java.sql.SQLException
      • getNullableResult

        public java.sql.Time getNullableResult​(java.sql.ResultSet rs,
                                               int columnIndex)
                                        throws java.sql.SQLException
        Specified by:
        getNullableResult in class BaseTypeHandler<java.sql.Time>
        Throws:
        java.sql.SQLException
      • getNullableResult

        public java.sql.Time getNullableResult​(java.sql.CallableStatement cs,
                                               int columnIndex)
                                        throws java.sql.SQLException
        Specified by:
        getNullableResult in class BaseTypeHandler<java.sql.Time>
        Throws:
        java.sql.SQLException