OpenEngSB
  1. OpenEngSB
  2. OPENENGSB-3659

Introduce object for model queries instead of a hash map

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: openengsb-3.0.0.M1
    • Component/s: framework
    • Labels:
      None
    • Changelog:
      Hide
      Added new object QueryRequest which replaces the Maps in the querying methods.

      EngineeringDatabaseService:
      *) removed queryByMap method
      *) changed parameters of query method from (Map, Long) to (QueryRequest)

      QueryInterface:
      *) removed queryForModelsAtTimestamp method
      *) removed queryForModels method
      *) removed queryForModelsByQueryMapAtTimestamp method
      *) removed queryForModelsByQueryMap method
      *) removed queryForActiveModelsByQueryMap method
      *) added method with the signature (<T> List<T> query(Class<T> model, QueryRequest request); )
      *) added method with the signature (<T> List<T> queryByString(Class<T> model, String query); )
      *) added method with the signature (<T> List<T> queryByStringAndTimestamp(Class<T> model, String query, String timestamp);)
      *) added method with the signature (QueryRequest parseQueryString(String query) throws EKBException;)
      Show
      Added new object QueryRequest which replaces the Maps in the querying methods. EngineeringDatabaseService: *) removed queryByMap method *) changed parameters of query method from (Map, Long) to (QueryRequest) QueryInterface: *) removed queryForModelsAtTimestamp method *) removed queryForModels method *) removed queryForModelsByQueryMapAtTimestamp method *) removed queryForModelsByQueryMap method *) removed queryForActiveModelsByQueryMap method *) added method with the signature (<T> List<T> query(Class<T> model, QueryRequest request); ) *) added method with the signature (<T> List<T> queryByString(Class<T> model, String query); ) *) added method with the signature (<T> List<T> queryByStringAndTimestamp(Class<T> model, String query, String timestamp);) *) added method with the signature (QueryRequest parseQueryString(String query) throws EKBException;)

      Description

      In order to be able to allow a more intelligent query interface, a new object which encapsulates the parameters for a query would increase the readability and improvability

        Gliffy Diagrams

        Error rendering 'com.meetme.plugins.jira.gerrit-plugin:gerritreviewsmodule'. Please contact your JIRA administrators.

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Felix Mayerhuber
              Reporter:
              Felix Mayerhuber
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: