|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.search.bridge.builtin.EnumBridge
public class EnumBridge
Map an Enum field
| Constructor Summary | |
|---|---|
EnumBridge(java.lang.Class<? extends java.lang.Enum> clazz)
|
|
| Method Summary | |
|---|---|
java.lang.String |
objectToString(java.lang.Object object)
Converts the object representation to a string. |
java.lang.Enum<? extends java.lang.Enum> |
stringToObject(java.lang.String stringValue)
Convert the index string representation to an object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnumBridge(java.lang.Class<? extends java.lang.Enum> clazz)
clazz - the class of the enum.| Method Detail |
|---|
public java.lang.Enum<? extends java.lang.Enum> stringToObject(java.lang.String stringValue)
TwoWayStringBridge
stringToObject in interface TwoWayStringBridgestringValue - The index value.
Object.public java.lang.String objectToString(java.lang.Object object)
StringBridge
objectToString in interface StringBridgeobject - The object to transform into a string representation.
null. It can be empty though.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||