|
||||||||||
| 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()
|
|
| Method Summary | |
|---|---|
String |
objectToString(Object object)
Converts the object representation to a string. |
void |
setAppliedOnType(Class<?> returnType)
Set the return type of the bridge (the type of the field linked to the bridge). |
Enum<? extends Enum> |
stringToObject(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()
| Method Detail |
|---|
public Enum<? extends Enum> stringToObject(String stringValue)
TwoWayStringBridge
stringToObject in interface TwoWayStringBridgestringValue - The index value.
Object.public String objectToString(Object object)
StringBridge
objectToString in interface StringBridgeobject - The object to transform into a string representation.
null. It can be empty though.public void setAppliedOnType(Class<?> returnType)
AppliedOnTypeAwareBridge
setAppliedOnType in interface AppliedOnTypeAwareBridgereturnType - return type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||