Class QueryRequest

  • All Implemented Interfaces:
    java.lang.Runnable, java.util.concurrent.Future<java.util.List<java.lang.String[]>>, java.util.concurrent.RunnableFuture<java.util.List<java.lang.String[]>>

    public class QueryRequest
    extends java.util.concurrent.FutureTask<java.util.List<java.lang.String[]>>
    Query Request - objectified request
    Author:
    Karl Eilebrecht
    • Constructor Summary

      Constructors 
      Constructor Description
      QueryRequest​(AbstractHistoryQueryEngine engine, java.lang.String paramFirstName, java.lang.String paramLastName, java.lang.String paramBirthday)
      Creates an objectified request
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getParamBirthday()
      Returns the birthday filter
      java.lang.String getParamFirstName()
      Returns the first name filter
      java.lang.String getParamLastName()
      Returns the last name filter
      void run()  
      java.lang.String toString()  
      • Methods inherited from class java.util.concurrent.FutureTask

        cancel, get, get, isCancelled, isDone
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • QueryRequest

        public QueryRequest​(AbstractHistoryQueryEngine engine,
                            java.lang.String paramFirstName,
                            java.lang.String paramLastName,
                            java.lang.String paramBirthday)
        Creates an objectified request
        Parameters:
        engine - query engine to be used
        paramFirstName - person's first name to query for
        paramLastName - person's last name to query for
        paramBirthday - person's birthday to query for
    • Method Detail

      • getParamFirstName

        public java.lang.String getParamFirstName()
        Returns the first name filter
        Returns:
        first name to query for
      • getParamLastName

        public java.lang.String getParamLastName()
        Returns the last name filter
        Returns:
        last name to query for
      • getParamBirthday

        public java.lang.String getParamBirthday()
        Returns the birthday filter
        Returns:
        birthday to query for
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Specified by:
        run in interface java.util.concurrent.RunnableFuture<java.util.List<java.lang.String[]>>
        Overrides:
        run in class java.util.concurrent.FutureTask<java.util.List<java.lang.String[]>>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.util.concurrent.FutureTask<java.util.List<java.lang.String[]>>