Package 

Class DefaultLongTypeManager

    • 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<Long> getTargetType() Target data type covered by the current manager.
      TypeManagerContext getTargetContext() Normally type managers are bound to particular type (targetType property).
      Long 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
    • Constructor Detail

      • DefaultLongTypeManager

        DefaultLongTypeManager()
    • 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

         Long maybeParse(String rawValue)

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