CrossFilter Class

Contains methods and constructors used to work with information about a cross filter.

Reports

The following are constructors for CrossFilter.

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 the relatedEntity.

  • 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 primaryEntityField is evaluated against—the right-hand side of the cross filter.

  • relatedEntityJoinField:

    Type: String

    The name of the field used to join the primaryEntityField and relatedEntity.

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 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)

Type: void

Specifies whether objects returned have a relationship with the relatedEntity (true) or not (false).

public void setIncludesObject(Boolean includesObject)

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)

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