Uses of Class
org.jdbi.v3.core.statement.StatementContext
Packages that use StatementContext
Package
Description
The
argument classes translate Java types into JDBC parameters.mappers take the JDBC ResultSet and produce Java results.mapper.reflect provides RowMappers that reflectively
construct result types using techniques like constructor injection
or JavaBeans setters.result provides the streaming interface that reads rows from JDBC
and drives the mapper and collector processes to
produce results.
The
statement package provides most of the Fluent API
to drive statement execution.freemarker provides advanced string template processing.joda-time provides improved date and time types to pre-Java 8 applications.
The
jpa plugin provides minimal support for discovering JPA
annotations like Column.
The
postgres plugin provides improved support for
java.time, hstore, uuid, and enum
types when configured with a recent Postgres database server.stringtemplate4 provides advanced string template processing
that Jdbi can drive with the statement's bound parameters
and context to drive statement generation that may need to bind
variable number of parameters or other advanced use cases.-
Uses of StatementContext in org.jdbi.v3.commonstext
Methods in org.jdbi.v3.commonstext with parameters of type StatementContextModifier and TypeMethodDescriptionStringSubstitutorTemplateEngine.render(String template, StatementContext ctx) -
Uses of StatementContext in org.jdbi.v3.core.argument
Methods in org.jdbi.v3.core.argument with parameters of type StatementContextModifier and TypeMethodDescriptionvoidArgument.apply(int position, PreparedStatement statement, StatementContext ctx) Apply the argument to the given prepared statement.voidCharacterStreamArgument.apply(int position, PreparedStatement statement, StatementContext ctx) voidInputStreamArgument.apply(int position, PreparedStatement statement, StatementContext ctx) voidNullArgument.apply(int position, PreparedStatement statement, StatementContext ctx) voidObjectArgument.apply(int position, PreparedStatement statement, StatementContext ctx) MapArguments.find(String name, StatementContext ctx) Deprecated.NamedArgumentFinder.find(String name, StatementContext ctx) -
Uses of StatementContext in org.jdbi.v3.core.mapper
Methods in org.jdbi.v3.core.mapper with parameters of type StatementContextModifier and TypeMethodDescriptionColumnMapper.map(ResultSet r, int columnNumber, StatementContext ctx) Map the given column of the current row of the result set to an Object.default TColumnMapper.map(ResultSet r, String columnLabel, StatementContext ctx) Map the given column of the current row of the result set to an Object.JoinRowMapper.map(ResultSet r, StatementContext ctx) MapEntryMapper.map(ResultSet rs, StatementContext ctx) MapMapper.map(ResultSet rs, StatementContext ctx) RowMapper.map(ResultSet rs, StatementContext ctx) Map the current row of the result set.default TRowViewMapper.map(ResultSet rs, StatementContext ctx) SingleColumnMapper.map(ResultSet r, StatementContext ctx) JoinRowMapper.specialize(ResultSet r, StatementContext ctx) MapEntryMapper.specialize(ResultSet rs, StatementContext ctx) MapMapper.specialize(ResultSet rs, StatementContext ctx) RowMapper.specialize(ResultSet rs, StatementContext ctx) Returns a specialized row mapper, optimized for the given result set.RowViewMapper.specialize(ResultSet rs, StatementContext ctx) -
Uses of StatementContext in org.jdbi.v3.core.mapper.reflect
Methods in org.jdbi.v3.core.mapper.reflect with parameters of type StatementContextModifier and TypeMethodDescriptionConstructorMapper.map(ResultSet rs, StatementContext ctx) FieldMapper.map(ResultSet rs, StatementContext ctx) ConstructorMapper.specialize(ResultSet rs, StatementContext ctx) FieldMapper.specialize(ResultSet rs, StatementContext ctx) -
Uses of StatementContext in org.jdbi.v3.core.result
Methods in org.jdbi.v3.core.result that return StatementContextModifier and TypeMethodDescriptionfinal StatementContextResultIterable.ResultIteratorDelegate.getContext()ResultIterator.getContext()Returns the currentStatementContext.Methods in org.jdbi.v3.core.result with parameters of type StatementContextModifier and TypeMethodDescriptionResultSetAccumulator.apply(T previous, ResultSet rs, StatementContext ctx) Extract a single row from the result set, and combine it with the accumulator to produce a result.static ResultBearingResultProducers.createResultBearing(Supplier<PreparedStatement> preparedStatementSupplier, ResultProducers.ResultSetCreator resultSetCreator, StatementContext ctx) Create aResultBearinginstance backed by aResultSet.static ResultBearingResultBearing.of(Supplier<ResultSet> resultSetSupplier, StatementContext ctx) Returns a ResultBearing backed by the given result set supplier and context.static <T> ResultIterable<T> ResultIterable.of(Supplier<ResultSet> resultSetSupplier, RowMapper<T> mapper, StatementContext ctx) Returns a ResultIterable backed by the given result set supplier, mapper, and context.ResultProducer.produce(Supplier<PreparedStatement> statementSupplier, StatementContext ctx) Produces a statement result from a lazily suppliedPreparedStatement.ResultSetScanner.scanResultSet(Supplier<ResultSet> resultSetSupplier, StatementContext ctx) Scans the lazily-suppliedResultSetinto a result.Constructors in org.jdbi.v3.core.result with parameters of type StatementContextModifierConstructorDescriptionNoResultsException(String msg, Throwable e, StatementContext ctx) NoResultsException(String msg, StatementContext ctx) ResultSetException(String msg, Exception e, StatementContext ctx) UnableToProduceResultException(Exception cause, StatementContext ctx) UnableToProduceResultException(String string, Throwable throwable, StatementContext ctx) UnableToProduceResultException(String message, StatementContext ctx) -
Uses of StatementContext in org.jdbi.v3.core.statement
Methods in org.jdbi.v3.core.statement that return StatementContextMethods in org.jdbi.v3.core.statement that return types with arguments of type StatementContextModifier and TypeMethodDescriptionDefinedAttributeTemplateEngine.parse(String template, ConfigRegistry config) default Optional<Function<StatementContext, String>> TemplateEngine.parse(String template, ConfigRegistry config) Parse a SQL template and return a parsed representation ready to apply to a statement.TemplateEngine.Parsing.parse(String template, ConfigRegistry config) Methods in org.jdbi.v3.core.statement with parameters of type StatementContextModifier and TypeMethodDescriptiondefault voidStatementCustomizer.afterExecution(PreparedStatement stmt, StatementContext ctx) This will be invoked after execution of the prepared statement, but before any results are accessed.default voidStatementCustomizer.beforeBinding(PreparedStatement stmt, StatementContext ctx) Invoked prior to applying bound parameters to thePreparedStatement.default voidStatementCustomizer.beforeExecution(PreparedStatement stmt, StatementContext ctx) Make the changes you need to inside this method.default voidStatementCustomizer.beforeTemplating(PreparedStatement stmt, StatementContext ctx) Invoked prior to using the TemplateEngine to render sql from definitions.default voidStatementContextListener.cleanableAdded(StatementContext statementContext, Cleanable cleanable) ACleanableobject was added to this context for cleanup when the context is cleaned.default voidStatementContextListener.cleanableRemoved(StatementContext statementContext, Cleanable cleanable) ACleanableobject was removed from the context.voidTimingCollector.collect(long elapsedNs, StatementContext ctx) Deprecated.default voidStatementContextListener.contextCleaned(StatementContext statementContext) AStatementContextobject was cleaned.default voidStatementContextListener.contextCreated(StatementContext statementContext) A newStatementContextis created.DefaultStatementBuilder.create(Connection conn, String sql, StatementContext ctx) Create a new DefaultStatementBuilder which will always create a new PreparedStatement from the ConnectionDefaultStatementBuilder.create(Connection conn, StatementContext ctx) StatementBuilder.create(Connection conn, String sql, StatementContext ctx) Called each time a prepared statement needs to be created.StatementBuilder.create(Connection conn, StatementContext ctx) Called each time a statement needs to be created.DefaultStatementBuilder.createCall(Connection conn, String sql, StatementContext ctx) Called each time a Callable statement needs to be createdStatementBuilder.createCall(Connection conn, String sql, StatementContext ctx) Called each time a Callable statement needs to be created.Binding.findForName(String name, StatementContext ctx2) Deprecated.don't inspect a Binding: keep your own state!voidSlf4JSqlLogger.logAfterExecution(StatementContext context) default voidSqlLogger.logAfterExecution(StatementContext context) Will be called after a query has been executed.default voidSqlLogger.logBeforeExecution(StatementContext context) Will be called before a query is executed.voidSlf4JSqlLogger.logException(StatementContext context, SQLException ex) default voidSqlLogger.logException(StatementContext context, SQLException ex) Will be called after a query has failed.ColonPrefixSqlParser.nameParameter(String rawName, StatementContext ctx) HashPrefixSqlParser.nameParameter(String rawName, StatementContext ctx) SqlParser.nameParameter(String rawName, StatementContext ctx) Convert rawName to a name as recognized by this parserCachingSqlParser.parse(String sql, StatementContext ctx) SqlParser.parse(String sql, StatementContext ctx) Parses the given SQL statement, and returns theParsedSqlfor the statement.MessageFormatTemplateEngine.render(String template, StatementContext ctx) Deprecated.NoTemplateEngine.render(String template, StatementContext ctx) default StringTemplateEngine.Parsing.render(String template, StatementContext ctx) TemplateEngine.render(String template, StatementContext ctx) Renders an SQL statement from the given template, using the statement context as needed.Constructors in org.jdbi.v3.core.statement with parameters of type StatementContextModifierConstructorDescriptionStatementException(String string, Throwable throwable, StatementContext ctx) StatementException(String message, StatementContext ctx) StatementException(Throwable cause, StatementContext ctx) UnableToCreateStatementException(String string, Throwable cause, StatementContext ctx) UnableToCreateStatementException(String string, StatementContext ctx) UnableToExecuteStatementException(String message, Throwable throwable, StatementContext ctx) UnableToExecuteStatementException(String message, StatementContext ctx) -
Uses of StatementContext in org.jdbi.v3.freemarker
Methods in org.jdbi.v3.freemarker that return types with arguments of type StatementContextModifier and TypeMethodDescriptionFreemarkerEngine.parse(String sqlTemplate, ConfigRegistry config) -
Uses of StatementContext in org.jdbi.v3.jodatime2
Methods in org.jdbi.v3.jodatime2 with parameters of type StatementContextModifier and TypeMethodDescriptionorg.joda.time.DateTimeDateTimeMapper.map(ResultSet r, int columnNumber, StatementContext ctx) -
Uses of StatementContext in org.jdbi.v3.jpa
Methods in org.jdbi.v3.jpa with parameters of type StatementContextModifier and TypeMethodDescriptionJpaMapper.map(ResultSet rs, StatementContext ctx) JpaMapper.specialize(ResultSet rs, StatementContext ctx) -
Uses of StatementContext in org.jdbi.v3.postgres
Methods in org.jdbi.v3.postgres with parameters of type StatementContext -
Uses of StatementContext in org.jdbi.v3.stringtemplate4
Methods in org.jdbi.v3.stringtemplate4 with parameters of type StatementContext
SqlLogger.logAfterExecution(org.jdbi.v3.core.statement.StatementContext)instead.