java.lang.Object
java.lang.Record
org.litebridge.orm.engine.QueryPlanCache.CachedOperation
- Record Components:
sql- the generated SQL stringbindValueSqlTypes- the SQL types for bind valuestypeConversionMetaData- type conversion metadata, ornullupdateMetaData- update metadata, ornull
- Enclosing class:
QueryPlanCache
public static record QueryPlanCache.CachedOperation(String sql, List<Integer> bindValueSqlTypes, @Nullable TypeConversionMetaData typeConversionMetaData, @Nullable UpdateMetaData updateMetaData)
extends Record
Cached operation representing compiled SQL, bind value types, and conversion metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionCachedOperation(String sql, List<Integer> bindValueSqlTypes, @Nullable TypeConversionMetaData typeConversionMetaData, @Nullable UpdateMetaData updateMetaData) Creates an instance of aCachedOperationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebindValueSqlTypesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.preparedSql(List<@Nullable Object> rawBindValues) Creates aPreparedSqlinstance populated with the supplied runtime bind values.sql()Returns the value of thesqlrecord component.final StringtoString()Returns a string representation of this record class.@Nullable TypeConversionMetaDataReturns the value of thetypeConversionMetaDatarecord component.@Nullable UpdateMetaDataReturns the value of theupdateMetaDatarecord component.
-
Constructor Details
-
CachedOperation
public CachedOperation(String sql, List<Integer> bindValueSqlTypes, @Nullable TypeConversionMetaData typeConversionMetaData, @Nullable UpdateMetaData updateMetaData) Creates an instance of aCachedOperationrecord class.- Parameters:
sql- the value for thesqlrecord componentbindValueSqlTypes- the value for thebindValueSqlTypesrecord componenttypeConversionMetaData- the value for thetypeConversionMetaDatarecord componentupdateMetaData- the value for theupdateMetaDatarecord component
-
-
Method Details
-
preparedSql
Creates aPreparedSqlinstance populated with the supplied runtime bind values.- Parameters:
rawBindValues- the runtime bind values matching the required SQL types- Returns:
- the prepared SQL object ready for execution
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
sql
Returns the value of thesqlrecord component.- Returns:
- the value of the
sqlrecord component
-
bindValueSqlTypes
Returns the value of thebindValueSqlTypesrecord component.- Returns:
- the value of the
bindValueSqlTypesrecord component
-
typeConversionMetaData
Returns the value of thetypeConversionMetaDatarecord component.- Returns:
- the value of the
typeConversionMetaDatarecord component
-
updateMetaData
Returns the value of theupdateMetaDatarecord component.- Returns:
- the value of the
updateMetaDatarecord component
-