org.apache.cayenne.remote

## Class QueryMessage

- java.lang.Object
- - org.apache.cayenne.remote.QueryMessage

- All Implemented Interfaces:
    Serializable, ClientMessage

      public class QueryMessage
      extends Object
      implements ClientMessage

  A message passed to a DataChannel to request a query execution with result returned as QueryResponse.
  Since:
    1.2
  See Also:
    Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected Query` | `query`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `QueryMessage(Query query)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Query` | `getQuery()`
    `String` | `toString()` Returns a description of the type of message.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### query

          protected Query query

  - ### Constructor Detail

    - #### QueryMessage

          public QueryMessage(Query query)

  - ### Method Detail

    - #### getQuery

          public Query getQuery()

    - #### toString

          public String toString()

      Returns a description of the type of message. In this case always "Query".
      Overrides:
        `toString` in class `Object`

Copyright © 2001–2017 Apache Cayenne. All rights reserved.