Class DataCollectionConverter<S extends DynO,T extends InsertEvent>

java.lang.Object
overit.geocallapp.wfm.core.bl.datacollection.converter.DataCollectionBaseConverter<S,T>
overit.geocallapp.wfm.core.bl.datacollection.converter.DataCollectionConverter<S,T>
Type Parameters:
S - must be a class representing the BO of the log table
T - must be the insert event for the log table
Direct Known Subclasses:
DataCollectionSheetConverter, DataCollectionTableNodesConverter, DataCollectionTemplateConverter, DataCollectionTemplateTypeConverter

public abstract class DataCollectionConverter<S extends DynO,T extends InsertEvent> extends DataCollectionBaseConverter<S,T>
This class is used to build the main Data Collection Converter. This class can be used to create a custom main converter.
Since:
13.0
GCApi:
bo
  • Constructor Details

    • DataCollectionConverter

      public DataCollectionConverter()
  • Method Details

    • convert

      public void convert(PoolKit poolKit, boolean isMassive) throws DAException, DAValidateException
      The main method to be invoked to start the conversion. This method manage log initialization and closure.
      Parameters:
      poolKit - the pool kit
      isMassive - the is massive
      Throws:
      DAException - the DA exception
      DAValidateException - the DA validate exception
    • initLogger

      protected void initLogger() throws DAException, DAValidateException
      Initialize the logger.
      Throws:
      DAException
      DAValidateException
    • initLogger

      protected void initLogger(Long id) throws DAException, DAValidateException
      Initializ the logger using the id in log title.
      Parameters:
      id - the unique identifier of the object to be converted
      Throws:
      DAException
      DAValidateException
    • closeLogger

      protected void closeLogger()
      Close the logger.
    • isMassive

      public Boolean isMassive()
      Return true if the converter is used in Massive mode.
      Returns:
      true if massive, false otherwise
    • setMassive

      public void setMassive(Boolean massive)
      Sets the conversion mode.
      Parameters:
      massive - the conversion mode
    • convertBody

      public abstract void convertBody(PoolKit poolKit) throws DAException, DAValidateException
      The method that contains the conversion logic.
      Parameters:
      poolKit - the pool kit
      Throws:
      DAException - the DA exception
      DAValidateException - the DA validate exception
    • getLogDescription

      public abstract String getLogDescription()
      Returns the string to be used as log title
      Returns:
      the log title