Package app.ductape.sdk.database.types
Record Class QueryTypes.BuiltQuery
java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.QueryTypes.BuiltQuery
- Enclosing class:
- QueryTypes
public static record QueryTypes.BuiltQuery(QueryTypes.QueryOptions options, String sql, List<Object> params, Object mongoQuery, Object mongoProjection, Object mongoSort)
extends Record
Result of the internal build step before adapter execution.
-
Constructor Summary
ConstructorsConstructorDescriptionBuiltQuery(QueryTypes.QueryOptions options, String sql, List<Object> params, Object mongoQuery, Object mongoProjection, Object mongoSort) Creates an instance of aBuiltQueryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themongoProjectionrecord component.Returns the value of themongoQueryrecord component.Returns the value of themongoSortrecord component.options()Returns the value of theoptionsrecord component.params()Returns the value of theparamsrecord component.sql()Returns the value of thesqlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BuiltQuery
public BuiltQuery(QueryTypes.QueryOptions options, String sql, List<Object> params, Object mongoQuery, Object mongoProjection, Object mongoSort) Creates an instance of aBuiltQueryrecord class.- Parameters:
options- the value for theoptionsrecord componentsql- the value for thesqlrecord componentparams- the value for theparamsrecord componentmongoQuery- the value for themongoQueryrecord componentmongoProjection- the value for themongoProjectionrecord componentmongoSort- the value for themongoSortrecord component
-
-
Method Details
-
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). -
options
Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-
sql
Returns the value of thesqlrecord component.- Returns:
- the value of the
sqlrecord component
-
params
Returns the value of theparamsrecord component.- Returns:
- the value of the
paramsrecord component
-
mongoQuery
Returns the value of themongoQueryrecord component.- Returns:
- the value of the
mongoQueryrecord component
-
mongoProjection
Returns the value of themongoProjectionrecord component.- Returns:
- the value of the
mongoProjectionrecord component
-
mongoSort
Returns the value of themongoSortrecord component.- Returns:
- the value of the
mongoSortrecord component
-