Uses of Interface
org.apache.cayenne.access.translator.TranslatedStatement
Packages that use TranslatedStatement
Package
Description
Contains persistence APIs directly accessible by users.
Contains classes that make up Cayenne ORM stack.
-
Uses of TranslatedStatement in org.apache.cayenne
Methods in org.apache.cayenne that return TranslatedStatementModifier and TypeMethodDescriptionCayenneSqlException.getStatement()Returns the statement that was being executed when the failure occurred, or null if it is not known.Constructors in org.apache.cayenne with parameters of type TranslatedStatementModifierConstructorDescriptionCayenneSqlException(String message, Query query, TranslatedStatement statement, Throwable cause) Creates an exception for a failure that happened while executing the provided query and statement. -
Uses of TranslatedStatement in org.apache.cayenne.access
Methods in org.apache.cayenne.access that return TranslatedStatementMethods in org.apache.cayenne.access with parameters of type TranslatedStatementModifier and TypeMethodDescriptiondefault voidOperationObserver.nextStatement(Query query, TranslatedStatement statement) Callback invoked with the translated form of a query (its SQL and bindings) just before the statement is executed.Constructors in org.apache.cayenne.access with parameters of type TranslatedStatementModifierConstructorDescriptionOptimisticLockException(ObjectId id, DbEntity rootEntity, Map<String, ?> qualifierSnapshot, TranslatedStatement statement) -
Uses of TranslatedStatement in org.apache.cayenne.access.translator
Classes in org.apache.cayenne.access.translator that implement TranslatedStatementModifier and TypeClassDescriptionfinal recordAn immutable result of translating a batch query: the SQL String shared by all rows of the batch, and onePSBatchParameterper PreparedStatement placeholder, each carrying the values of all batch rows for its placeholder.final recordAn immutable result of translating aProcedureQueryto a stored procedure call.final recordAn immutable result of translating aSelectquery to SQL, produced bySelectTranslator.translate(Select, DbAdapter, EntityResolver).final recordA translated form of a Query used to generated PreparedStatements. -
Uses of TranslatedStatement in org.apache.cayenne.log
Methods in org.apache.cayenne.log with parameters of type TranslatedStatementModifier and TypeMethodDescriptionvoidNoopSQLLogger.logQueryError(TranslatedStatement statement, Throwable error, long durationMillis) voidSlf4jSQLLogger.logQueryError(TranslatedStatement statement, Throwable error, long durationMillis) voidSQLLogger.logQueryError(TranslatedStatement statement, Throwable error, long durationMillis) Logs, at the ERROR level, the statement that was in progress when a query exception occurred: SQL +bind:[...]+ the error message, followed by a trailingtime_ms:Nblock with the time elapsed until the failure.voidNoopSQLLogger.logSelect(TranslatedStatement statement, int rowCount, long durationMillis) voidSlf4jSQLLogger.logSelect(TranslatedStatement statement, int rowCount, long durationMillis) voidSQLLogger.logSelect(TranslatedStatement statement, int rowCount, long durationMillis) Logs the main line for a statement that returned a result set: SQL +bind:[...]+selected:N, followed by a trailingtime_ms:Nblock with the statement's execution time.voidNoopSQLLogger.logUpdate(TranslatedStatement statement, int rowCount, List<? extends Map<String, ?>> generatedKeys, long durationMillis) voidSlf4jSQLLogger.logUpdate(TranslatedStatement statement, int rowCount, List<? extends Map<String, ?>> generatedKeys, long durationMillis) voidSQLLogger.logUpdate(TranslatedStatement statement, int rowCount, List<? extends Map<String, ?>> generatedKeys, long durationMillis) Logs the main line for a statement that performed an update: SQL +bind:[...]+updated:N, optionally followed by agenerated:[...]block listing any database-generated keys, and a trailingtime_ms:Nblock with the statement's execution time.