Package nl.vpro.hibernate.search
Class JsonBridge
- java.lang.Object
-
- nl.vpro.hibernate.search.JsonBridge
-
- All Implemented Interfaces:
org.hibernate.search.bridge.ParameterizedBridge
,org.hibernate.search.bridge.StringBridge
,org.hibernate.search.bridge.TwoWayStringBridge
public class JsonBridge extends Object implements org.hibernate.search.bridge.TwoWayStringBridge, org.hibernate.search.bridge.ParameterizedBridge
A straight forward bridge to store a complicated object as json in the index.- Since:
- 3.5
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_LENGTH
-
Constructor Summary
Constructors Constructor Description JsonBridge()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
getType()
String
objectToString(Object object)
void
setParameterValues(Map<String,String> parameters)
void
setType(Class<?> type)
Object
stringToObject(String stringValue)
-
-
-
Field Detail
-
MAX_LENGTH
public static final int MAX_LENGTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
stringToObject
public Object stringToObject(String stringValue)
- Specified by:
stringToObject
in interfaceorg.hibernate.search.bridge.TwoWayStringBridge
-
objectToString
public String objectToString(Object object)
- Specified by:
objectToString
in interfaceorg.hibernate.search.bridge.StringBridge
-
setParameterValues
public void setParameterValues(Map<String,String> parameters)
- Specified by:
setParameterValues
in interfaceorg.hibernate.search.bridge.ParameterizedBridge
-
getType
public Class<?> getType()
-
setType
public void setType(Class<?> type)
-
-