Class AbstractHistoryQueryEngine

java.lang.Object
de.calamanari.pk.activeobject.AbstractHistoryQueryEngine
Direct Known Subclasses:
HistoryQueryEngineMock

public abstract class AbstractHistoryQueryEngine
extends java.lang.Object
Abstract History Query Engine - some engine that performs synchronous queries which take some time. A limitation (provider contract) shall be that only a maximum number of parallel requests are allowed to reduce load on the assumed backend system.
Author:
Karl Eilebrecht
  • Constructor Summary

    Constructors
    Constructor Description
    AbstractHistoryQueryEngine()  
  • Method Summary

    Modifier and Type Method Description
    abstract java.util.List<java.lang.String[]> queryHistoryData​(java.lang.String firstName, java.lang.String lastName, java.lang.String birthday)
    Perform a synchronous query, which may take some time.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • queryHistoryData

      public abstract java.util.List<java.lang.String[]> queryHistoryData​(java.lang.String firstName, java.lang.String lastName, java.lang.String birthday)
      Perform a synchronous query, which may take some time.
      Parameters:
      firstName - person's first name (optional)
      lastName - person's last name (optional)
      birthday - person's birthday (mandatory)
      Returns:
      data list of (String[4]=[firstName, lastName, birthday, data]) according to the query or empty list if not found