Class EnumTypeHandler<E extends java.lang.Enum<E>>

    • Field Detail

      • type

        private final java.lang.Class<E extends java.lang.Enum<E>> type
    • Constructor Detail

      • EnumTypeHandler

        public EnumTypeHandler​(java.lang.Class<E> type)
    • Method Detail

      • setNonNullParameter

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

        public E getNullableResult​(java.sql.ResultSet rs,
                                   java.lang.String columnName)
                            throws java.sql.SQLException
        Description copied from class: BaseTypeHandler
        Gets the nullable result.
        Specified by:
        getNullableResult in class BaseTypeHandler<E extends java.lang.Enum<E>>
        Parameters:
        rs - the rs
        columnName - Colunm name, when configuration useColumnLabel is false
        Returns:
        the nullable result
        Throws:
        java.sql.SQLException - the SQL exception
      • getNullableResult

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

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