Class DataCollectionBaseConverter<S extends DynO,T extends InsertEvent>

java.lang.Object
overit.geocallapp.wfm.core.bl.datacollection.converter.DataCollectionBaseConverter<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:
DataCollectionConverter, DataCollectionSubConverter

public abstract class DataCollectionBaseConverter<S extends DynO,T extends InsertEvent> extends Object
Base class used to build the Data Collection Converters.
Since:
13.0
GCApi:
bo
  • Field Details

    • CONNECTION_POOL_NAME

      public static final String CONNECTION_POOL_NAME
      See Also:
    • logger

      protected overit.geocallapp.wfm.util.wfmtasklog.WfmTaskLog logger
    • teacherDuty

      protected TeacherDuty teacherDuty
  • Constructor Details

    • DataCollectionBaseConverter

      public DataCollectionBaseConverter()
  • Method Details

    • getLocalizedDescription

      protected LocalizedString getLocalizedDescription(String description)
      Create a LocalizedString starting from input string
      Parameters:
      description -
      Returns:
      a LocalizedString object
    • insertConversionResult

      protected void insertConversionResult(Class<T> insertEventClass, S boConversionResult) throws DAException
      Invokes the event.
      Parameters:
      insertEventClass -
      boConversionResult -
      Throws:
      DAException
    • getTeacher

      protected Teacher getTeacher()
    • commit

      protected void commit(PoolKit poolKit) throws DAException
      Commit the transaction
      Parameters:
      poolKit - the PoolKit containing the transaction to commit
      Throws:
      DAException
    • rollback

      protected void rollback(PoolKit poolKit) throws DAException
      Rollback a transaction.
      Parameters:
      poolKit - the PoolKit containing the transaction to rollback
      Throws:
      DAException
    • setLogger

      public void setLogger(overit.geocallapp.wfm.util.wfmtasklog.WfmTaskLog logger)
      Sets the class used to log.
      Parameters:
      logger - the logger