Class MappingReturnConverter

java.lang.Object
com.appiancorp.kougar.mapper.returns.AbstractReturnConverter
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

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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)
     
    convert(Class c_, com.appiancorp.kougar.mapper.returns.ReturnConversionMap m_)
    Deprecated.
    Converts null to a Mapping object (always returns null).
    convert(Class targetClass_, List l_, com.appiancorp.kougar.mapper.returns.ReturnConversionMap m_)
    Deprecated.
    Converts the database-format data to a Mapping 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 a Mapping object (always returns null).
      Specified by:
      convert in interface com.appiancorp.kougar.mapper.returns.FromNull
      Overrides:
      convert in class TvReturnConverter
      Parameters:
      c_ - the class to convert to
      m_ - 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 a Mapping object.
      Specified by:
      convert in interface com.appiancorp.kougar.mapper.returns.FromDictionary
      Overrides:
      convert in class TvReturnConverter
      Parameters:
      targetClass_ - the class to convert to
      l_ - the data in database format
      m_ - the return conversion map
      Returns:
      the new Mapping object
      Throws:
      com.appiancorp.kougar.mapper.exceptions.ReturnException - if anything goes wrong
    • getConversionClass

      public Class getConversionClass()
      Deprecated.
      Gets the class that it can convert to (Mapping).
      Specified by:
      getConversionClass in interface com.appiancorp.kougar.mapper.Converter
      Overrides:
      getConversionClass in class TvReturnConverter
      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