CrossFilter Class
Contains methods and constructors used to work with information about a cross filter.
The following are constructors for CrossFilter.
-
CrossFilter(criteria, includesObject, primaryEntityField, relatedEntity, relatedEntityJoinField)
Creates an instance of the
Reports.CrossFilterclass using the specified parameters. -
Creates an instance of the
Reports.CrossFilterclass. You can then set values by using the class’ssetmethods.
Creates an instance of the Reports.CrossFilter class using the specified parameters.
public CrossFilter(List<Reports.ReportFilter> criteria, Boolean includesObject, String primaryEntityField, String relatedEntity, String relatedEntityJoinField)
-
criteria:
Type: List<Reports.ReportFilter>
Information about how to filter the
relatedEntity. Relates the primary entity with a subset of therelatedEntity. -
includesObject:
Type: Boolean
Specifies whether objects returned have a relationship with the
relatedEntity(true) or not (false). -
primaryEntityField:
Type: String
The name of the object on which the cross filter is evaluated.
-
relatedEntity:
Type: String
The name of the object that the
primaryEntityFieldis evaluated against—the right-hand side of the cross filter. -
relatedEntityJoinField:
Type: String
The name of the field used to join the
primaryEntityFieldandrelatedEntity.
Creates an instance of the Reports.CrossFilter class. You can then set values by using the class’s set methods.
public CrossFilter()
The following are methods for CrossFilter.
-
Returns information about how to filter the
relatedEntity. Describes the subset of therelatedEntitywhich the primary entity is evaluated against. -
Returns
trueif primary object has a relationship with therelatedEntity, otherwise returnsfalse. -
Returns the name of the object on which the cross filter is evaluated.
-
Returns name of the object that the
primaryEntityFieldis evaluated against—the right-hand side of the cross filter. -
Returns the name of the field used to join the
primaryEntityFieldandrelatedEntity. -
Specifis how to filter the
relatedEntity. Relates the primary entity with a subset of therelatedEntity. -
setIncludesObject(includesObject)
Specifies whether objects returned have a relationship with the
relatedEntity(true) or not (false). -
setPrimaryEntityField(primaryEntityField)
Specifies the name of the object on which the cross filter is evaluated.
-
setRelatedEntity(relatedEntity)
Specifies the name of the object that the
primaryEntityFieldis evaluated against—the right-hand side of the cross filter. -
setRelatedEntityJoinField(relatedEntityJoinField)
Specifies the name of the field used to join the
primaryEntityFieldandrelatedEntity. -
Returns a string.
Returns information about how to filter the relatedEntity. Describes the subset of the relatedEntity which the primary entity is evaluated against.
public List<Reports.ReportFilter> getCriteria()
Type: List<Reports.ReportFilter>
Returns true if primary object has a relationship with the relatedEntity, otherwise returns false.
public Boolean getIncludesObject()
Type: Boolean
Returns the name of the object on which the cross filter is evaluated.
public String getPrimaryEntityField()
Type: String
Returns name of the object that the primaryEntityField is evaluated against—the right-hand side of the cross filter.
public String getRelatedEntity()
Type: String
Returns the name of the field used to join the primaryEntityField and relatedEntity.
public String getRelatedEntityJoinField()
Type: String
Specifis how to filter the relatedEntity. Relates the primary entity with a subset of the relatedEntity.
public void setCriteria(List<Reports.ReportFilter> criteria)
-
criteria:
Type: List<Reports.ReportFilter>
Type: void
Specifies whether objects returned have a relationship with the relatedEntity (true) or not (false).
public void setIncludesObject(Boolean includesObject)
-
includesObject:
Type: Boolean
Type: void
Specifies the name of the object on which the cross filter is evaluated.
public void setPrimaryEntityField(String primaryEntityField)
-
primaryEntityField:
Type: String
Type: void
Specifies the name of the object that the primaryEntityField is evaluated against—the right-hand side of the cross filter.
public void setRelatedEntity(String relatedEntity)
-
relatedEntity:
Type: String
Type: void
Specifies the name of the field used to join the primaryEntityField and relatedEntity.
public void setRelatedEntityJoinField(String relatedEntityJoinField)
-
relatedEntityJoinField:
Type: String
Type: void
Returns a string.
public String toString()
Type: String