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
Class TwoWayString2FieldBridgeAdaptor

    java.lang.Object
      org.hibernate.search.bridge.String2FieldBridgeAdaptor
          org.hibernate.search.bridge.TwoWayString2FieldBridgeAdaptor

All Implemented Interfaces:
  FieldBridge, TwoWayFieldBridge

    public class TwoWayString2FieldBridgeAdaptor

extends String2FieldBridgeAdaptor
implements TwoWayFieldBridge

Bridge to use a TwoWayStringBridge as a TwoWayFieldBridge

Author:
  Emmanuel Bernard

Constructor Summary
`TwoWayString2FieldBridgeAdaptor(TwoWayStringBridge stringBridge)`

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 class org.hibernate.search.bridge.String2FieldBridgeAdaptor
`set`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

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

Constructor Detail

### TwoWayString2FieldBridgeAdaptor

    public TwoWayString2FieldBridgeAdaptor(TwoWayStringBridge stringBridge)

Method Detail

### objectToString

    public String objectToString(Object object)

  Description copied from interface: `TwoWayFieldBridge`
  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

  Specified by:
    `objectToString` in interface `TwoWayFieldBridge`

### get

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

  Description copied from interface: `TwoWayFieldBridge`
  build the element object from the Document The return value is the Entity id

  Specified by:
    `get` in interface `TwoWayFieldBridge`
  Parameters:
    `name` - field name
    `document` - document

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