1 23 24 29 30 package com.sun.jdo.api.persistence.support; 31 import java.io.Serializable ; 32 import java.util.Collection ; 33 import java.util.Map ; 34 35 54 55 public interface Query extends java.io.Serializable 56 { 57 64 void setClass(Class cls); 65 66 69 void setCandidates(Collection pcs); 70 71 77 void setFilter(String filter); 78 79 83 void declareImports(String imports); 84 85 92 void declareParameters(String parameters); 93 97 void declareVariables(String variables); 98 99 106 void setOrdering (String ordering); 107 108 117 void setResult(String result); 118 119 129 void setPrefetchEnabled(boolean prefetchEnabled); 130 131 137 void setIgnoreCache(boolean ignoreCache); 138 139 143 boolean getIgnoreCache(); 144 145 148 void compile(); 149 150 154 Object execute(); 155 156 161 Object execute(Object p1); 162 163 169 Object execute(Object p1, Object p2); 170 171 178 Object execute(Object p1, Object p2, Object p3); 179 180 185 Object executeWithMap (Map parameters); 186 187 206 Object executeWithArray (Object [] parameters); 207 208 213 PersistenceManager getPersistenceManager(); 214 } 215 216 | Popular Tags |