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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

          Felix Mayerhuber created issue -
          Felix Mayerhuber made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Changelog 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;)
          Resolution Fixed [ 1 ]
          Felix Mayerhuber made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Stefan Scheiber made changes -
          Workflow OpenEngSB Workflow [ 19996 ] OpenEngSB 2 Workflow [ 24122 ]
          Stefan Scheiber made changes -
          Fix Version/s openengsb-3.0.0 [ 10169 ]
          Fix Version/s framework-3.0.0 [ 10488 ]
          Stefan Scheiber made changes -
          Fix Version/s openengsb-3.0.0.M1 [ 11164 ]
          Fix Version/s openengsb-3.0.0 [ 10169 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: