Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hibernate.search.bridge
Interface TwoWayFieldBridge

All Superinterfaces:
  FieldBridge

All Known Implementing Classes:
  TwoWayString2FieldBridgeAdaptor

    public interface TwoWayFieldBridge

extends FieldBridge

A `FieldBridge` 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.

Author:
  Emmanuel Bernard

Method Summary
`java.lang.Object` | `get(java.lang.String name, org.apache.lucene.document.Document document)` Build the element object from the `Document`
`java.lang.String` | `objectToString(java.lang.Object object)` Convert the object representation to a string.

Methods inherited from interface org.hibernate.search.bridge.FieldBridge
`set`

Method Detail

### get

    java.lang.Object get(java.lang.String name,
                         org.apache.lucene.document.Document document)

  Build the element object from the `Document`

  Parameters:
    `name` - field name
    `document` - document
  Returns:
    The return value is the entity property value.

### objectToString

    java.lang.String objectToString(java.lang.Object object)

  Convert the object representation to a string.

  Parameters:
    `object` - The object to index.
  Returns:
    string (index) representationT of the specified object. Must not be `null`, but can be empty.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2010 Hibernate. All Rights Reserved.