132 Queries with JDOQL Query newQuery(Class cls, Collection

132 Queries with JDOQL Query newQuery(Class cls, Collection cln, String filter) Construct a new query with the specified candidate class, candidate collection, and filter expression. The collection may contain zero or more objects, all of which must be instances of the candidate class. Query newQuery(Extent cln, String filter) Construct a new query with the candidate class derived from the Extent, a candidate collection comprised of all persistent instances of the Extent, and the specified filter expression. Query newQuery(Class cls, String filter) Construct a new query with the specified candidate class and filter expression. 8.3 Query interface The object returned from the query factory methods of a persistence manager is an instance of the Query interface. The UML for the Query interface is shown in Figure 8.1. interface Query java.io.Serializable +setClass(cls:Class):void +setCandidates(pcs:Extent):void +setCandidates(pcs:Collection):void +setFilter(filter:String):void +declareImports(imports:String):void +declareParameters(parameters:String):void +declareVariables(variables:String):void +setOrdering(ordering:String):void +setIgnoreCache(ignoreCache:boolean):void +getIgnoreCache( ):boolean +compile( ):void +execute( ):Object +execute(p1:Object):Object +execute(p1:Object,p2:Object):Object +execute(p1:Object,p2:Object,p3:Object):Object +executeWithMap(parameters:Map):Object +executeWithArray(parameters:Object( )):Object +getPersistenceManager( ):PersistenceManager +close(queryResult:Object):void +closeAll( ):void Figure 8.1 UML for Query interface
Note: If you are looking for best quality webspace to host and run your tomcat application check Vision tomcat hosting services

Comments are closed.