org.hibernate.ejb.criteria
Class ValueHandlerFactory
java.lang.Object
org.hibernate.ejb.criteria.ValueHandlerFactory
public class ValueHandlerFactory
- extends java.lang.Object
Helper for generically dealing with literal values.
- Author:
- Steve Ebersole
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isCharacter
public static boolean isCharacter(java.lang.Class type)
isCharacter
public static boolean isCharacter(java.lang.Object value)
isNumeric
public static boolean isNumeric(java.lang.Class type)
isNumeric
public static boolean isNumeric(java.lang.Object value)
convert
public static <T> T convert(java.lang.Object value,
java.lang.Class<T> targetType)
- Convert the given value into the specified target type.
- Parameters:
value - The value to converttargetType - The type to which it should be converted
- Returns:
- The converted value.
determineAppropriateHandler
public static <T> ValueHandlerFactory.ValueHandler<T> determineAppropriateHandler(java.lang.Class<T> targetType)
- Determine the appropriate
ValueHandlerFactory.ValueHandler strategy for converting a value
to the given target type
- Type Parameters:
T - parameterized type for the target type.- Parameters:
targetType - The target type (to which we want to convert values).
- Returns:
- The conversion
Copyright © 2010. All Rights Reserved.