Class DateKey

    • Constructor Detail

      • DateKey

        public DateKey()
        Initializes the internal key value to null.
      • DateKey

        public DateKey​(String key)
        Creates an DateKey and set its internal representation
        Parameters:
        key - the key value as String
      • DateKey

        public DateKey​(Date key)
        Creates an DateKey and set its internal representation
        Parameters:
        key - the key value
      • DateKey

        public DateKey​(DateKey key)
        Creates a DateKey that is equivalent to key.
        Parameters:
        key - the key value
    • Method Detail

      • setValue

        public void setValue​(String key)
        Sets the internal representation to a String
        Parameters:
        key - the key value
      • getJdbcType

        public int getJdbcType()
        Returns the JDBC type of the key as defined in java.sql.Types.
        Specified by:
        getJdbcType in class ObjectKey<Date>
        Returns:
        Types.TIMESTAMP.
      • toString

        public String toString()
        Get a String representation for this key.
        Overrides:
        toString in class ObjectKey<Date>
        Returns:
        a String representation of the Date or an empty String if the Date is null