Enum Class IDBPreparedStatement.ReuseProbability

java.lang.Object
java.lang.Enum<IDBPreparedStatement.ReuseProbability>
org.eclipse.net4j.db.IDBPreparedStatement.ReuseProbability
All Implemented Interfaces:
Serializable, Comparable<IDBPreparedStatement.ReuseProbability>, Constable
Enclosing interface:
IDBPreparedStatement

public static enum IDBPreparedStatement.ReuseProbability extends Enum<IDBPreparedStatement.ReuseProbability>
An enum for the degree of probability to which a prepared statement is reused later on. This is used for managing the cache of prepared statements so that statements which are more likely reused are kept in the cache longer. Rule of thumb:
  • For global statements which are used regularly use MAX.
  • For constant object-specific statements which are used regularly use HIGH.
  • For object-specific statements which are assembled from constants which are used regularly use MEDIUM.
  • For all other dynamic statements, like queries, use LOW
Author:
Stefan Winkler