Package app.ductape.sdk.database.types
Record Class AggregationTypes.GroupByOptions
java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.AggregationTypes.GroupByOptions
- Enclosing class:
- AggregationTypes
public static record AggregationTypes.GroupByOptions(String table, Map<String,Object> where, List<String> groupBy, Map<String,Map<String,Object>> operations, Map<String,Object> having, List<AggregationTypes.GroupByOrderBy> orderBy, Integer limit, Integer offset, String env, String product, String database, Object transaction)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGroupByOptions(String table, Map<String, Object> where, List<String> groupBy, Map<String, Map<String, Object>> operations, Map<String, Object> having, List<AggregationTypes.GroupByOrderBy> orderBy, Integer limit, Integer offset, String env, String product, String database, Object transaction) Creates an instance of aGroupByOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondatabase()Returns the value of thedatabaserecord component.env()Returns the value of theenvrecord component.final booleanIndicates whether some other object is "equal to" this one.groupBy()Returns the value of thegroupByrecord component.final inthashCode()Returns a hash code value for this object.having()Returns the value of thehavingrecord component.limit()Returns the value of thelimitrecord component.offset()Returns the value of theoffsetrecord component.Returns the value of theoperationsrecord component.orderBy()Returns the value of theorderByrecord component.product()Returns the value of theproductrecord component.table()Returns the value of thetablerecord component.toMap()final StringtoString()Returns a string representation of this record class.Returns the value of thetransactionrecord component.where()Returns the value of thewhererecord component.
-
Constructor Details
-
GroupByOptions
public GroupByOptions(String table, Map<String, Object> where, List<String> groupBy, Map<String, Map<String, Object>> operations, Map<String, Object> having, List<AggregationTypes.GroupByOrderBy> orderBy, Integer limit, Integer offset, String env, String product, String database, Object transaction) Creates an instance of aGroupByOptionsrecord class.- Parameters:
table- the value for thetablerecord componentwhere- the value for thewhererecord componentgroupBy- the value for thegroupByrecord componentoperations- the value for theoperationsrecord componenthaving- the value for thehavingrecord componentorderBy- the value for theorderByrecord componentlimit- the value for thelimitrecord componentoffset- the value for theoffsetrecord componentenv- the value for theenvrecord componentproduct- the value for theproductrecord componentdatabase- the value for thedatabaserecord componenttransaction- the value for thetransactionrecord component
-
-
Method Details
-
toMap
-
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). -
table
Returns the value of thetablerecord component.- Returns:
- the value of the
tablerecord component
-
where
Returns the value of thewhererecord component.- Returns:
- the value of the
whererecord component
-
groupBy
Returns the value of thegroupByrecord component.- Returns:
- the value of the
groupByrecord component
-
operations
Returns the value of theoperationsrecord component.- Returns:
- the value of the
operationsrecord component
-
having
Returns the value of thehavingrecord component.- Returns:
- the value of the
havingrecord component
-
orderBy
Returns the value of theorderByrecord component.- Returns:
- the value of the
orderByrecord component
-
limit
Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-
offset
Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
env
Returns the value of theenvrecord component.- Returns:
- the value of the
envrecord component
-
product
Returns the value of theproductrecord component.- Returns:
- the value of the
productrecord component
-
database
Returns the value of thedatabaserecord component.- Returns:
- the value of the
databaserecord component
-
transaction
Returns the value of thetransactionrecord component.- Returns:
- the value of the
transactionrecord component
-