Package com.axelor.meta.query.render
Record Class RenderedQuery.QueryTemplate
java.lang.Object
java.lang.Record
com.axelor.meta.query.render.RenderedQuery.QueryTemplate
- Enclosing class:
RenderedQuery
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefromClauserecord component.Returns the value of thegroupByClauserecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehavingClauserecord component.Returns the value of thejoinsClauserecord component.Returns the value of theorderByClauserecord component.Returns the value of theselectClauserecord component.toJpql()final StringtoString()Returns a string representation of this record class.Returns the value of thewhereClauserecord component.
-
Constructor Details
-
QueryTemplate
public QueryTemplate(String selectClause, String fromClause, String joinsClause, String whereClause, String groupByClause, String havingClause, String orderByClause) Creates an instance of aQueryTemplaterecord class.- Parameters:
selectClause- the value for theselectClauserecord componentfromClause- the value for thefromClauserecord componentjoinsClause- the value for thejoinsClauserecord componentwhereClause- the value for thewhereClauserecord componentgroupByClause- the value for thegroupByClauserecord componenthavingClause- the value for thehavingClauserecord componentorderByClause- the value for theorderByClauserecord component
-
-
Method Details
-
toJpql
-
toJpql
-
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). -
selectClause
Returns the value of theselectClauserecord component.- Returns:
- the value of the
selectClauserecord component
-
fromClause
Returns the value of thefromClauserecord component.- Returns:
- the value of the
fromClauserecord component
-
joinsClause
Returns the value of thejoinsClauserecord component.- Returns:
- the value of the
joinsClauserecord component
-
whereClause
Returns the value of thewhereClauserecord component.- Returns:
- the value of the
whereClauserecord component
-
groupByClause
Returns the value of thegroupByClauserecord component.- Returns:
- the value of the
groupByClauserecord component
-
havingClause
Returns the value of thehavingClauserecord component.- Returns:
- the value of the
havingClauserecord component
-
orderByClause
Returns the value of theorderByClauserecord component.- Returns:
- the value of the
orderByClauserecord component
-