Class MappingReturnConverter
java.lang.Object
com.appiancorp.kougar.mapper.returns.AbstractReturnConverter
com.appiancorp.suiteapi.common.NamedTypedValueReturnConverter
com.appiancorp.suiteapi.process.TvReturnConverter
com.appiancorp.suiteapi.messaging.MappingReturnConverter
- All Implemented Interfaces:
com.appiancorp.kougar.mapper.Converter
,com.appiancorp.kougar.mapper.returns.FromDictionary
,com.appiancorp.kougar.mapper.returns.FromNull
,com.appiancorp.kougar.mapper.returns.ReturnConverter
public class MappingReturnConverter
extends TvReturnConverter
implements com.appiancorp.kougar.mapper.returns.FromNull, com.appiancorp.kougar.mapper.returns.FromDictionary
Deprecated.
Return converter for converting data from the database format to a
Mapping
object. Used when data is
returned from a database API method.-
Field Summary
Fields inherited from interface com.appiancorp.kougar.mapper.Converter
NULL_DOUBLE, NULL_INTEGER, NULL_INTEGER_LONG, NULL_STRING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected TypedValue
convert
(com.appiancorp.kougar.mapper.returns.ReturnConversionMap m_, Long instanceType_, Object value) protected TypedValue
convert
(com.appiancorp.kougar.mapper.returns.ReturnConversionMap m_, Object instanceTypeObject_, Object value) Deprecated.Converts null to aMapping
object (always returnsnull
).Deprecated.Converts the database-format data to aMapping
object.Deprecated.Gets the class that it can convert to (Mapping
).Methods inherited from class com.appiancorp.suiteapi.common.NamedTypedValueReturnConverter
convert
Methods inherited from class com.appiancorp.kougar.mapper.returns.AbstractReturnConverter
convert, findInList, getClassFromString
-
Constructor Details
-
MappingReturnConverter
public MappingReturnConverter()Deprecated.
-
-
Method Details
-
convert
public Object convert(Class c_, com.appiancorp.kougar.mapper.returns.ReturnConversionMap m_) throws com.appiancorp.kougar.mapper.exceptions.ReturnException Deprecated.Converts null to aMapping
object (always returnsnull
).- Specified by:
convert
in interfacecom.appiancorp.kougar.mapper.returns.FromNull
- Overrides:
convert
in classTvReturnConverter
- Parameters:
c_
- the class to convert tom_
- the return conversion map- Returns:
null
- Throws:
com.appiancorp.kougar.mapper.exceptions.ReturnException
- if anything goes wrong
-
convert
public Object convert(Class targetClass_, List l_, com.appiancorp.kougar.mapper.returns.ReturnConversionMap m_) throws com.appiancorp.kougar.mapper.exceptions.ReturnException Deprecated.Converts the database-format data to aMapping
object.- Specified by:
convert
in interfacecom.appiancorp.kougar.mapper.returns.FromDictionary
- Overrides:
convert
in classTvReturnConverter
- Parameters:
targetClass_
- the class to convert tol_
- the data in database formatm_
- the return conversion map- Returns:
- the new
Mapping
object - Throws:
com.appiancorp.kougar.mapper.exceptions.ReturnException
- if anything goes wrong
-
getConversionClass
Deprecated.Gets the class that it can convert to (Mapping
).- Specified by:
getConversionClass
in interfacecom.appiancorp.kougar.mapper.Converter
- Overrides:
getConversionClass
in classTvReturnConverter
- Returns:
Mapping.class
-
convert
protected TypedValue convert(com.appiancorp.kougar.mapper.returns.ReturnConversionMap m_, Object instanceTypeObject_, Object value) throws InvalidTypeException - Throws:
InvalidTypeException
-
convert
protected TypedValue convert(com.appiancorp.kougar.mapper.returns.ReturnConversionMap m_, Long instanceType_, Object value) throws InvalidTypeException - Throws:
InvalidTypeException
-