Record Class DatasetConstraint
java.lang.Object
java.lang.Record
io.jmix.supersetflowui.component.dataconstraint.DatasetConstraint
- Record Components:
dataset
- an integer ID of Superset dataset. The dataset ID can be found through the URL address of dataset in datasets list. Other way is to get all datasets from API, it will return datasets with ids.clause
- native SQL condition that will be appended to "WHERE" clause
Represents a dataset constraint. For instance:
new DatasetConstraint(1, "country_name = 'United States'")
-
Constructor Summary
ConstructorDescriptionDatasetConstraint
(Integer dataset, String clause) Creates an instance of aDatasetConstraint
record class. -
Method Summary
Modifier and TypeMethodDescriptionclause()
Returns the value of theclause
record component.dataset()
Returns the value of thedataset
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
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)
. -
dataset
Returns the value of thedataset
record component.- Returns:
- the value of the
dataset
record component
-
clause
Returns the value of theclause
record component.- Returns:
- the value of the
clause
record component
-