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(@NonNull StatementContext<?> statementContext, @NonNull PreparedStatement preparedStatement, @NonNull Integer parameterIndex, @NonNull Object parameter) Performs custom binding of aPreparedStatementvalue given avalueand itsindexwhenCustomParameterBinder.appliesTo(TargetType)istrue.CustomParameterBinder.bindNull(@NonNull StatementContext<?> statementContext, @NonNull PreparedStatement preparedStatement, @NonNull Integer parameterIndex, @NonNull TargetType targetType, @NonNull Integer sqlType) Performs custom binding of a null value given itsindexandtargetType.<T> voidPreparedStatementBinder.bindParameter(@NonNull StatementContext<T> statementContext, @NonNull PreparedStatement preparedStatement, @NonNull Integer parameterIndex, @NonNull Object parameter) Binds a single parameter to a SQL prepared statement.voidPreparedStatementCustomizer.customize(@NonNull StatementContext<?> statementContext, @NonNull PreparedStatement preparedStatement) Applies customization to the prepared statement before execution.CustomColumnMapper.map(@NonNull StatementContext<?> statementContext, @NonNull ResultSet resultSet, @NonNull Object resultSetValue, @NonNull TargetType targetType, @NonNull Integer columnIndex, @Nullable String columnLabel, @NonNull InstanceProvider instanceProvider) Perform custom mapping of aResultSetcolumn: given aresultSetValue, optionally return an instance oftargetTypeinstead.ResultSetMapper.map(@NonNull StatementContext<T> statementContext, @NonNull ResultSet resultSet, @NonNull Class<T> resultSetRowType, @NonNull InstanceProvider instanceProvider) Maps the current row ofresultSetto the result class indicated bystatementContext.default <T> @NonNull TInstanceProvider.provide(@NonNull StatementContext<T> statementContext, @NonNull Class<T> instanceType) Provides an instance of the giveninstanceType.InstanceProvider.provideRecord(@NonNull StatementContext<T> statementContext, @NonNull Class<T> recordType, Object @Nullable ... initargs) Provides an instance of the givenrecordType.static <T> @NonNull StatementLog.BuilderStatementLog.withStatementContext(@NonNull StatementContext<T> statementContext) Creates aStatementLogbuilder for the givenstatementContext.