org.hibernate.search.bridge
Interface TwoWayFieldBridge

All Superinterfaces:
FieldBridge
All Known Implementing Classes:
TwoWayString2FieldBridgeAdaptor

public interface TwoWayFieldBridge
extends FieldBridge

A FieldBrige able to convert the index representation back into an object without losing information Any bridge expected to process a document id should implement this interface EXPERIMENTAL Consider this interface as private

Author:
Emmanuel Bernard

Method Summary
 Object get(String name, org.apache.lucene.document.Document document)
          build the element object from the Document The return value is the Entity id
 String objectToString(Object object)
          convert the object representation to a String The return String must not be null, it can be empty though EXPERIMENTAL API subject to change in the future
 
Methods inherited from interface org.hibernate.search.bridge.FieldBridge
set
 

Method Detail

get

Object get(String name,
           org.apache.lucene.document.Document document)
build the element object from the Document The return value is the Entity id

Parameters:
name - field name
document - document

objectToString

String objectToString(Object object)
convert the object representation to a String The return String must not be null, it can be empty though EXPERIMENTAL API subject to change in the future