Class DateSqlType

  • All Implemented Interfaces:
    SQLType<java.util.Date>

    public class DateSqlType
    extends java.lang.Object
    implements SQLType<java.util.Date>

    DateSqlType class.

    Since:
    1.8.1
    Version:
    $Id: $
    Author:
    ranger
    • Constructor Summary

      Constructors 
      Constructor Description
      DateSqlType()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void bindParam​(java.sql.PreparedStatement ps, int parameterIndex, java.util.Date value)
      bindParam
      java.util.Date[] createArray​(java.util.Date value1, java.util.Date value2)
      createArray
      java.lang.String formatValue​(java.util.Date value)
      formatValue
      java.lang.String getValueAsString​(java.util.Date value)
      getValueAsString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DateSqlType

        public DateSqlType()
    • Method Detail

      • bindParam

        public void bindParam​(java.sql.PreparedStatement ps,
                              int parameterIndex,
                              java.util.Date value)
                       throws java.sql.SQLException

        bindParam

        Specified by:
        bindParam in interface SQLType<java.util.Date>
        Parameters:
        ps - a PreparedStatement object.
        parameterIndex - a int.
        value - a Date object.
        Throws:
        java.sql.SQLException - if any.
      • getValueAsString

        public java.lang.String getValueAsString​(java.util.Date value)

        getValueAsString

        Specified by:
        getValueAsString in interface SQLType<java.util.Date>
        Parameters:
        value - a Date object.
        Returns:
        a String object.
      • formatValue

        public java.lang.String formatValue​(java.util.Date value)

        formatValue

        Specified by:
        formatValue in interface SQLType<java.util.Date>
        Parameters:
        value - a Date object.
        Returns:
        a String object.
      • createArray

        public java.util.Date[] createArray​(java.util.Date value1,
                                            java.util.Date value2)

        createArray

        Specified by:
        createArray in interface SQLType<java.util.Date>
        Parameters:
        value1 - a Date object.
        value2 - a Date object.
        Returns:
        an array of Date objects.