Class StatementContext<T>
java.lang.Object
com.pyranid.StatementContext<T>
Data that represents a SQL statement.
- Since:
- 2.0.0
- Author:
- Mark Allen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder used to construct instances ofStatementContext. -
Method Summary
Modifier and TypeMethodDescriptionbooleanHow should Pyranid bindInstantandOffsetDateTimeparameters when JDBC parameter metadata cannot identify whether the target isTIMESTAMPorTIMESTAMP WITH TIME ZONE?Gets the configured database type for this statement.Gets original query binding names, without a leading colon, in expanded JDBC slot order.Gets this statement's parameters rendered for diagnostics.inthashCode()toString()static <T> @NonNull StatementContext.Builder<T>
-
Method Details
-
hashCode
-
equals
-
toString
-
getStatement
-
getParameters
-
getParameterNames
Gets original query binding names, without a leading colon, in expanded JDBC slot order. Repeated bindings and IN-list elements repeat their name; unknown names arenull. The returned list is immutable.For non-batch operations this aligns with
getParameters(). Batch parameters are grouped there, while this list describes the slots shared by each group. A batch slot has anullname if expansions assigned different original names to that slot across groups. Batch summaries continue to omit individual values and do not invoke the redactor.- Returns:
- immutable expanded-slot names, with
nullfor unknown or conflicting names - Since:
- 4.9.0
-
getRedactedParameters
Gets this statement's parameters rendered for diagnostics.SecureParametervalues render as their masks. Other non-batch values are rendered through the configuredParameterRedactor; an empty Optional renders asnullwithout removing its parameter slot. A null Optional violates the redactor contract and fails immediately. Batch executions render a bounded summary instead of individual group values.- Returns:
- parameters rendered for diagnostics
- Since:
- 4.4.0
-
getResultSetRowType
-
getDatabaseType
Gets the configured database type for this statement.- Returns:
- the configured database type
- Since:
- 3.0.0
-
getTimeZone
-
getAmbiguousTimestampBindingStrategy
How should Pyranid bindInstantandOffsetDateTimeparameters when JDBC parameter metadata cannot identify whether the target isTIMESTAMPorTIMESTAMP WITH TIME ZONE?- Returns:
- behavior to use when timestamp target metadata is unavailable or non-identifying
- Since:
- 4.2.0
-
with
-