Uses of Class
com.pyranid.StatementContext
- 
Uses of StatementContext in com.pyranid
Methods in com.pyranid that return StatementContextModifier and TypeMethodDescriptionStatementContext.Builder.build()StatementLog.getStatementContext()The SQL statement that was executed.Methods in com.pyranid with parameters of type StatementContextModifier and TypeMethodDescriptionCustomParameterBinder.bind(StatementContext<?> statementContext, PreparedStatement preparedStatement, Integer parameterIndex, Object parameter) Performs custom binding of aPreparedStatementvalue given avalueand itsindexwhenCustomParameterBinder.appliesTo(TargetType)istrue.<T> voidPreparedStatementBinder.bindParameter(StatementContext<T> statementContext, PreparedStatement preparedStatement, Integer parameterIndex, Object parameter) Binds a single parameter to a SQL prepared statement.CustomColumnMapper.map(StatementContext<?> statementContext, ResultSet resultSet, Object resultSetValue, TargetType targetType, Integer columnIndex, String columnLabel, InstanceProvider instanceProvider) Perform custom mapping of aResultSetcolumn: given aresultSetValue, optionally return an instance oftargetTypeinstead.<T> Optional<T> ResultSetMapper.map(StatementContext<T> statementContext, ResultSet resultSet, Class<T> resultSetRowType, InstanceProvider instanceProvider) Maps the current row ofresultSetto the result class indicated bystatementContext.default <T> TInstanceProvider.provide(StatementContext<T> statementContext, Class<T> instanceType) Provides an instance of the giveninstanceType.default <T extends Record>
TInstanceProvider.provideRecord(StatementContext<T> statementContext, Class<T> recordType, Object... initargs) Provides an instance of the givenrecordType.static <T> StatementLog.BuilderStatementLog.withStatementContext(StatementContext<T> statementContext) Creates aStatementLogbuilder for the givenstatementContext.