Package app.ductape.sdk.database.types
Record Class ActionTypes.ActionTemplate
java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.ActionTypes.ActionTemplate
- Enclosing class:
- ActionTypes
public static record ActionTypes.ActionTemplate(List<String> select, Object where, List<ActionTypes.ActionOrderBy> orderBy, Object limit, Object offset, Object records, List<String> conflictColumns, Object operations, String query, List<Object> params)
extends Record
where = Map or string; limit/offset = number or string placeholder.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconflictColumnsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.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.params()Returns the value of theparamsrecord component.query()Returns the value of thequeryrecord component.records()Returns the value of therecordsrecord component.select()Returns the value of theselectrecord component.final StringtoString()Returns a string representation of this record class.where()Returns the value of thewhererecord component.
-
Constructor Details
-
ActionTemplate
public ActionTemplate(List<String> select, Object where, List<ActionTypes.ActionOrderBy> orderBy, Object limit, Object offset, Object records, List<String> conflictColumns, Object operations, String query, List<Object> params) Creates an instance of aActionTemplaterecord class.- Parameters:
select- the value for theselectrecord componentwhere- the value for thewhererecord componentorderBy- the value for theorderByrecord componentlimit- the value for thelimitrecord componentoffset- the value for theoffsetrecord componentrecords- the value for therecordsrecord componentconflictColumns- the value for theconflictColumnsrecord componentoperations- the value for theoperationsrecord componentquery- the value for thequeryrecord componentparams- the value for theparamsrecord 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). -
select
Returns the value of theselectrecord component.- Returns:
- the value of the
selectrecord component
-
where
Returns the value of thewhererecord component.- Returns:
- the value of the
whererecord 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
-
records
Returns the value of therecordsrecord component.- Returns:
- the value of the
recordsrecord component
-
conflictColumns
Returns the value of theconflictColumnsrecord component.- Returns:
- the value of the
conflictColumnsrecord component
-
operations
Returns the value of theoperationsrecord component.- Returns:
- the value of the
operationsrecord component
-
query
Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
params
Returns the value of theparamsrecord component.- Returns:
- the value of the
paramsrecord component
-