Package com.onec.query
Record Class Select
java.lang.Object
java.lang.Record
com.onec.query.Select
One item in the SELECT list: a
Path (plain column or ref-navigation),
optionally wrapped in an aggregate, with an output alias used as the result-Row
key and the fetchInto property name.
path may be null only for COUNT(*).
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSelect(Path path, Select.Agg agg, String alias) Creates an instance of aSelectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionagg()Returns the value of theaggrecord component.alias()Returns the value of thealiasrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Column name in the result set: explicit alias, else derived from the path/aggregate.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Select
Creates an instance of aSelectrecord class.- Parameters:
path- the value for thepathrecord componentagg- the value for theaggrecord componentalias- the value for thealiasrecord component
-
-
Method Details
-
outputName
Column name in the result set: explicit alias, else derived from the path/aggregate. -
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). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
agg
Returns the value of theaggrecord component.- Returns:
- the value of the
aggrecord component
-
alias
Returns the value of thealiasrecord component.- Returns:
- the value of the
aliasrecord component
-