1 56 package org.objectstyle.cayenne.distribution; 57 58 import org.objectstyle.cayenne.QueryResponse; 59 import org.objectstyle.cayenne.query.QueryExecutionPlan; 60 61 65 public class GenericQueryMessage extends AbstractMessage { 66 67 protected QueryExecutionPlan queryPlan; 68 69 public GenericQueryMessage(QueryExecutionPlan queryPlan) { 70 this.queryPlan = queryPlan; 71 } 72 73 public QueryExecutionPlan getQueryPlan() { 74 return queryPlan; 75 } 76 77 80 public Object onReceive(ClientMessageHandler handler) { 81 return handler.onGenericQuery(this); 82 } 83 84 87 public QueryResponse send(CayenneConnector connector) { 88 return (QueryResponse) send(connector, QueryResponse.class); 89 } 90 } 91 | Popular Tags |