Class DefaultEnumBridge.Binder

java.lang.Object
org.hibernate.search.mapper.pojo.bridge.builtin.impl.DefaultEnumBridge.Binder
All Implemented Interfaces:
IdentifierBinder, ValueBinder
Enclosing class:
DefaultEnumBridge<T extends Enum<T>>

public static class DefaultEnumBridge.Binder extends Object implements IdentifierBinder, ValueBinder
  • Field Details

  • Method Details

    • bind

      public void bind(IdentifierBindingContext<?> context)
      Description copied from interface: IdentifierBinder
      Binds a POJO property to a document identifier.

      The context passed in parameter provides various information about the identifier being bound. Implementations are expected to take advantage of that information and to call one of the bridge(...) methods on the context to set the bridge.

      Specified by:
      bind in interface IdentifierBinder
      Parameters:
      context - A context object providing information about the identifier being bound, and expecting a call to one of its bridge(...) methods.
    • bind

      public void bind(ValueBindingContext<?> context)
      Description copied from interface: ValueBinder
      Binds a value to an index field.

      The context passed in parameter provides various information about the value being bound. Implementations are expected to take advantage of that information and to call one of the bridge(...) methods on the context to set the bridge.

      Specified by:
      bind in interface ValueBinder
      Parameters:
      context - A context object providing information about the value being bound, and expecting a call to one of its bridge(...) methods.