Package org.quickperf.sql.annotation
Provides QuickPerf SQL annotations.
-
Class Summary Class Description SqlAnnotationBuilder This class helps to build SQL annotations with a global scope. -
Annotation Types Summary Annotation Type Description DisableLikeWithLeadingWildcard TheDisableLikeWithLeadingWildcard
annotation verifies that SQL statements do not contain a LIKE with a leading wildcard (% or _).DisableQueriesWithoutBindParameters TheDisableQueriesWithoutBindParameters
annotation ensures the executed queries use bind parameters.DisableSameSelects TheDisableSameSelects
annotation verifies that at least two same SELECT statements are not executed.DisableSameSelectTypesWithDifferentParamValues TheDisableSameSelectTypesWithDifferentParamValues
annotation verifies that same SELECT statements are not executed with different parameter values.DisableStatements TheDisableStatements
annotation ensuresPreparedStatement
orCallableStatement
is used to execute the queries.DisplaySql This annotation displays on the console the SQL statements produced during the test execution.DisplaySqlOfTestMethodBody TheDisplaySqlOfTestMethodBody
annotation displays on the console the SQL statements produced during the execution of the test method body.EnableLikeWithLeadingWildcard Cancels behavior ofDisableLikeWithLeadingWildcard
.EnableQueriesWithoutBindParameters Cancels behavior ofDisableQueriesWithoutBindParameters
.EnableSameSelects Cancels behavior ofDisableSameSelects
.EnableSameSelectTypesWithDifferentParamValues Cancels behavior ofDisableSameSelectTypesWithDifferentParamValues
.EnableStatements Cancels behavior ofDisableStatements
.ExpectDelete TheExpectDelete
annotation verifies the number of executed delete statements corresponds to the specified value.ExpectInsert TheExpectInsert
annotation verifies the number of executed insert statements corresponds to the specified value.ExpectJdbcBatching TheExpectJdbcBatching
annotation that insert, delete, and update statements are processed through JDBC batches ofbatchSize
elements.ExpectJdbcQueryExecution TheExpectJdbcQueryExecution
annotation verifies the number of JDBC query executions (executeQuery, executeUpdate, execute, executeLargeUpdate, executeBatch, executeLargeBatch).ExpectMaxDelete TheExpectMaxDelete
annotation verifies the number of executed delete statements is not greater than the specified value.ExpectMaxInsert TheExpectMaxInsert
annotation verifies the number of executed insert statements is not greater than the specified value.ExpectMaxJdbcQueryExecution TheExpectMaxJdbcQueryExecution
annotation verifies the maximum number of JDBC query executions (executeQuery, executeUpdate, execute, executeLargeUpdate, executeBatch, executeLargeBatch).ExpectMaxQueryExecutionTime TheExpectMaxQueryExecutionTime
annotation verifies the query execution time is not greater than the specified value.ExpectMaxSelect TheExpectMaxSelect
annotation verifies the number of executed select statements is not greater than the specified value.ExpectMaxSelectedColumn TheExpectMaxSelectedColumn
annotation verifies the number of updated columns is not greater than the specified value.ExpectMaxUpdate TheExpectMaxUpdate
annotation verifies the number of executed update statements is not greater to the specified value.ExpectMaxUpdatedColumn TheExpectMaxUpdatedColumn
annotation verifies the number of updated columns is not greater than the specified value.ExpectSelect TheExpectSelect
annotation verifies the number of executed select statements corresponds to the specified value.ExpectSelectedColumn TheExpectSelectedColumn
annotation verifies the number of updated columns corresponds to the specified value.ExpectUpdate TheExpectUpdate
annotation verifies the number of executed update statements corresponds to the specified value.ExpectUpdatedColumn TheExpectUpdatedColumn
annotation verifies the number of updated columns corresponds to the specified value.