Package 

Class DateTypeManager

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      KClass<Date> getTargetType() Target data type covered by the current manager.
      TypeManagerContext getTargetContext() Normally type managers are bound to particular type (targetType property).
      Date maybeParse(String rawValue) Tries to parse value of the target type from its given string representation.
      • Methods inherited from class tech.harmonysoft.oss.common.type.TypeManager

        areEqual, compareTo
      • Methods inherited from class java.lang.Object

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

      • getTargetContext

         TypeManagerContext getTargetContext()

        Normally type managers are bound to particular type (targetType property). However, sometimes that is not enough. Consider, for example String - normally we use it as-is but for SQL context we want to parse values like 'value' as value (strip single quotes).

        So, normally all objects which implement this interface should have unique combination of targetType and this property

      • maybeParse

         Date maybeParse(String rawValue)

        Tries to parse value of the target type from its given string representation.