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
ConstructorsConstructorDescriptionDatasetConstraint(Integer dataset, String clause) Creates an instance of aDatasetConstraintrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclause()Returns the value of theclauserecord component.dataset()Returns the value of thedatasetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.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). -
dataset
Returns the value of thedatasetrecord component.- Returns:
- the value of the
datasetrecord component
-
clause
Returns the value of theclauserecord component.- Returns:
- the value of the
clauserecord component
-