java.lang.Object
java.lang.Record
st.orm.template.impl.Elements.Subquery
- All Implemented Interfaces:
Element
- Enclosing class:
Elements
public static record Elements.Subquery(@Nonnull StringTemplatePREVIEW template, boolean correlate)
extends Record
implements Element
Subquery relies on preview features of the Java platform:
Subqueryrefers to one or more preview APIs:StringTemplate.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
-
Constructor Summary
ConstructorsConstructorDescriptionSubquery(StringTemplatePREVIEW template, boolean correlate) Creates an instance of aSubqueryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecorrelaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.template()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Subquery
Creates an instance of aSubqueryrecord class.- Parameters:
template- the value for thetemplaterecord componentcorrelate- the value for thecorrelaterecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
template
Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord component
-
correlate
public boolean correlate()Returns the value of thecorrelaterecord component.- Returns:
- the value of the
correlaterecord component
-
Subquerywhen preview features are enabled.