Class TimestampType

All Implemented Interfaces:
Type<Timestamp>

public class TimestampType extends AbstractDateTimeType<Timestamp>
TimestampType maps Timestamp to Timestamp on the JDBC level
Author:
tiwe
  • Constructor Details

    • TimestampType

      public TimestampType()
    • TimestampType

      public TimestampType(int type)
  • Method Details

    • getLiteral

      public String getLiteral(Timestamp value)
      Description copied from interface: Type
      Get the literal representation
      Specified by:
      getLiteral in interface Type<Timestamp>
      Overrides:
      getLiteral in class AbstractType<Timestamp>
      Parameters:
      value - value
      Returns:
      literal representation
    • getValue

      public Timestamp getValue(ResultSet rs, int startIndex) throws SQLException
      Description copied from interface: Type
      Get the object from the result set
      Parameters:
      rs - result set
      startIndex - column index in result set
      Returns:
      value
      Throws:
      SQLException
    • getReturnedClass

      public Class<Timestamp> getReturnedClass()
      Description copied from interface: Type
      Get the returned type
      Returns:
      returned class
    • setValue

      public void setValue(PreparedStatement st, int startIndex, Timestamp value) throws SQLException
      Description copied from interface: Type
      Set the object to the statement
      Parameters:
      st - statement
      startIndex - column index in statement
      value - value to be set
      Throws:
      SQLException