接口 JavaSqlTypeMapper<E>

类型参数:
E - to regist java type
所有已知实现类:
AbstractBeanPropertyJavaSqlTypeMapper, AbstractGenericJavaSqlTypeMapper, AbstractJavaSqlTypeMapper, ObjectToJsonMapper

public interface JavaSqlTypeMapper<E>

SqlTypeToJavaRegister

.
  • 方法概要

    修饰符和类型 方法 说明
    E get​(java.sql.ResultSet rs, int columnIndex)
    Gets the.
    java.lang.Class<E> getJavaType​(java.sql.SQLType sqlType)
    Gets the java type.
    java.sql.SQLType getSqlType​(cn.featherfly.common.lang.GenericType<E> javaType)
    Gets the sql type.
    void set​(java.sql.PreparedStatement prep, int parameterIndex, E value)
    Sets the value.
    boolean support​(cn.featherfly.common.lang.GenericType<E> type)
    Support.
    boolean support​(java.sql.SQLType sqlType)
    Support.
  • 方法详细资料

    • support

      boolean support​(java.sql.SQLType sqlType)
      Support.
      参数:
      sqlType - the sql type
      返回:
      true, if successful
    • support

      boolean support​(cn.featherfly.common.lang.GenericType<E> type)
      Support.
      参数:
      type - the type
      返回:
      true, if successful
    • getJavaType

      java.lang.Class<E> getJavaType​(java.sql.SQLType sqlType)
      Gets the java type.
      参数:
      sqlType - the sql type
      返回:
      the java type
    • getSqlType

      java.sql.SQLType getSqlType​(cn.featherfly.common.lang.GenericType<E> javaType)
      Gets the sql type.
      参数:
      javaType - the java type
      返回:
      the sql type
    • set

      void set​(java.sql.PreparedStatement prep, int parameterIndex, E value)
      Sets the value.
      参数:
      prep - the prep
      parameterIndex - the parameter index
      value - the value
    • get

      E get​(java.sql.ResultSet rs, int columnIndex)
      Gets the.
      参数:
      rs - the rs
      columnIndex - the column index
      返回:
      the e