Class BeanDelegatingBinder
- All Implemented Interfaces:
IdentifierBinder,MarkerBinder,PropertyBinder,RoutingBinder,TypeBinder,ValueBinder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(IdentifierBindingContext<?> context) Binds a POJO property to a document identifier.voidbind(MarkerBindingContext context) Binds a marker to a POJO property.voidbind(PropertyBindingContext context) Binds a property to index fields.voidbind(RoutingBindingContext context) Configure the mapping of an indexed entity to an index as necessary using the givencontext.voidbind(TypeBindingContext context) Binds a type to index fields.voidbind(ValueBindingContext<?> context) Binds a value to an index field.toString()
-
Constructor Details
-
BeanDelegatingBinder
-
-
Method Details
-
toString
-
bind
Description copied from interface:TypeBinderBinds a type to index fields.The context passed in parameter provides various information about the type 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.Implementations are also expected to declare dependencies, i.e. the properties that will later be used in the
TypeBridge.write(DocumentElement, Object, TypeBridgeWriteContext)method, usingTypeBindingContext.dependencies(). Failing that, Hibernate Search will not reindex entities properly when an indexed property is modified.- Specified by:
bindin interfaceTypeBinder- Parameters:
context- A context object providing information about the type being bound, and expecting a call to one of itsbridge(...)methods.
-
bind
Description copied from interface:PropertyBinderBinds a property to index fields.The context passed in parameter provides various information about the property 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.Implementations are also expected to declare dependencies, i.e. the properties that will later be used in the
PropertyBridge.write(DocumentElement, Object, PropertyBridgeWriteContext)method, usingPropertyBindingContext.dependencies(). Failing that, Hibernate Search will not reindex entities properly when an indexed property is modified.- Specified by:
bindin interfacePropertyBinder- Parameters:
context- A context object providing information about the property being bound, and expecting a call to one of itsbridge(...)methods.
-
bind
Description copied from interface:RoutingBinderConfigure the mapping of an indexed entity to an index as necessary using the givencontext.- Specified by:
bindin interfaceRoutingBinder- Parameters:
context- A context exposing methods to configure the mapping.
-
bind
Description copied from interface:MarkerBinderBinds a marker to a POJO property.Implementations are to call one of the
marker(...)methods on the context to set the marker.- Specified by:
bindin interfaceMarkerBinder- Parameters:
context- A context object expecting a call to one of itsmarker(...)methods.
-
bind
Description copied from interface:IdentifierBinderBinds 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:
bindin interfaceIdentifierBinder- Parameters:
context- A context object providing information about the identifier being bound, and expecting a call to one of itsbridge(...)methods.
-
bind
Description copied from interface:ValueBinderBinds 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:
bindin interfaceValueBinder- Parameters:
context- A context object providing information about the value being bound, and expecting a call to one of itsbridge(...)methods.
-