类 ObjectToJsonMapper<E extends java.io.Serializable>

java.lang.Object
cn.featherfly.common.db.mapping.AbstractJavaSqlTypeMapper<E>
cn.featherfly.common.db.mapping.mappers.ObjectToJsonMapper<E>
类型参数:
E - the element type
所有已实现的接口:
JavaSqlTypeMapper<E>

public class ObjectToJsonMapper<E extends java.io.Serializable>
extends AbstractJavaSqlTypeMapper<E>

ObjectToJsonMapper

.
  • 构造器概要

    构造器
    构造器 说明
    ObjectToJsonMapper​(cn.featherfly.common.lang.GenericType<E> type)
    Instantiates a new object to json mapper.
    ObjectToJsonMapper​(cn.featherfly.common.lang.GenericType<E> type, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    Instantiates a new object to json mapper.
    ObjectToJsonMapper​(java.lang.Class<E> type)
    Instantiates a new object to json mapper.
    ObjectToJsonMapper​(java.lang.Class<E> type, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    Instantiates a new object to json mapper.
  • 方法概要

    修饰符和类型 方法 说明
    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 columnIndex, E value)
    Sets the value.
    boolean support​(java.sql.SQLType sqlType)
    Support.

    从类继承的方法 cn.featherfly.common.db.mapping.AbstractJavaSqlTypeMapper

    getGenericType, getJavaType, setGenericType, support

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • ObjectToJsonMapper

      public ObjectToJsonMapper​(java.lang.Class<E> type)
      Instantiates a new object to json mapper.
      参数:
      type - the type
    • ObjectToJsonMapper

      public ObjectToJsonMapper​(java.lang.Class<E> type, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      Instantiates a new object to json mapper.
      参数:
      type - the type
      objectMapper - the object mapper
    • ObjectToJsonMapper

      public ObjectToJsonMapper​(cn.featherfly.common.lang.GenericType<E> type)
      Instantiates a new object to json mapper.
      参数:
      type - the type
    • ObjectToJsonMapper

      public ObjectToJsonMapper​(cn.featherfly.common.lang.GenericType<E> type, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      Instantiates a new object to json mapper.
      参数:
      type - the type
      objectMapper - the object mapper
  • 方法详细资料

    • support

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

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

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

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

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