@Test public void testGeographyToGeometry() throws Exception { assertTrue(DataTypeManager.transformValue(new GeographyType(new byte[0]), DataTypeManager.DefaultDataClasses.GEOMETRY) instanceof GeometryType); }
public static Object transformValue(Object value, Class<?> targetClass) throws TransformationException { if (value == null) { return value; } return transformValue(value, value.getClass(), targetClass); }
DataTypeManager { public static Object transformValue(Object value, Class<?> targetClass) throws TransformationException { if (value == null) { return value; } return transformValue(value, value.getClass(), targetClass); } }
DataTypeManager { public static Object transformValue(Object value, Class<?> targetClass) throws TransformationException { if (value == null) { return value; } return transformValue(value, value.getClass(), targetClass); } private  DataTypeManager(); }
DataTypeManager { public static Object transformValue(Object value, Class<?> targetClass) throws TransformationException { if (value == null) { return value; } return transformValue(value, value.getClass(), targetClass); } private  DataTypeManager(); static int nextPowOf2(int val); static int getTypeCode(Class<?> source); static Class<?> getClass(int code); static Set<String> getAllDataTypeNames(); static Set<Class<?>> getAllDataTypeClasses(); static Class<?> getDataTypeClass(String name); static boolean isArrayType(String name); static String getDataTypeName(Class<?> typeClass); static Class<?> determineDataTypeClass(Object value); static Transform getTransform(Class<?> sourceType, Class<?> targetType); static Transform getTransform(String sourceTypeName,
            String targetTypeName); static boolean isTransformable(Class<?> sourceType, Class<?> targetType); static boolean isTransformable(String sourceTypeName,
            String targetTypeName); static void getImplicitConversions(String type, Collection<String> result); static boolean isImplicitConversion(String srcType, String tgtType); static String getComponentType(String srcType); static boolean isExplicitConversion(String srcType, String tgtType); static boolean isLOB(Class<?> type); static boolean isLOB(String type); static Object convertToRuntimeType(Object value, boolean allConversions); static Class<?> getRuntimeType(Class<?> c); static Object transformValue(Object value, Class<?> targetClass); static Object transformValue(Object value, Class<?> sourceType,
            Class<?> targetClass); static boolean isNonComparable(String type); static void setValueCacheEnabled(boolean enabled); static final boolean isValueCacheEnabled(); @SuppressWarnings("unchecked") static final T getCanonicalValue(T value); static final String getCanonicalString(String value); static boolean isHashable(Class<?> type); static Class<?> getArrayType(Class<?> classType); static boolean hasLength(String typeName); }
DataTypeManager { public static Object transformValue(Object value, Class<?> targetClass) throws TransformationException { if (value == null) { return value; } return transformValue(value, value.getClass(), targetClass); } private  DataTypeManager(); static int nextPowOf2(int val); static int getTypeCode(Class<?> source); static Class<?> getClass(int code); static Set<String> getAllDataTypeNames(); static Set<Class<?>> getAllDataTypeClasses(); static Class<?> getDataTypeClass(String name); static boolean isArrayType(String name); static String getDataTypeName(Class<?> typeClass); static Class<?> determineDataTypeClass(Object value); static Transform getTransform(Class<?> sourceType, Class<?> targetType); static Transform getTransform(String sourceTypeName,
            String targetTypeName); static boolean isTransformable(Class<?> sourceType, Class<?> targetType); static boolean isTransformable(String sourceTypeName,
            String targetTypeName); static void getImplicitConversions(String type, Collection<String> result); static boolean isImplicitConversion(String srcType, String tgtType); static String getComponentType(String srcType); static boolean isExplicitConversion(String srcType, String tgtType); static boolean isLOB(Class<?> type); static boolean isLOB(String type); static Object convertToRuntimeType(Object value, boolean allConversions); static Class<?> getRuntimeType(Class<?> c); static Object transformValue(Object value, Class<?> targetClass); static Object transformValue(Object value, Class<?> sourceType,
            Class<?> targetClass); static boolean isNonComparable(String type); static void setValueCacheEnabled(boolean enabled); static final boolean isValueCacheEnabled(); @SuppressWarnings("unchecked") static final T getCanonicalValue(T value); static final String getCanonicalString(String value); static boolean isHashable(Class<?> type); static Class<?> getArrayType(Class<?> classType); static boolean hasLength(String typeName); static final String ARRAY_SUFFIX; static final boolean USE_VALUE_CACHE; static final boolean PAD_SPACE; static final String DEFAULT_COLLATION; static final String COLLATION_LOCALE; static final int MAX_STRING_LENGTH; static final int MAX_VARBINARY_BYTES; static final int MAX_LOB_MEMORY_BYTES; static final int MAX_TYPE_CODE; }