org.apache.openjpa.persistence
Class HintValueConverter.OpenJPAEnumToInteger
java.lang.Object
   org.apache.openjpa.persistence.HintValueConverter.OpenJPAEnumToInteger
org.apache.openjpa.persistence.HintValueConverter.OpenJPAEnumToInteger
- All Implemented Interfaces: 
- HintValueConverter
- Enclosing interface:
- HintValueConverter
- public static class HintValueConverter.OpenJPAEnumToInteger 
- extends Object- implements HintValueConverter
Converts an OpenJPA specific enum to an equivalent kernel constant.
- Author:
- Pinaki Poddar
 
 
 
| Method Summary | 
|  boolean | canConvert(Class<?> type)Affirm if this receiver can convert the value of the given type.
 | 
|  Object | convert(Object e)Convert the user-specified value to a kernel consumable value.
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
HintValueConverter.OpenJPAEnumToInteger
public HintValueConverter.OpenJPAEnumToInteger(OpenJPAEnum<?> prototype)
convert
public Object convert(Object e)
- Description copied from interface: HintValueConverter
- Convert the user-specified value to a kernel consumable value.
 
- 
- Specified by:
- convertin interface- HintValueConverter
 
- 
- Parameters:
- e- the user-specified value
- Returns:
- an equivalent value consumable by a kernel construct.
 
canConvert
public boolean canConvert(Class<?> type)
- Description copied from interface: HintValueConverter
- Affirm if this receiver can convert the value of the given type.
 
- 
- Specified by:
- canConvertin interface- HintValueConverter
 
- 
 
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.