Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectstyle.cayenne.access
Interface OperationHints  view OperationHints download OperationHints.java

All Known Subinterfaces:
OperationObserver
All Known Implementing Classes:
DefaultOperationObserver, org.objectstyle.cayenne.access.util.DefaultOperationObserver

public interface OperationHints

Defines an API that allows QueryEngine to obtain information about query execution. Defines query running strategies, logging, etc.


Method Summary
 org.apache.log4j.Level getLoggingLevel()
          Returns a log level level that should be used when logging query execution.
 boolean isIteratedResult()
          Returns true to indicate that any results of a select operation should be returned as a ResultIterator.
 boolean useAutoCommit()
          DataNode executing a list of statements will consult OperationHints about transactional behavior by calling this method.
 

Method Detail

getLoggingLevel

public org.apache.log4j.Level getLoggingLevel()
Returns a log level level that should be used when logging query execution.


useAutoCommit

public boolean useAutoCommit()

DataNode executing a list of statements will consult OperationHints about transactional behavior by calling this method.

  • If this method returns true, each statement in a batch will be run as a separate transaction.
  • If this method returns false, the whole batch will be wrapped in a transaction.


isIteratedResult

public boolean isIteratedResult()
Returns true to indicate that any results of a select operation should be returned as a ResultIterator. false is returned when the results are expected as a list.