示例#1
0
 /** PUBLIC: Initialize the state of the query. */
 public DataReadQuery() {
   super();
   this.shouldMaintainCache = false;
   useAbstractRecord = true;
   setContainerPolicy(ContainerPolicy.buildPolicyFor(ClassConstants.Vector_class));
 }
示例#2
0
 /**
  * PUBLIC: Configure the query to use an instance of the specified container class to hold the
  * target objects. The container class must implement (directly or indirectly) the Collection
  * interface.
  */
 public void useCollectionClass(Class concreteClass) {
   setContainerPolicy(ContainerPolicy.buildPolicyFor(concreteClass));
 }