Class MonthTypeHandler

  • All Implemented Interfaces:
    TypeHandler<java.time.Month>

    public class MonthTypeHandler
    extends BaseTypeHandler<java.time.Month>
    Since:
    3.4.5
    Author:
    Björn Raupach
    • Constructor Detail

      • MonthTypeHandler

        public MonthTypeHandler()
    • Method Detail

      • setNonNullParameter

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

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

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

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