Package com.axelor.meta.query.dataset
Record Class DatasetSource
java.lang.Object
java.lang.Record
com.axelor.meta.query.dataset.DatasetSource
- Record Components:
name- the query's nametitle- its display labelrevision- content hash of the query definition
Where a dataset came from.
revision identifies the query definition and is a hash of the query XML. It
is deliberately not MetaQuery's optimistic-lock counter, which carries no content meaning
and moves when an unrelated field is edited — a snapshot pinned to that counter could not tell
whether the definition had actually changed.
-
Constructor Summary
ConstructorsConstructorDescriptionDatasetSource(String name, String title, String revision) Creates an instance of aDatasetSourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.revision()Returns the value of therevisionrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
revision
Returns the value of therevisionrecord component.- Returns:
- the value of the
revisionrecord component
-