package io.ebeaninternal.api;
import io.ebean.ProfileLocation;
The internal ORM "query plan".
/**
* The internal ORM "query plan".
*/
public interface SpiQueryPlan {
The related entity bean type
/**
* The related entity bean type
*/
Class<?> getBeanType();
The plan name.
/**
* The plan name.
*/
String getName();
The hash for the query plan.
/**
* The hash for the query plan.
*/
String getHash();
The SQL for the query plan.
/**
* The SQL for the query plan.
*/
String getSql();
The related profile location.
/**
* The related profile location.
*/
ProfileLocation getProfileLocation();
Initiate bind capture with the give threshold.
/**
* Initiate bind capture with the give threshold.
*/
void queryPlanInit(long thresholdMicros);
Return as Database query plan.
Params: - bind – Description of the bind values used
- planString – The raw database query plan
/**
* Return as Database query plan.
*
* @param bind Description of the bind values used
* @param planString The raw database query plan
*/
SpiDbQueryPlan createMeta(String bind, String planString);
}