Package com.avaje.ebean.event

Examples of com.avaje.ebean.event.BeanQueryAdapter


    public List<BeanQueryAdapter> getBeanQueryAdapters() {
        // add class registered BeanQueryAdapter to the
        // already created instances
        for (Class<?> cls : beanQueryAdapterList) {
            try {
                BeanQueryAdapter newInstance = (BeanQueryAdapter) cls.newInstance();
                queryAdapterInstances.add(newInstance);
            } catch (Exception e) {
                String msg = "Error creating BeanQueryAdapter " + cls;
                logger.error(msg, e);
            }
View Full Code Here


    query.convertManyFetchJoinsToQueryJoins(allowOneManyFetch, queryBatchSize);

    SpiTransaction serverTrans = (SpiTransaction) t;
    OrmQueryRequest<T> request = new OrmQueryRequest<T>(this, queryEngine, query, desc, serverTrans);

    BeanQueryAdapter queryAdapter = desc.getQueryAdapter();
    if (queryAdapter != null) {
      // adaption of the query probably based on the
      // current user
      queryAdapter.preQuery(request);
    }

    // the query hash after any tuning
    request.calculateQueryPlanHash();
View Full Code Here

     * Return the BeanPersistController for a given entity type.
     */
  public void addQueryAdapter(DeployBeanDescriptor<?> deployDesc){
   
    for (int i = 0; i < list.size(); i++) {
      BeanQueryAdapter c = list.get(i);
      if (c.isRegisterFor(deployDesc.getBeanType())){
        logger.debug("BeanQueryAdapter on[" + deployDesc.getFullName() + "] " + c.getClass().getName());
        deployDesc.addQueryAdapter(c);
      }
    }   
    }
View Full Code Here

TOP

Related Classes of com.avaje.ebean.event.BeanQueryAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.