|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
E
- the enum type that needs to be converted.public interface OpenJPAEnum<E extends Enum<?>>
An interface to define conversion of a facade based enum to a kernel integer constant. Facade specific enums implement this interface to convert user specified string or integer.
Method Summary | |
---|---|
int |
convertToKernelConstant(int i)
Convert the given integer to an equivalent kernel constant. |
int |
convertToKernelConstant(String s)
Convert the given String to an equivalent kernel constant. |
int |
toKernelConstant()
Convert this receiver to an equivalent kernel constant. |
Method Detail |
---|
int toKernelConstant()
int convertToKernelConstant(int i)
throw
- IllegalArgumentException if no enum instance of the generic type matches the given integer.int convertToKernelConstant(String s)
throw
- IllegalArgumentException if no enum instance of the generic type matches the given String.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |