Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- ACQUIRE_CONNECTION - Enum constant in enum class com.pyranid.MetricsCollector.PhysicalTransactionBeginFailurePhase
-
Connection acquisition from the configured
DataSourcefailed. - addPostTransactionOperation(Consumer) - Method in class com.pyranid.Transaction
-
Adds an operation to the list of operations to be executed when the transaction completes.
- ambiguousTimestampBindingStrategy(AmbiguousTimestampBindingStrategy) - Method in class com.pyranid.Database.Builder
-
Configures how Pyranid binds
InstantandOffsetDateTimeparameters when JDBC parameter metadata cannot identify whether the target isTIMESTAMPorTIMESTAMP WITH TIME ZONE. - AmbiguousTimestampBindingStrategy - Enum Class in com.pyranid
-
Controls how
InstantandOffsetDateTimeparameters are bound when JDBCParameterMetaDatacannot identify whether the target column isTIMESTAMPorTIMESTAMP WITH TIME ZONE. - appliesTo(TargetType) - Method in interface com.pyranid.CustomColumnMapper
-
Specifies which types this mapper should handle.
- appliesTo(TargetType) - Method in interface com.pyranid.CustomParameterBinder
-
Specifies which types this custom binder should handle.
- arrayOf(Class, Object) - Static method in class com.pyranid.Parameters
-
Acquires a parameter of array type, preserving element type information so it is accessible at runtime.
- arrayOf(Class, E[]) - Static method in class com.pyranid.Parameters
-
Acquires a parameter of array type, preserving element type information so it is accessible at runtime.
B
- batchChunkSize(Integer) - Method in interface com.pyranid.Query
-
Configures the maximum number of parameter groups to send in each JDBC batch execution.
- batchSize(Integer) - Method in class com.pyranid.StatementLog.Builder
-
Specifies the size of the batch operation.
- BINARY - Enum constant in enum class com.pyranid.JsonParameter.BindingPreference
-
Prefer a binary/native JSON type when available (for example,
JSONBfor PostgreSQL), otherwise falls back toJsonParameter.BindingPreference.TEXT. - bind(StatementContext, PreparedStatement, Integer, Object) - Method in interface com.pyranid.CustomParameterBinder
-
Performs custom binding of a
PreparedStatementvalue given avalueand itsindexwhenCustomParameterBinder.appliesTo(TargetType)istrue. - bind(String, Object) - Method in interface com.pyranid.Query
-
Binds a named parameter to a value.
- bindAll(Map) - Method in interface com.pyranid.Query
-
Binds all entries from the given map as named parameters.
- bindNull(StatementContext, PreparedStatement, Integer, TargetType, Integer) - Method in interface com.pyranid.CustomParameterBinder
-
Performs custom binding of a null value given its
indexandtargetType. - bindParameter(StatementContext, PreparedStatement, Integer, Object) - Method in interface com.pyranid.PreparedStatementBinder
-
Binds a single parameter to a SQL prepared statement.
- build() - Method in class com.pyranid.Database.Builder
- build() - Method in class com.pyranid.ResultSetMapper.Builder
-
Constructs a default
ResultSetMapperinstance. - build() - Method in class com.pyranid.StatementContext.Builder
- build() - Method in class com.pyranid.StatementLog.Builder
-
Constructs a
StatementLoginstance. - build() - Method in class com.pyranid.TransactionOptions.Builder
-
Builds transaction options.
C
- CALLBACK_FAILURE - Enum constant in enum class com.pyranid.MetricsCollector.StreamTerminalOutcome
-
The caller-provided stream callback failed.
- com.pyranid - package com.pyranid
-
This package contains the set of all Pyranid types.
- COMMITTED - Enum constant in enum class com.pyranid.MetricsCollector.TransactionClosureOutcome
-
The transaction used a physical JDBC transaction and commit completed normally.
- COMMITTED - Enum constant in enum class com.pyranid.TransactionResult
-
Commit completed successfully.
- COMPLETED_NORMALLY - Enum constant in enum class com.pyranid.MetricsCollector.StreamTerminalOutcome
-
Stream iteration reached the end of the result set and cleanup completed without an iteration or callback failure.
- connectionAcquisitionDuration(Duration) - Method in class com.pyranid.StatementLog.Builder
-
Specifies how long it took to acquire a
Connectionfrom theDataSource. - connectionReleaseFailuresStatementScope() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
connectionReleaseFailuresStatementScoperecord component. - connectionReleaseFailuresTransactionScope() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
connectionReleaseFailuresTransactionScoperecord component. - connectionsAcquiredStatementScope() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
connectionsAcquiredStatementScoperecord component. - connectionsAcquiredTransactionScope() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
connectionsAcquiredTransactionScoperecord component. - connectionsFailedStatementScope() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
connectionsFailedStatementScoperecord component. - connectionsFailedTransactionScope() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
connectionsFailedTransactionScoperecord component. - createSavepoint() - Method in class com.pyranid.Transaction
-
Creates a transaction savepoint that can be rolled back to via
Transaction.rollback(Savepoint). - currentTransaction() - Method in class com.pyranid.Database
-
Gets a reference to the current transaction, if any.
- CustomColumnMapper - Interface in com.pyranid
-
Enables per-column
ResultSetmapping customization viaResultSetMapper. - CustomColumnMapper.MappingResult - Class in com.pyranid
-
Result of a custom column mapping attempt.
- customColumnMappers(List) - Method in class com.pyranid.ResultSetMapper.Builder
-
Specifies a
Listof custom column-specific mapping logic to apply, in priority order. - customize(PreparedStatementCustomizer) - Method in interface com.pyranid.Query
-
Customizes the
PreparedStatementbefore execution. - customize(StatementContext, PreparedStatement) - Method in interface com.pyranid.PreparedStatementCustomizer
-
Applies customization to the prepared statement before execution.
- CustomParameterBinder - Interface in com.pyranid
-
Enables
PreparedStatementparameter binding customization viaPreparedStatementBinder. - CustomParameterBinder.BindingResult - Class in com.pyranid
-
Result of a custom parameter binding attempt.
D
- Database - Class in com.pyranid
-
Main class for performing database access operations.
- Database.Builder - Class in com.pyranid
-
Builder used to construct instances of
Database. - DatabaseColumn - Annotation Interface in com.pyranid
-
Allows specification of alternate column names for resultset mapping.
- DatabaseException - Exception Class in com.pyranid
-
Thrown when an error occurs when interacting with a
Database. - DatabaseException(String) - Constructor for exception class com.pyranid.DatabaseException
-
Creates a
DatabaseExceptionwith the givenmessage. - DatabaseException(String, Throwable) - Constructor for exception class com.pyranid.DatabaseException
-
Creates a
DatabaseExceptionwhich wraps the givencause. - DatabaseException(Throwable) - Constructor for exception class com.pyranid.DatabaseException
-
Creates a
DatabaseExceptionwhich wraps the givencause. - DatabaseMetaDataReader - Interface in com.pyranid
-
Functional interface used by
Database.readDatabaseMetaData(DatabaseMetaDataReader), which permits callers to examine a transientDatabaseMetaDatainstance. - databaseType(DatabaseType) - Method in class com.pyranid.Database.Builder
-
Overrides automatic database type detection.
- DatabaseType - Enum Class in com.pyranid
-
Identifies different types of databases, which allows for special platform-specific handling.
- deadlock() - Static method in interface com.pyranid.RetryPolicy.Condition
-
Creates a condition that retries deadlocks.
- DEFAULT - Enum constant in enum class com.pyranid.TransactionIsolation
-
Default isolation (DBMS-specific).
- DEFAULT_PLAN_CACHE_CAPACITY - Static variable in interface com.pyranid.ResultSetMapper
-
Default maximum number of cached row-mapping plans per result class.
- DEFAULT_PREFERRED_COLUMN_MAPPER_CACHE_CAPACITY - Static variable in interface com.pyranid.ResultSetMapper
-
Default maximum number of cached preferred custom column mappers per source class.
- delayAfterFailedAttempt(Integer, DatabaseException) - Method in interface com.pyranid.RetryPolicy.Backoff
-
Determines how long to wait after a failed attempt before the next retry.
- didAcquireStatementConnection(StatementContext, Duration) - Method in interface com.pyranid.MetricsCollector
-
Called after Pyranid successfully acquires a statement-scoped
Connection. - didAcquireTransactionConnection(Transaction, DatabaseType, Duration) - Method in interface com.pyranid.MetricsCollector
-
Called after Pyranid successfully acquires the JDBC connection backing a physical transaction.
- didBeginPhysicalTransaction(Transaction, TransactionIsolation, DatabaseType) - Method in interface com.pyranid.MetricsCollector
-
Called after Pyranid successfully begins a physical JDBC transaction.
- didCloseStream(StatementContext, MetricsCollector.StreamTerminalOutcome, Long, Duration, Throwable) - Method in interface com.pyranid.MetricsCollector
-
Called after an opened stream reaches a terminal state.
- didCommitPhysicalTransaction(Transaction, DatabaseType, Duration) - Method in interface com.pyranid.MetricsCollector
-
Called after Pyranid successfully commits a physical JDBC transaction.
- didCreateSavepoint(Transaction, DatabaseType) - Method in interface com.pyranid.MetricsCollector
-
Called after Pyranid successfully creates a transaction savepoint.
- didEnterTransactionClosure(Transaction, TransactionIsolation, DatabaseType) - Method in interface com.pyranid.MetricsCollector
-
Called when Pyranid enters a closure-based transaction.
- didExecuteStatement(StatementContext, StatementLog, StatementResult) - Method in interface com.pyranid.MetricsCollector
-
Called after Pyranid successfully executes a statement.
- didExitTransactionClosure(Transaction, MetricsCollector.TransactionClosureOutcome, DatabaseType, Duration, Throwable) - Method in interface com.pyranid.MetricsCollector
-
Called when Pyranid exits a closure-based transaction.
- didFailToAcquireStatementConnection(StatementContext, DatabaseType, Duration, Throwable) - Method in interface com.pyranid.MetricsCollector
-
Called after Pyranid fails to acquire a statement-scoped
Connection. - didFailToAcquireTransactionConnection(Transaction, DatabaseType, Duration, Throwable) - Method in interface com.pyranid.MetricsCollector
-
Called after Pyranid fails to acquire the JDBC connection backing a physical transaction.
- didFailToBeginPhysicalTransaction(Transaction, TransactionIsolation, MetricsCollector.PhysicalTransactionBeginFailurePhase, DatabaseType, Throwable) - Method in interface com.pyranid.MetricsCollector
-
Called after Pyranid fails while beginning a physical JDBC transaction.
- didFailToCommitPhysicalTransaction(Transaction, DatabaseType, Duration, Throwable) - Method in interface com.pyranid.MetricsCollector
-
Called after Pyranid fails to commit a physical JDBC transaction.
- didFailToExecuteStatement(StatementContext, StatementLog, DatabaseType, Throwable) - Method in interface com.pyranid.MetricsCollector
-
Called after Pyranid fails to execute a statement.
- didFailToOpenStream(StatementContext, DatabaseType, Duration, Throwable) - Method in interface com.pyranid.MetricsCollector
-
Called after Pyranid fails to open a streaming statement.
- didFailToReleaseStatementConnection(StatementContext, Duration, Throwable) - Method in interface com.pyranid.MetricsCollector
-
Called after Pyranid fails to release a statement-scoped
Connection. - didFailToReleaseTransactionConnection(Transaction, DatabaseType, Duration, Throwable) - Method in interface com.pyranid.MetricsCollector
-
Called after Pyranid fails to release the JDBC connection backing a physical transaction.
- didFailToRollbackPhysicalTransaction(Transaction, DatabaseType, Duration, Throwable) - Method in interface com.pyranid.MetricsCollector
-
Called after Pyranid fails to roll back a physical JDBC transaction.
- didOpenStream(StatementContext, Duration) - Method in interface com.pyranid.MetricsCollector
-
Called after Pyranid successfully opens a streaming statement.
- didReleaseSavepoint(Transaction, DatabaseType) - Method in interface com.pyranid.MetricsCollector
-
Called after Pyranid successfully releases a transaction savepoint.
- didReleaseStatementConnection(StatementContext, Duration) - Method in interface com.pyranid.MetricsCollector
-
Called after Pyranid successfully releases a statement-scoped
Connection. - didReleaseTransactionConnection(Transaction, DatabaseType, Duration) - Method in interface com.pyranid.MetricsCollector
-
Called after Pyranid successfully releases the JDBC connection backing a physical transaction.
- didRollbackPhysicalTransaction(Transaction, DatabaseType, Duration) - Method in interface com.pyranid.MetricsCollector
-
Called after Pyranid successfully rolls back a physical JDBC transaction.
- didRollbackToSavepoint(Transaction, DatabaseType) - Method in interface com.pyranid.MetricsCollector
-
Called after Pyranid successfully rolls back to a transaction savepoint.
- didRunPostTransactionOperation(Transaction, TransactionResult, DatabaseType, Duration, Throwable) - Method in interface com.pyranid.MetricsCollector
-
Called after a post-transaction operation runs.
- disabledInstance() - Static method in interface com.pyranid.MetricsCollector
-
Returns the shared no-op metrics collector.
E
- EARLY_CLOSE - Enum constant in enum class com.pyranid.MetricsCollector.StreamTerminalOutcome
-
The stream was closed before all rows were consumed.
- empty() - Static method in record class com.pyranid.StatementResult
-
A singleton result for statements with no row-count information.
- equals(Object) - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class com.pyranid.Statement
- equals(Object) - Method in class com.pyranid.StatementContext
- equals(Object) - Method in class com.pyranid.StatementLog
- equals(Object) - Method in record class com.pyranid.StatementResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class com.pyranid.TransactionOptions
- exception(Exception) - Method in class com.pyranid.StatementLog.Builder
-
Specifies the exception that occurred during SQL statement execution.
- execute() - Method in interface com.pyranid.Query
-
Executes a DML statement (INSERT, UPDATE, DELETE) with no resultset.
- executeBatch(List) - Method in interface com.pyranid.Query
-
Executes a DML statement in batch over groups of named parameters.
- executeForList(Class) - Method in interface com.pyranid.Query
-
Executes a DML statement that returns multiple rows (for example, with PostgreSQL/SQLite/MariaDB
RETURNINGor SQL ServerOUTPUT). - executeForObject(Class) - Method in interface com.pyranid.Query
-
Executes a DML statement that returns a single row (for example, with PostgreSQL/SQLite/MariaDB
RETURNINGor SQL ServerOUTPUT). - executeReturningGeneratedKey(Class) - Method in interface com.pyranid.Query
-
Executes a DML statement and maps a single JDBC-generated key row.
- executeReturningGeneratedKey(Class, String...) - Method in interface com.pyranid.Query
-
Executes a DML statement and maps a single JDBC-generated key row.
- executeReturningGeneratedKeys(Class) - Method in interface com.pyranid.Query
-
Executes a DML statement and maps all JDBC-generated key rows.
- executeReturningGeneratedKeys(Class, String...) - Method in interface com.pyranid.Query
-
Executes a DML statement and maps all JDBC-generated key rows.
- executionDuration(Duration) - Method in class com.pyranid.StatementLog.Builder
-
Specifies how long it took to execute a SQL statement.
- exponential(Duration, Duration) - Static method in interface com.pyranid.RetryPolicy.Backoff
-
Creates an exponential backoff.
F
- FAILED - Enum constant in enum class com.pyranid.MetricsCollector.TransactionClosureOutcome
-
The transaction failed before Pyranid could report a normal commit or rollback outcome.
- fallback() - Static method in class com.pyranid.CustomColumnMapper.MappingResult
-
Indicates that this mapper did not map a custom value and prefers to fall back to the behavior of the registered
ResultSetMapper. - fallback() - Static method in class com.pyranid.CustomParameterBinder.BindingResult
-
Indicates that this mapper did not bind a custom value and prefers to fall back to the behavior of the registered
PreparedStatementBinder. - fetchList(Class) - Method in interface com.pyranid.Query
-
Executes the query and returns all results as a list.
- fetchObject(Class) - Method in interface com.pyranid.Query
-
Executes the query and returns a single result.
- fetchSize(Integer) - Method in class com.pyranid.Database.Builder
-
Configures a database-wide JDBC fetch size default.
- fetchSize(Integer) - Method in interface com.pyranid.Query
-
Configures the JDBC fetch size for this query.
- fetchStream(Class, Function) - Method in interface com.pyranid.Query
- fixed(Duration) - Static method in interface com.pyranid.RetryPolicy.Backoff
-
Creates a fixed backoff.
- fromConnection(Connection) - Static method in enum class com.pyranid.DatabaseType
-
Determines the type of database represented by the given
connection. - fromDataSource(DataSource) - Static method in enum class com.pyranid.DatabaseType
-
Determines the type of database to which the given
dataSourceconnects.
G
- GENERIC - Enum constant in enum class com.pyranid.DatabaseType
-
A database which requires no special handling.
- getAmbiguousTimestampBindingStrategy() - Method in class com.pyranid.Database
-
How should Pyranid bind
InstantandOffsetDateTimeparameters when JDBC parameter metadata cannot identify whether the target isTIMESTAMPorTIMESTAMP WITH TIME ZONE? - getAmbiguousTimestampBindingStrategy() - Method in class com.pyranid.StatementContext
-
How should Pyranid bind
InstantandOffsetDateTimeparameters when JDBC parameter metadata cannot identify whether the target isTIMESTAMPorTIMESTAMP WITH TIME ZONE? - getArrayComponentType() - Method in interface com.pyranid.TargetType
- getAttemptCount() - Method in class com.pyranid.TransactionRetryResult
-
Gets the number of transaction attempts, including the successful final attempt.
- getBackoff() - Method in class com.pyranid.RetryPolicy
-
Gets the retry backoff.
- getBaseTypeName() - Method in interface com.pyranid.SqlArrayParameter
-
Gets the element type of this SQL ARRAY, which corresponds to the value of
java.sql.Array#getBaseTypeName()and is database-specific. - getBatchSize() - Method in class com.pyranid.StatementLog
-
The size of the batch operation.
- getBindingPreference() - Method in interface com.pyranid.JsonParameter
-
Gets how the JSON should be bound (automatic, binary, text).
- getColumn() - Method in exception class com.pyranid.DatabaseException
- getCondition() - Method in class com.pyranid.RetryPolicy
-
Gets the retry condition.
- getConnectionAcquisitionDuration() - Method in class com.pyranid.StatementLog
-
How long did it take to acquire a
Connectionfrom theDataSource? - getConstraint() - Method in exception class com.pyranid.DatabaseException
- getDatabaseType() - Method in class com.pyranid.Database
-
Gets the database type for this database.
- getDatabaseType() - Method in class com.pyranid.StatementContext
-
Gets the database type for this statement.
- getDatatype() - Method in exception class com.pyranid.DatabaseException
- getDbmsMessage() - Method in exception class com.pyranid.DatabaseException
- getDetail() - Method in exception class com.pyranid.DatabaseException
- getElements() - Method in interface com.pyranid.InListParameter
-
Gets the elements to be expanded into SQL
INlist placeholders. - getElements() - Method in interface com.pyranid.SqlArrayParameter
-
Gets the elements of this SQL ARRAY.
- getElements() - Method in interface com.pyranid.VectorParameter
-
Gets the elements of this vector.
- getErrorCode() - Method in exception class com.pyranid.DatabaseException
-
Shorthand for
SQLException.getErrorCode()if this exception was caused by aSQLException. - getException() - Method in class com.pyranid.StatementLog
-
The exception that occurred during SQL statement execution.
- getExecutionDuration() - Method in class com.pyranid.StatementLog
-
How long did it take to execute the SQL statement?
- getExplicitType() - Method in interface com.pyranid.TypedParameter
-
Gets the full type information for this parameter, including how it's parameterized.
- getFailures() - Method in class com.pyranid.TransactionRetryResult
-
Gets the failed attempts that were retried before the transaction eventually succeeded.
- getFile() - Method in exception class com.pyranid.DatabaseException
- getHint() - Method in exception class com.pyranid.DatabaseException
- getId() - Method in class com.pyranid.Statement
- getInternalPosition() - Method in exception class com.pyranid.DatabaseException
- getInternalQuery() - Method in exception class com.pyranid.DatabaseException
- getIsolation() - Method in class com.pyranid.TransactionOptions
-
Gets the transaction isolation level.
- getJson() - Method in interface com.pyranid.JsonParameter
-
Gets the "stringified" JSON.
- getLine() - Method in exception class com.pyranid.DatabaseException
- getListElementType() - Method in interface com.pyranid.TargetType
- getMapKeyType() - Method in interface com.pyranid.TargetType
- getMapValueType() - Method in interface com.pyranid.TargetType
- getMask() - Method in interface com.pyranid.SecureParameter
-
Gets the safe display value Pyranid should render in diagnostics.
- getMaxAttempts() - Method in class com.pyranid.RetryPolicy
-
Gets the total number of attempts, including the initial attempt.
- getMetricsCollector() - Method in class com.pyranid.Database
- getParameterRedactor() - Method in class com.pyranid.Database
-
Gets the configured redactor used for non-secure parameters in diagnostics.
- getParameters() - Method in class com.pyranid.StatementContext
- getPosition() - Method in exception class com.pyranid.DatabaseException
- getPostTransactionOperations() - Method in class com.pyranid.Transaction
-
Gets an unmodifiable list of post-transaction operations.
- getPreparationDuration() - Method in class com.pyranid.StatementLog
-
How long did it take to bind data to the
PreparedStatement? - getRawClass() - Method in interface com.pyranid.TargetType
-
Raw class, with erasure (
List.classforList<UUID>, etc.) - getReadOnly() - Method in class com.pyranid.TransactionOptions
-
Gets the read-only setting to apply, if any.
- getRedactedParameters() - Method in class com.pyranid.StatementContext
-
Gets this statement's parameters rendered for diagnostics.
- getResultSetMappingDuration() - Method in class com.pyranid.StatementLog
-
How long did it take to extract data from the
ResultSet? - getResultSetRowType() - Method in class com.pyranid.StatementContext
- getRoutine() - Method in exception class com.pyranid.DatabaseException
- getSchema() - Method in exception class com.pyranid.DatabaseException
- getSetElementType() - Method in interface com.pyranid.TargetType
- getSeverity() - Method in exception class com.pyranid.DatabaseException
- getSql() - Method in class com.pyranid.Statement
- getSqlState() - Method in exception class com.pyranid.DatabaseException
-
Shorthand for
SQLException.getSQLState()if this exception was caused by aSQLException. - getStatement() - Method in class com.pyranid.StatementContext
- getStatementContext() - Method in class com.pyranid.StatementLog
-
The SQL statement that was executed.
- getTable() - Method in exception class com.pyranid.DatabaseException
- getTimeZone() - Method in class com.pyranid.Database
- getTimeZone() - Method in class com.pyranid.StatementContext
- getTotalDuration() - Method in class com.pyranid.StatementLog
-
How long did it take to perform the database operation in total?
- getTransactionIsolation() - Method in class com.pyranid.Transaction
-
Get the isolation level for this transaction.
- getTransactionOptions() - Method in class com.pyranid.Transaction
-
Gets the options used to create this transaction.
- getTransactionResult() - Method in exception class com.pyranid.PostTransactionOperationException
- getType() - Method in interface com.pyranid.TargetType
-
The original reflective type (
Class,ParameterizedType, etc.) - getTypeArguments() - Method in interface com.pyranid.TargetType
-
All type arguments wrapped (empty for raw/non-parameterized).
- getValue() - Method in interface com.pyranid.SecureParameter
-
Gets the value to bind.
- getValue() - Method in class com.pyranid.TransactionRetryResult
-
Gets the value returned by the successful transaction attempt.
- getValue() - Method in interface com.pyranid.TypedParameter
-
Gets the value of this parameter.
- getWhere() - Method in exception class com.pyranid.DatabaseException
H
- handled() - Static method in class com.pyranid.CustomParameterBinder.BindingResult
-
Indicates that this mapper successfully bound a custom value.
- hashCode() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns a hash code value for this object.
- hashCode() - Method in class com.pyranid.Statement
- hashCode() - Method in class com.pyranid.StatementContext
- hashCode() - Method in class com.pyranid.StatementLog
- hashCode() - Method in record class com.pyranid.StatementResult
-
Returns a hash code value for this object.
- hashCode() - Method in class com.pyranid.TransactionOptions
I
- id(Object) - Method in interface com.pyranid.Query
-
Associates an identifier with this query for logging/diagnostics.
- IN_DOUBT - Enum constant in enum class com.pyranid.TransactionResult
-
Pyranid attempted to commit the transaction, but the commit call failed, so the final database outcome is unknown.
- inList(boolean[]) - Static method in class com.pyranid.Parameters
-
Acquires a parameter for SQL
INlist expansion using aboolean[]array. - inList(byte[]) - Static method in class com.pyranid.Parameters
-
Acquires a parameter for SQL
INlist expansion using abyte[]array. - inList(char[]) - Static method in class com.pyranid.Parameters
-
Acquires a parameter for SQL
INlist expansion using achar[]array. - inList(double[]) - Static method in class com.pyranid.Parameters
-
Acquires a parameter for SQL
INlist expansion using adouble[]array. - inList(float[]) - Static method in class com.pyranid.Parameters
-
Acquires a parameter for SQL
INlist expansion using afloat[]array. - inList(int[]) - Static method in class com.pyranid.Parameters
-
Acquires a parameter for SQL
INlist expansion using anint[]array. - inList(long[]) - Static method in class com.pyranid.Parameters
-
Acquires a parameter for SQL
INlist expansion using along[]array. - inList(short[]) - Static method in class com.pyranid.Parameters
-
Acquires a parameter for SQL
INlist expansion using ashort[]array. - inList(E[]) - Static method in class com.pyranid.Parameters
-
Acquires a parameter for SQL
INlist expansion using a Java array. - inList(Collection) - Static method in class com.pyranid.Parameters
-
Acquires a parameter for SQL
INlist expansion using aCollection. - InListParameter - Interface in com.pyranid
-
Encapsulates a parameter intended for SQL
INlist expansion. - inMemoryInstance() - Static method in interface com.pyranid.MetricsCollector
-
Creates a fresh in-memory counter collector.
- instanceProvider(InstanceProvider) - Method in class com.pyranid.Database.Builder
- InstanceProvider - Interface in com.pyranid
-
Contract for a factory that creates instances given a type.
- isArray() - Method in interface com.pyranid.TargetType
- isDeadlock() - Method in exception class com.pyranid.DatabaseException
-
Determines if this exception is recognized as a deadlock.
- isForeignKeyViolation() - Method in exception class com.pyranid.DatabaseException
-
Determines if this exception is recognized as a foreign-key violation.
- isList() - Method in interface com.pyranid.TargetType
- isMap() - Method in interface com.pyranid.TargetType
- isolation(TransactionIsolation) - Method in class com.pyranid.TransactionOptions.Builder
-
Configures the transaction isolation level.
- isRollbackOnly() - Method in class com.pyranid.Transaction
-
Should this transaction be rolled back upon completion?
- isSerializationFailure() - Method in exception class com.pyranid.DatabaseException
-
Determines if this exception is recognized as a serialization failure.
- isSet() - Method in interface com.pyranid.TargetType
- isTimeout() - Method in exception class com.pyranid.DatabaseException
-
Determines if this exception is recognized as a timeout or cancellation.
- isTransient() - Method in exception class com.pyranid.DatabaseException
-
Determines if this exception is recognized as transient.
- isUniqueConstraintViolation() - Method in exception class com.pyranid.DatabaseException
-
Determines if this exception is recognized as a unique constraint violation.
- ITERATION_FAILURE - Enum constant in enum class com.pyranid.MetricsCollector.StreamTerminalOutcome
-
Result-set iteration failed while the stream was open.
J
- json(String) - Static method in class com.pyranid.Parameters
-
Acquires a JSON parameter for "stringified" JSON, using
JsonParameter.BindingPreference.BINARY. - json(String, JsonParameter.BindingPreference) - Static method in class com.pyranid.Parameters
-
Acquires a JSON parameter for "stringified" JSON.
- JsonParameter - Interface in com.pyranid
-
Encapsulates
PreparedStatementparameter data meant to be bound to a DBMS-specific type (for example,JSONorJSONBfor PostgreSQL) byPreparedStatementBinder. - JsonParameter.BindingPreference - Enum Class in com.pyranid
-
Specifies how a
JsonParametershould be bound: binary (for example,JSONBfor PostgreSQL), or text.
L
- listOf(Class, List) - Static method in class com.pyranid.Parameters
-
Acquires a parameter of type
List, preserving type information so it is accessible at runtime. - log(StatementLog) - Method in interface com.pyranid.StatementLogger
-
Performs a logging operation on the given
statementLog.
M
- map(StatementContext, ResultSet, Object, TargetType, Integer, String, InstanceProvider) - Method in interface com.pyranid.CustomColumnMapper
-
Perform custom mapping of a
ResultSetcolumn: given aresultSetValue, optionally return an instance oftargetTypeinstead. - map(StatementContext, ResultSet, Class, InstanceProvider) - Method in interface com.pyranid.ResultSetMapper
-
Maps the current row of
resultSetto the result class indicated bystatementContext. - mapOf(Class, Class, Map) - Static method in class com.pyranid.Parameters
-
Acquires a parameter of type
Map, preserving key and value type information so they are accessible at runtime. - MARIA_DB - Enum constant in enum class com.pyranid.DatabaseType
-
A MariaDB database.
- matchesClass(Class) - Method in interface com.pyranid.TargetType
- matchesParameterizedType(Class, Class...) - Method in interface com.pyranid.TargetType
-
Does this instance match the given raw class and its parameterized type arguments?
- maxRows(Integer) - Method in class com.pyranid.Database.Builder
-
Configures a database-wide JDBC maximum row count default.
- maxRows(Integer) - Method in interface com.pyranid.Query
-
Configures the JDBC maximum row count for this query.
- metricsCollector(MetricsCollector) - Method in class com.pyranid.Database.Builder
-
Configures the metrics collector for the
Databasebeing built. - MetricsCollector - Interface in com.pyranid
-
Contract for collecting operational metrics from Pyranid.
- MetricsCollector.PhysicalTransactionBeginFailurePhase - Enum Class in com.pyranid
-
Physical transaction begin phase that failed.
- MetricsCollector.Snapshot - Record Class in com.pyranid
-
Counter snapshot for collectors that support in-process inspection.
- MetricsCollector.StreamTerminalOutcome - Enum Class in com.pyranid
-
Terminal outcome for an opened stream.
- MetricsCollector.TransactionClosureOutcome - Enum Class in com.pyranid
-
Logical outcome for a closure-based transaction.
- MYSQL - Enum constant in enum class com.pyranid.DatabaseType
-
A MySQL database.
N
- NO_PHYSICAL_TX - Enum constant in enum class com.pyranid.MetricsCollector.TransactionClosureOutcome
-
The transaction closure exited without ever acquiring a JDBC connection.
- none() - Static method in interface com.pyranid.ParameterRedactor
-
Acquires the default redactor, which renders non-secure values verbatim for non-batch executions.
- normalizationLocale(Locale) - Method in class com.pyranid.ResultSetMapper.Builder
-
Specifies the locale to use when massaging JDBC column names for matching against Java property names.
O
- of(Object, String) - Static method in class com.pyranid.Statement
-
Factory method for providing
Statementinstances. - of(Object) - Static method in class com.pyranid.CustomColumnMapper.MappingResult
-
Indicates a successfully-mapped custom value.
- of(Type) - Static method in interface com.pyranid.TargetType
- ofMaxAttempts(Integer, RetryPolicy.Backoff, RetryPolicy.Condition) - Static method in class com.pyranid.RetryPolicy
-
Creates a retry policy.
- ofRowsAffected(Long) - Static method in record class com.pyranid.StatementResult
-
Creates a result with affected-row information.
- ofRowsReturned(Long) - Static method in record class com.pyranid.StatementResult
-
Creates a result with returned-row information.
- OPEN_FAILURE - Enum constant in enum class com.pyranid.MetricsCollector.StreamTerminalOutcome
-
The stream failed before it opened.
- ORACLE - Enum constant in enum class com.pyranid.DatabaseType
-
An Oracle database.
P
- parameterRedactor(ParameterRedactor) - Method in class com.pyranid.Database.Builder
-
Configures the redactor used for non-secure parameters in diagnostics.
- ParameterRedactor - Interface in com.pyranid
-
Converts non-secure bound parameter values into safe display values for diagnostics.
- parameters(Object...) - Method in class com.pyranid.StatementContext.Builder
- parameters(List) - Method in class com.pyranid.StatementContext.Builder
- Parameters - Class in com.pyranid
-
Fluent interface for acquiring instances of specialized parameter types.
- parsedSqlCacheCapacity(Integer) - Method in class com.pyranid.Database.Builder
-
Configures the size of the parsed SQL cache.
- participate(Transaction, ReturningTransactionalOperation) - Method in class com.pyranid.Database
-
Performs an operation in the context of a pre-existing transaction, optionally returning a value.
- participate(Transaction, TransactionalOperation) - Method in class com.pyranid.Database
-
Performs an operation in the context of a pre-existing transaction.
- perform() - Method in interface com.pyranid.ReturningTransactionalOperation
-
Executes a transactional operation.
- perform() - Method in interface com.pyranid.TransactionalOperation
-
Executes a transactional operation.
- perform(Connection) - Method in interface com.pyranid.RawConnectionOperation
-
Performs raw JDBC work with the provided connection.
- performHealthCheck(Duration) - Method in class com.pyranid.Database
-
Performs a portable connectivity check using JDBC
Connection.isValid(int). - physicalTransactionsBeginFailed() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
physicalTransactionsBeginFailedrecord component. - physicalTransactionsBegun() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
physicalTransactionsBegunrecord component. - physicalTransactionsCommitFailed() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
physicalTransactionsCommitFailedrecord component. - physicalTransactionsCommitted() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
physicalTransactionsCommittedrecord component. - physicalTransactionsRollbackFailed() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
physicalTransactionsRollbackFailedrecord component. - physicalTransactionsRolledBack() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
physicalTransactionsRolledBackrecord component. - planCacheCapacity(Integer) - Method in class com.pyranid.ResultSetMapper.Builder
-
Specifies the maximum number of row-mapping plans to cache per result class when plan caching is enabled.
- planCachingEnabled(Boolean) - Method in class com.pyranid.ResultSetMapper.Builder
-
Specifies whether an internal "mapping plan" cache should be used to speed up
ResultSetmapping. - POSTGRESQL - Enum constant in enum class com.pyranid.DatabaseType
-
A PostgreSQL database.
- PostTransactionOperationException - Exception Class in com.pyranid
-
Thrown when a post-transaction operation fails.
- PostTransactionOperationException(TransactionResult, Throwable) - Constructor for exception class com.pyranid.PostTransactionOperationException
-
Creates a
PostTransactionOperationExceptionfor a failed post-transaction operation. - postTransactionOperationsFailed() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
postTransactionOperationsFailedrecord component. - postTransactionOperationsRun() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
postTransactionOperationsRunrecord component. - preferredColumnMapperCacheCapacity(Integer) - Method in class com.pyranid.ResultSetMapper.Builder
-
Specifies the maximum number of cached preferred custom column mappers per source class.
- preparationDuration(Duration) - Method in class com.pyranid.StatementLog.Builder
-
Specifies how long it took to bind data to a
PreparedStatement. - preparedStatementBinder(PreparedStatementBinder) - Method in class com.pyranid.Database.Builder
- PreparedStatementBinder - Interface in com.pyranid
-
Contract for binding parameters to SQL prepared statements.
- PreparedStatementCustomizer - Interface in com.pyranid
-
Customizes a
PreparedStatementbefore execution. - provide(StatementContext, Class) - Method in interface com.pyranid.InstanceProvider
-
Provides an instance of the given
instanceType. - provideRecord(StatementContext, Class, Object...) - Method in interface com.pyranid.InstanceProvider
-
Provides an instance of the given
recordType. - Pyranid is a zero-dependency JDBC interface for modern Java applications. - Section in Overview
Q
- query(String) - Method in class com.pyranid.Database
-
Creates a fluent builder for executing SQL.
- Query - Interface in com.pyranid
-
Fluent builder for SQL statements.
- queryTimeout(Duration) - Method in class com.pyranid.Database.Builder
-
Configures a database-wide JDBC query timeout default.
- queryTimeout(Duration) - Method in interface com.pyranid.Query
-
Configures the JDBC query timeout for this query.
R
- RawConnectionOperation<T> - Interface in com.pyranid
-
Performs raw JDBC work with a
Connectionmanaged byDatabase.useRawConnection(RawConnectionOperation). - read(DatabaseMetaData) - Method in interface com.pyranid.DatabaseMetaDataReader
-
Examines a JDBC
DatabaseMetaData, which provides comprehensive vendor-specific information about this database as a whole. - READ_COMMITTED - Enum constant in enum class com.pyranid.TransactionIsolation
-
Maps to JDBC value
Connection.TRANSACTION_READ_COMMITTED. - READ_INITIAL_AUTOCOMMIT - Enum constant in enum class com.pyranid.MetricsCollector.PhysicalTransactionBeginFailurePhase
-
Reading the connection's initial autocommit setting failed.
- READ_INITIAL_ISOLATION - Enum constant in enum class com.pyranid.MetricsCollector.PhysicalTransactionBeginFailurePhase
-
Reading the connection's initial transaction isolation failed.
- READ_INITIAL_READ_ONLY - Enum constant in enum class com.pyranid.MetricsCollector.PhysicalTransactionBeginFailurePhase
-
Reading the connection's initial read-only setting failed.
- READ_UNCOMMITTED - Enum constant in enum class com.pyranid.TransactionIsolation
-
Maps to JDBC value
Connection.TRANSACTION_READ_UNCOMMITTED. - readDatabaseMetaData(DatabaseMetaDataReader) - Method in class com.pyranid.Database
-
Exposes a temporary handle to JDBC
DatabaseMetaData, which provides comprehensive vendor-specific information about this database as a whole. - readOnly(Boolean) - Method in class com.pyranid.TransactionOptions.Builder
-
Configures the transaction read-only setting.
- redactAll() - Static method in interface com.pyranid.ParameterRedactor
-
Acquires a redactor that masks every non-secure value as
<redacted>. - redactParameter(StatementContext, int, Object) - Method in interface com.pyranid.ParameterRedactor
-
Redacts a single non-secure parameter for diagnostics.
- releaseSavepoint(Savepoint) - Method in class com.pyranid.Transaction
-
Releases the provided transaction savepoint.
- removePostTransactionOperation(Consumer) - Method in class com.pyranid.Transaction
-
Removes an operation from the list of operations to be executed when the transaction completes.
- REPEATABLE_READ - Enum constant in enum class com.pyranid.TransactionIsolation
-
Maps to JDBC value
Connection.TRANSACTION_REPEATABLE_READ. - reset() - Method in interface com.pyranid.MetricsCollector
-
Best-effort reset for test and ad-hoc use.
- resultSetMapper(ResultSetMapper) - Method in class com.pyranid.Database.Builder
- ResultSetMapper - Interface in com.pyranid
-
Contract for mapping a
ResultSetrow to the specified type. - ResultSetMapper.Builder - Class in com.pyranid
-
Builder used to construct a standard implementation of
ResultSetMapper. - resultSetMappingDuration(Duration) - Method in class com.pyranid.StatementLog.Builder
-
Specifies how long it took to extract data from a
ResultSet. - resultSetRowType(Class) - Method in class com.pyranid.StatementContext.Builder
- RetryPolicy - Class in com.pyranid
-
Defines when and how
Database.transactionWithRetry(RetryPolicy, TransactionalOperation)retries a transaction. - RetryPolicy.Backoff - Interface in com.pyranid
-
Determines how long to wait before retrying after a failed transaction attempt.
- RetryPolicy.Condition - Interface in com.pyranid
-
Determines whether a failed transaction attempt should be retried.
- ReturningTransactionalOperation<T> - Interface in com.pyranid
-
Represents a transactional operation capable of returning a value.
- rollback(Savepoint) - Method in class com.pyranid.Transaction
-
Rolls back to the provided transaction savepoint.
- ROLLED_BACK - Enum constant in enum class com.pyranid.MetricsCollector.TransactionClosureOutcome
-
The transaction used a physical JDBC transaction and rollback completed normally.
- ROLLED_BACK - Enum constant in enum class com.pyranid.TransactionResult
-
Pyranid did not attempt to commit the transaction.
- rowsAffected() - Method in record class com.pyranid.StatementResult
-
Returns the value of the
rowsAffectedrecord component. - rowsReturned() - Method in record class com.pyranid.StatementResult
-
Returns the value of the
rowsReturnedrecord component.
S
- savepointsCreated() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
savepointsCreatedrecord component. - savepointsReleased() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
savepointsReleasedrecord component. - savepointsRolledBack() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
savepointsRolledBackrecord component. - secure(Object) - Static method in class com.pyranid.Parameters
-
Acquires a secure parameter with the default
<redacted>diagnostics mask. - secure(Object, String) - Static method in class com.pyranid.Parameters
-
Acquires a secure parameter with a custom diagnostics mask.
- SecureParameter - Interface in com.pyranid
-
Wraps a bound parameter value so Pyranid can mask it in diagnostics while still binding the underlying value normally.
- SERIALIZABLE - Enum constant in enum class com.pyranid.TransactionIsolation
-
Maps to JDBC value
Connection.TRANSACTION_SERIALIZABLE. - serializationFailure() - Static method in interface com.pyranid.RetryPolicy.Condition
-
Creates a condition that retries serialization failures.
- serializationFailureOrDeadlock() - Static method in interface com.pyranid.RetryPolicy.Condition
-
Creates a condition that retries serialization failures and deadlocks.
- SET_AUTOCOMMIT_FALSE - Enum constant in enum class com.pyranid.MetricsCollector.PhysicalTransactionBeginFailurePhase
-
Disabling autocommit for the transaction failed.
- SET_ISOLATION - Enum constant in enum class com.pyranid.MetricsCollector.PhysicalTransactionBeginFailurePhase
-
Applying the requested transaction isolation failed.
- SET_READ_ONLY - Enum constant in enum class com.pyranid.MetricsCollector.PhysicalTransactionBeginFailurePhase
-
Applying the requested read-only setting failed.
- setOf(Class, Set) - Static method in class com.pyranid.Parameters
-
Acquires a parameter of type
Set, preserving type information so it is accessible at runtime. - setRollbackOnly(Boolean) - Method in class com.pyranid.Transaction
-
Sets whether this transaction should be rolled back upon completion.
- shouldRetry(DatabaseException) - Method in interface com.pyranid.RetryPolicy.Condition
-
Determines whether a failed transaction attempt should be retried.
- snapshot() - Method in interface com.pyranid.MetricsCollector
-
Returns a counter snapshot if this collector supports in-process inspection.
- Snapshot(Long, Long, Long, Long, Long, Long, Long, Long, Long, Long, Long, Long, Long, Long, Long, Long, Long, Long, Long, Long, Long, Long, Long, Long, Long, Long, Long, Long, Long, Long, Long) - Constructor for record class com.pyranid.MetricsCollector.Snapshot
-
Creates an instance of a
Snapshotrecord class. - SQL_SERVER - Enum constant in enum class com.pyranid.DatabaseType
-
A Microsoft SQL Server database.
- sqlArrayOf(String, E[]) - Static method in class com.pyranid.Parameters
-
Acquires a SQL ARRAY parameter for a native Java array given an appropriate
java.sql.Array#getBaseTypeName(). - sqlArrayOf(String, List) - Static method in class com.pyranid.Parameters
-
Acquires a SQL ARRAY parameter for a
Listgiven an appropriatejava.sql.Array#getBaseTypeName(). - SqlArrayParameter<E> - Interface in com.pyranid
-
Encapsulates
PreparedStatementparameter data meant to be bound to a formaljava.sql.Arraytype byPreparedStatementBinder. - SQLITE - Enum constant in enum class com.pyranid.DatabaseType
-
A SQLite database.
- Statement - Class in com.pyranid
-
Represents a SQL statement and an identifier for it.
- StatementContext<T> - Class in com.pyranid
-
Data that represents a SQL statement.
- StatementContext.Builder<T> - Class in com.pyranid
-
Builder used to construct instances of
StatementContext. - StatementLog<T> - Class in com.pyranid
-
A collection of SQL statement execution diagnostics.
- StatementLog.Builder<T> - Class in com.pyranid
-
Builder used to construct instances of
StatementLog. - statementLogger(StatementLogger) - Method in class com.pyranid.Database.Builder
-
Configures the statement logger for the
Databasebeing built. - StatementLogger - Interface in com.pyranid
-
Contract for handling database statement log events.
- StatementResult - Record Class in com.pyranid
-
Statement row-count information observed by Pyranid.
- StatementResult(Long, Long) - Constructor for record class com.pyranid.StatementResult
-
Creates an instance of a
StatementResultrecord class. - statementsExecuted() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
statementsExecutedrecord component. - statementsFailed() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
statementsFailedrecord component. - streamsCallbackFailed() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
streamsCallbackFailedrecord component. - streamsClosedNormally() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
streamsClosedNormallyrecord component. - streamsEarlyClosed() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
streamsEarlyClosedrecord component. - streamsIterationFailed() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
streamsIterationFailedrecord component. - streamsOpened() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
streamsOpenedrecord component. - streamsOpenFailures() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
streamsOpenFailuresrecord component.
T
- TargetType - Interface in com.pyranid
-
A developer-friendly view over a reflective
Typeused by theResultSet-mapping pipeline for standardResultSetMapperinstances. - TEXT - Enum constant in enum class com.pyranid.JsonParameter.BindingPreference
-
Prefer to bind as text (for example,
VARCHAR/TEXT/NVARCHARorJSONfor PostgreSQL). - timeout() - Static method in interface com.pyranid.RetryPolicy.Condition
-
Creates a condition that retries timeouts and cancellations recognized by Pyranid.
- TIMESTAMP_WITH_TIME_ZONE - Enum constant in enum class com.pyranid.AmbiguousTimestampBindingStrategy
- TIMESTAMP_WITHOUT_TIME_ZONE - Enum constant in enum class com.pyranid.AmbiguousTimestampBindingStrategy
- timeZone(ZoneId) - Method in class com.pyranid.Database.Builder
-
Configures the database time zone Pyranid should use when converting zone-less temporal values.
- toString() - Method in exception class com.pyranid.DatabaseException
- toString() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns a string representation of this record class.
- toString() - Method in class com.pyranid.RetryPolicy
- toString() - Method in class com.pyranid.Statement
- toString() - Method in class com.pyranid.StatementContext
- toString() - Method in class com.pyranid.StatementLog
- toString() - Method in record class com.pyranid.StatementResult
-
Returns a string representation of this record class.
- toString() - Method in class com.pyranid.Transaction
- toString() - Method in class com.pyranid.TransactionOptions
- transaction(ReturningTransactionalOperation) - Method in class com.pyranid.Database
-
Performs an operation transactionally and optionally returns a value.
- transaction(TransactionalOperation) - Method in class com.pyranid.Database
-
Performs an operation transactionally.
- transaction(TransactionOptions, ReturningTransactionalOperation) - Method in class com.pyranid.Database
-
Performs an operation transactionally with the given options, optionally returning a value.
- transaction(TransactionOptions, TransactionalOperation) - Method in class com.pyranid.Database
-
Performs an operation transactionally with the given options.
- Transaction - Class in com.pyranid
-
Represents a database transaction.
- TransactionalOperation - Interface in com.pyranid
-
Represents an operation performed with a transactional context.
- transactionClosuresCommitted() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
transactionClosuresCommittedrecord component. - transactionClosuresEntered() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
transactionClosuresEnteredrecord component. - transactionClosuresExited() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
transactionClosuresExitedrecord component. - transactionClosuresFailed() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
transactionClosuresFailedrecord component. - transactionClosuresNoPhysical() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
transactionClosuresNoPhysicalrecord component. - transactionClosuresRolledBack() - Method in record class com.pyranid.MetricsCollector.Snapshot
-
Returns the value of the
transactionClosuresRolledBackrecord component. - TransactionIsolation - Enum Class in com.pyranid
-
Strategies for database locking during transactional operations.
- TransactionOptions - Class in com.pyranid
-
Options for a Pyranid-managed transaction.
- TransactionOptions.Builder - Class in com.pyranid
-
Builder used to construct
TransactionOptions. - TransactionResult - Enum Class in com.pyranid
-
Indicates the transaction result reported to post-transaction operations.
- TransactionRetryResult<T> - Class in com.pyranid
-
Result of a successful
Database.transactionWithRetry(RetryPolicy, ReturningTransactionalOperation)call. - transactionWithRetry(RetryPolicy, ReturningTransactionalOperation) - Method in class com.pyranid.Database
-
Performs an operation transactionally and optionally returns a value, retrying according to the given retry policy.
- transactionWithRetry(RetryPolicy, TransactionalOperation) - Method in class com.pyranid.Database
-
Performs an operation transactionally, retrying according to the given retry policy.
- transactionWithRetry(RetryPolicy, TransactionOptions, ReturningTransactionalOperation) - Method in class com.pyranid.Database
-
Performs an operation transactionally with the given options and optionally returns a value, retrying according to the given retry policy.
- transactionWithRetry(RetryPolicy, TransactionOptions, TransactionalOperation) - Method in class com.pyranid.Database
-
Performs an operation transactionally with the given options, retrying according to the given retry policy.
- TypedParameter - Interface in com.pyranid
-
Special "type carrier" which avoids generic type erasure at runtime when
PreparedStatementBinderbinds parameters toPreparedStatement.
U
- useRawConnection(RawConnectionOperation) - Method in class com.pyranid.Database
-
Performs raw JDBC work with a Pyranid-managed
Connection.
V
- value() - Element in annotation interface com.pyranid.DatabaseColumn
- valueOf(String) - Static method in enum class com.pyranid.AmbiguousTimestampBindingStrategy
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.pyranid.DatabaseType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.pyranid.JsonParameter.BindingPreference
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.pyranid.MetricsCollector.PhysicalTransactionBeginFailurePhase
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.pyranid.MetricsCollector.StreamTerminalOutcome
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.pyranid.MetricsCollector.TransactionClosureOutcome
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.pyranid.TransactionIsolation
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.pyranid.TransactionResult
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.pyranid.AmbiguousTimestampBindingStrategy
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.pyranid.DatabaseType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.pyranid.JsonParameter.BindingPreference
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.pyranid.MetricsCollector.PhysicalTransactionBeginFailurePhase
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.pyranid.MetricsCollector.StreamTerminalOutcome
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.pyranid.MetricsCollector.TransactionClosureOutcome
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.pyranid.TransactionIsolation
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.pyranid.TransactionResult
-
Returns an array containing the constants of this enum class, in the order they are declared.
- vectorOfBigDecimals(List) - Static method in class com.pyranid.Parameters
-
Acquires a vector parameter for a
ListofBigDecimal. - vectorOfDoubles(double[]) - Static method in class com.pyranid.Parameters
-
Acquires a vector parameter for an array of
double. - vectorOfDoubles(List) - Static method in class com.pyranid.Parameters
- vectorOfFloats(float[]) - Static method in class com.pyranid.Parameters
-
Acquires a vector parameter for an array of
float. - vectorOfFloats(List) - Static method in class com.pyranid.Parameters
- VectorParameter - Interface in com.pyranid
-
Encapsulates
PreparedStatementparameter data meant to be bound to a vector type (for example, PostgreSQL'spgvector), byPreparedStatementBinder.
W
- wasRetried() - Method in class com.pyranid.TransactionRetryResult
-
Indicates whether at least one failed attempt was retried before success.
- willAcquireStatementConnection(StatementContext) - Method in interface com.pyranid.MetricsCollector
-
Called immediately before Pyranid attempts to acquire a statement-scoped
Connection. - willAcquireTransactionConnection(Transaction, DatabaseType) - Method in interface com.pyranid.MetricsCollector
-
Called immediately before Pyranid attempts to acquire the JDBC connection backing a physical transaction.
- willExecuteStatement(StatementContext) - Method in interface com.pyranid.MetricsCollector
-
Called immediately before Pyranid executes a statement.
- willOpenStream(StatementContext) - Method in interface com.pyranid.MetricsCollector
-
Called immediately before Pyranid opens a streaming statement.
- with(Statement, Database) - Static method in class com.pyranid.StatementContext
- withCustomColumnMappers(List) - Static method in interface com.pyranid.ResultSetMapper
-
Acquires a builder for a concrete implementation of this interface, specifying a
Listof custom column-specific mapping logic to apply, in priority order. - withCustomParameterBinders(List) - Static method in interface com.pyranid.PreparedStatementBinder
-
Acquires a concrete implementation of this interface, specifying "surgical" per-type custom parameter binders to apply in priority order.
- withDataSource(DataSource) - Static method in class com.pyranid.Database
-
Provides a
Databasebuilder for the givenDataSource. - withDefaultConfiguration() - Static method in interface com.pyranid.PreparedStatementBinder
-
Acquires a concrete implementation of this interface with out-of-the-box defaults.
- withDefaultConfiguration() - Static method in interface com.pyranid.ResultSetMapper
-
Acquires a concrete implementation of this interface with out-of-the-box defaults.
- withIsolation(TransactionIsolation) - Static method in class com.pyranid.TransactionOptions
-
Starts building transaction options with a transaction isolation level.
- withNormalizationLocale(Locale) - Static method in interface com.pyranid.ResultSetMapper
-
Acquires a builder for a concrete implementation of this interface, specifying the locale to use when massaging JDBC column names for matching against Java property names.
- withPlanCachingEnabled(Boolean) - Static method in interface com.pyranid.ResultSetMapper
-
Acquires a builder for a concrete implementation of this interface, specifying whether an internal "mapping plan" cache should be used to speed up
ResultSetmapping. - withReadOnly(Boolean) - Static method in class com.pyranid.TransactionOptions
-
Starts building transaction options with a read-only setting.
- withSavepoint(ReturningTransactionalOperation) - Method in class com.pyranid.Transaction
-
Performs an operation inside a transaction savepoint and optionally returns a value.
- withSavepoint(TransactionalOperation) - Method in class com.pyranid.Transaction
-
Performs an operation inside a transaction savepoint.
- withStatementContext(StatementContext) - Static method in class com.pyranid.StatementLog
-
Creates a
StatementLogbuilder for the givenstatementContext.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form