1 16 17 21 22 package javax.jdo; 23 import java.io.Serializable ; 24 import java.util.Collection ; 25 import java.util.Map ; 26 27 87 88 public interface Query extends Serializable { 89 90 103 String JDOQL = "javax.jdo.query.JDOQL"; 104 105 116 String SQL = "javax.jdo.query.SQL"; 117 118 126 void setClass(Class cls); 127 128 131 void setCandidates(Extent pcs); 132 133 136 void setCandidates(Collection pcs); 137 138 188 void setFilter(String filter); 189 190 200 void declareImports(String imports); 201 202 212 void declareParameters(String parameters); 213 214 222 void declareVariables(String variables); 223 224 240 void setOrdering(String ordering); 241 242 253 void setIgnoreCache(boolean ignoreCache); 254 255 259 boolean getIgnoreCache(); 260 261 264 void compile(); 265 266 270 Object execute(); 271 272 277 Object execute(Object p1); 278 279 285 Object execute(Object p1, Object p2); 286 287 294 Object execute(Object p1, Object p2, Object p3); 295 296 306 Object executeWithMap (Map parameters); 307 308 328 Object executeWithArray (Object [] parameters); 329 330 336 PersistenceManager getPersistenceManager(); 337 338 344 void close (Object queryResult); 345 346 352 void closeAll (); 353 354 364 void setGrouping (String group); 365 366 373 void setUnique (boolean unique); 374 375 386 void setResult (String data); 387 388 442 void setResultClass (Class cls); 443 444 457 void setRange (long fromIncl, long toExcl); 458 459 467 void addExtension (String key, Object value); 468 469 477 void setExtensions (Map extensions); 478 479 487 FetchPlan getFetchPlan (); 488 489 497 long deletePersistentAll (Object [] parameters); 498 499 507 long deletePersistentAll (Map parameters); 508 509 532 long deletePersistentAll (); 533 534 541 void setUnmodifiable(); 542 543 550 boolean isUnmodifiable(); 551 552 } 553 554 | Popular Tags |