All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ebeaninternal.server.core.OrmQueryEngine Maven / Gradle / Ivy

There is a newer version: 15.8.1
Show newest version
package io.ebeaninternal.server.core;

import io.ebean.QueryIterator;
import io.ebean.Version;
import io.ebean.bean.BeanCollection;

import java.util.List;

/**
 * The Object Relational query execution API.
 */
public interface OrmQueryEngine {

  /**
   * Execute the 'find by id' query returning a single bean.
   */
   T findId(OrmQueryRequest request);

  /**
   * Execute the findList, findSet, findMap query returning an appropriate BeanCollection.
   */
   BeanCollection findMany(OrmQueryRequest request);

  /**
   * Execute the findSingleAttributeList query.
   */
   List findSingleAttributeList(OrmQueryRequest request);

  /**
   * Execute the findVersions query.
   */
   List> findVersions(OrmQueryRequest request);

  /**
   * Execute the query using a QueryIterator.
   */
   QueryIterator findIterate(OrmQueryRequest request);

  /**
   * Execute the row count query.
   */
   int findCount(OrmQueryRequest request);

  /**
   * Execute the find id's query.
   */
   List findIds(OrmQueryRequest request);

  /**
   * Execute the query as a delete statement.
   */
   int delete(OrmQueryRequest request);

  /**
   * Execute the query as a update statement.
   */
   int update(OrmQueryRequest request);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy