Class DateLongTypeHandler

java.lang.Object
org.apache.ibatis.type.TypeReference<java.util.Date>
com.flowable.workobject.engine.impl.persistence.entity.DateLongTypeHandler
All Implemented Interfaces:
org.apache.ibatis.type.TypeHandler<java.util.Date>

public class DateLongTypeHandler
extends org.apache.ibatis.type.TypeReference<java.util.Date>
implements org.apache.ibatis.type.TypeHandler<java.util.Date>
Author:
martin.grofcik
  • Constructor Summary

    Constructors 
    Constructor Description
    DateLongTypeHandler()  
  • Method Summary

    Modifier and Type Method Description
    protected java.util.Date createDate​(long serializedDate)  
    java.util.Date getResult​(java.sql.CallableStatement callableStatement, int i)  
    java.util.Date getResult​(java.sql.ResultSet resultSet, int i)  
    java.util.Date getResult​(java.sql.ResultSet resultSet, java.lang.String columnName)  
    void setParameter​(java.sql.PreparedStatement preparedStatement, int i, java.util.Date date, org.apache.ibatis.type.JdbcType jdbcType)  

    Methods inherited from class org.apache.ibatis.type.TypeReference

    getRawType, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • setParameter

      public void setParameter​(java.sql.PreparedStatement preparedStatement, int i, java.util.Date date, org.apache.ibatis.type.JdbcType jdbcType) throws java.sql.SQLException
      Specified by:
      setParameter in interface org.apache.ibatis.type.TypeHandler<java.util.Date>
      Throws:
      java.sql.SQLException
    • getResult

      public java.util.Date getResult​(java.sql.ResultSet resultSet, java.lang.String columnName) throws java.sql.SQLException
      Specified by:
      getResult in interface org.apache.ibatis.type.TypeHandler<java.util.Date>
      Throws:
      java.sql.SQLException
    • getResult

      public java.util.Date getResult​(java.sql.ResultSet resultSet, int i) throws java.sql.SQLException
      Specified by:
      getResult in interface org.apache.ibatis.type.TypeHandler<java.util.Date>
      Throws:
      java.sql.SQLException
    • getResult

      public java.util.Date getResult​(java.sql.CallableStatement callableStatement, int i) throws java.sql.SQLException
      Specified by:
      getResult in interface org.apache.ibatis.type.TypeHandler<java.util.Date>
      Throws:
      java.sql.SQLException
    • createDate

      protected java.util.Date createDate​(long serializedDate)