@Deprecated public class JdbcConverter extends ConverterHelper
Constructor and Description |
---|
JdbcConverter()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
List<Class<?>> |
getObjectClasses(Variant source)
Deprecated.
Returns the list of object classes that can be converted from a given
variant.
|
List<VariantInfo> |
getVariants(Class<?> source)
Deprecated.
Returns the list of variants that can be converted from a given object
class.
|
float |
score(Object source,
Variant target,
Resource resource)
Deprecated.
Scores the affinity of this helper with the source class.
|
<T> float |
score(Representation source,
Class<T> target,
Resource resource)
Deprecated.
Scores the affinity of this helper with the source class.
|
<T> T |
toObject(Representation source,
Class<T> target,
Resource resource)
Deprecated.
Converts a Representation into a regular Java object.
|
Representation |
toRepresentation(Object source,
Variant target,
Resource resource)
Deprecated.
Converts a regular Java object into a Representation.
|
addObjectClass, addVariant, addVariants, getVariants, updatePreferences, updatePreferences
public List<Class<?>> getObjectClasses(Variant source)
ConverterHelper
getObjectClasses
in class ConverterHelper
source
- The source variant.public List<VariantInfo> getVariants(Class<?> source)
ConverterHelper
getVariants
in class ConverterHelper
source
- The source object class.public float score(Object source, Variant target, Resource resource)
ConverterHelper
score
in class ConverterHelper
source
- The source object to convert.target
- The expected representation metadata.resource
- The calling resource.public <T> float score(Representation source, Class<T> target, Resource resource)
ConverterHelper
score
in class ConverterHelper
source
- The source representation to convert.target
- The expected class of the Java object.resource
- The calling resource.public <T> T toObject(Representation source, Class<T> target, Resource resource) throws IOException
ConverterHelper
toObject
in class ConverterHelper
T
- The expected class of the Java object.source
- The source representation to convert.target
- The expected class of the Java object.resource
- The calling resource.IOException
public Representation toRepresentation(Object source, Variant target, Resource resource) throws IOException
ConverterHelper
toRepresentation
in class ConverterHelper
source
- The source object to convert.target
- The expected representation metadata.resource
- The calling resource.IOException
Copyright © 2005–2018. All rights reserved.