org.azzyzt.jee.runtime.conv
Interface ConverterRawInterface


public interface ConverterRawInterface

One of the service beans generated by Azzyzt JEE Tools, ModifyMultiBean, needs to deal with polymorphic lists of DTOs. In order to store the associated entities, ModifyMultiBean uses a MultiObjectSaver. MultiObjectSaver utilizes meta information generated by Azzyzt JEE Tools to find out about the correct class for converting between DTOs and entities. Because the information about the exact converter class to be used is only available at runtime, we need an interface common to all converters. In contrast to the normal, typed interface, this is a raw interface dealing with EntityBase, the base class common to all entities, and with Object.

See Also:
MultiObjectSaver, MultiObjectDeleter

Method Summary
 java.lang.Object fromEntityBase(EntityBase in)
           
 EntityBase fromRawDto(java.lang.Object in)
          converts a DTO to the associated entity
 

Method Detail

fromRawDto

EntityBase fromRawDto(java.lang.Object in)
                      throws EntityNotFoundException,
                             EntityInstantiationException,
                             InvalidIdException,
                             DuplicateProxyIdException,
                             InvalidProxyIdException
converts a DTO to the associated entity

Parameters:
in - a DTO
Returns:
an entity
Throws:
EntityNotFoundException
EntityInstantiationException
InvalidIdException
DuplicateProxyIdException
InvalidProxyIdException

fromEntityBase

java.lang.Object fromEntityBase(EntityBase in)