Package app.ductape.sdk.database.types
Record Class QueryTypes.OrderBy
java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.QueryTypes.OrderBy
- Enclosing class:
- QueryTypes
IOrderBy — use
DatabaseTypes.SortOrder#name() for order when not using string literals.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryTypes.OrderBycolumn()Returns the value of thecolumnrecord component.static QueryTypes.OrderByfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.nulls()Returns the value of thenullsrecord component.order()Returns the value of theorderrecord component.toMap()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OrderBy
Creates an instance of aOrderByrecord class.- Parameters:
column- the value for thecolumnrecord componentorder- the value for theorderrecord componentnulls- the value for thenullsrecord component
-
-
Method Details
-
toMap
-
asc
-
desc
-
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). -
column
Returns the value of thecolumnrecord component.- Returns:
- the value of the
columnrecord component
-
order
Returns the value of theorderrecord component.- Returns:
- the value of the
orderrecord component
-
nulls
Returns the value of thenullsrecord component.- Returns:
- the value of the
nullsrecord component
-