|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 TwoWayStringBridge
stringValue
- The index value.
Object
.public String objectToString(Object object)
StringBridge
objectToString
in interface StringBridge
object
- The object to transform into a string representation.
null
. It can be empty though.public void setAppliedOnType(Class<?> returnType)
AppliedOnTypeAwareBridge
setAppliedOnType
in interface AppliedOnTypeAwareBridge
returnType
- return type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |