public class

LayerRelationship

extends Object
java.lang.Object
   ↳ com.esri.core.map.LayerRelationship

Class Overview

Class representing a layer relationship to a table including relationship ID, related table name, and related table ID.

Summary

Nested Classes
enum LayerRelationship.Cardinality The cardinality of the relationship. 
enum LayerRelationship.Role Describes whether this table is the origin or destination of the relationship. 
Public Constructors
LayerRelationship()
Public Methods
static LayerRelationship fromJson(JsonParser parser)
LayerRelationship.Cardinality getCardinality()
Gets the cardinality of this relationship.
int getId()
Gets the relationship ID, unique within a layer's set of relationships.
String getKeyField()
Gets the key field of this table.
String getName()
Gets the related table name.
int getRelatedTableId()
Gets the related table ID.
LayerRelationship.Role getRole()
Gets the role (origin or destination) that this table has in this relationship.
boolean isComposite()
If the origin table is logically composed of the destination table then the destination table records will be deleted when their origin table records are deleted.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LayerRelationship ()

Public Methods

public static LayerRelationship fromJson (JsonParser parser)

Parameters
parser JsonParser
Returns
LayerRelationship
Throws
Exception

public LayerRelationship.Cardinality getCardinality ()

Gets the cardinality of this relationship.

Returns
LayerRelationship.Cardinality the cardinality

public int getId ()

Gets the relationship ID, unique within a layer's set of relationships.

Returns
int the relationship ID

public String getKeyField ()

Gets the key field of this table.

Returns
String field name.

public String getName ()

Gets the related table name.

Returns
String the related table name

public int getRelatedTableId ()

Gets the related table ID.

Returns
int the related table ID

public LayerRelationship.Role getRole ()

Gets the role (origin or destination) that this table has in this relationship.

Returns
LayerRelationship.Role the role

public boolean isComposite ()

If the origin table is logically composed of the destination table then the destination table records will be deleted when their origin table records are deleted.

Returns
boolean true if the relationship is composite; false otherwise.

public String toString ()

Returns
String