Class HintValueConverter.OpenJPAEnumToInteger

  • All Implemented Interfaces:
    HintValueConverter
    Enclosing interface:
    HintValueConverter

    public static class HintValueConverter.OpenJPAEnumToInteger
    extends java.lang.Object
    implements HintValueConverter
    Converts an OpenJPA specific enum to an equivalent kernel constant.
    Author:
    Pinaki Poddar
    • Constructor Detail

      • OpenJPAEnumToInteger

        public OpenJPAEnumToInteger​(OpenJPAEnum<?> prototype)
    • Method Detail

      • convert

        public java.lang.Object convert​(java.lang.Object e)
        Description copied from interface: HintValueConverter
        Convert the user-specified value to a kernel consumable value.
        Specified by:
        convert in interface HintValueConverter
        Parameters:
        e - the user-specified value
        Returns:
        an equivalent value consumable by a kernel construct.
      • canConvert

        public boolean canConvert​(java.lang.Class<?> type)
        Description copied from interface: HintValueConverter
        Affirm if this receiver can convert the value of the given type.
        Specified by:
        canConvert in interface HintValueConverter