Class DateTimeType

All Implemented Interfaces:
Type<org.joda.time.DateTime>

public class DateTimeType extends AbstractJodaTimeDateTimeType<org.joda.time.DateTime>
DateTimeType maps DateTime to Timestamp on the JDBC level
Author:
tiwe
  • Constructor Details

    • DateTimeType

      public DateTimeType()
    • DateTimeType

      public DateTimeType(int type)
  • Method Details

    • getLiteral

      public String getLiteral(org.joda.time.DateTime value)
      Description copied from interface: Type
      Get the literal representation
      Specified by:
      getLiteral in interface Type<org.joda.time.DateTime>
      Overrides:
      getLiteral in class AbstractType<org.joda.time.DateTime>
      Parameters:
      value - value
      Returns:
      literal representation
    • getReturnedClass

      public Class<org.joda.time.DateTime> getReturnedClass()
      Description copied from interface: Type
      Get the returned type
      Returns:
      returned class
    • getValue

      public org.joda.time.DateTime 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
    • setValue

      public void setValue(PreparedStatement st, int startIndex, org.joda.time.DateTime 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