java.lang.Object
java.lang.Record
org.litebridge.orm.engine.QueryPlanCache.CachedOperation
- Enclosing class:
QueryPlanCache
public static record QueryPlanCache.CachedOperation(String sql, List<Integer> bindValueSqlTypes, @Nullable TypeConversionMetaData typeConversionMetaData, @Nullable UpdateMetaData updateMetaData, @Nullable SelectSpec selectSpec)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCachedOperation(String sql, List<Integer> bindValueSqlTypes, @Nullable TypeConversionMetaData typeConversionMetaData, @Nullable UpdateMetaData updateMetaData, @Nullable SelectSpec selectSpec) 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) @Nullable SelectSpecReturns the value of theselectSpecrecord component.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, @Nullable SelectSpec selectSpec) 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 componentselectSpec- the value for theselectSpecrecord component
-
-
Method Details
-
preparedSql
-
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
-
selectSpec
Returns the value of theselectSpecrecord component.- Returns:
- the value of the
selectSpecrecord component
-