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