com.esri.core.internal.value
Class JoinTableDataSource

java.lang.Object
  extended by com.esri.core.internal.value.DataSource
      extended by com.esri.core.internal.value.JoinTableDataSource

public class JoinTableDataSource
extends DataSource

The Class JoinTableDataSource is the result of a join operation. Nested joins are supported. To use nested joins set either of leftTableSource or rightTableSource to be a JoinTableDataSource.

Note:

  • The layer type is determined by the leftTableSource. If the leftTableSource is a table then the resulting JoinTableDataSource is a table. If the leftTableSource is a layer then the resulting JoinTableDataSource is a layer.
  • For performance reasons it is ideal to have leftTableSource and rightTableSource to point to data source from the same workspace and leftTableKey/rightTableKey indexed.


    Nested Class Summary
    static class JoinTableDataSource.JoinType
              The Enum JoinType.
     
    Nested classes/interfaces inherited from class com.esri.core.internal.value.DataSource
    DataSource.DataSourceType
     
    Constructor Summary
    JoinTableDataSource()
              Instantiates a new join table data source.
     
    Method Summary
     JoinTableDataSource.JoinType getJoinType()
              Gets the join type.
     String getLeftTableKey()
              Gets the left table key.
     LayerSource getLeftTableSource()
              Gets the left table source.
     String getRightTableKey()
              Gets the right table key.
     LayerSource getRightTableSource()
              Gets the right table source.
     void setJoinType(JoinTableDataSource.JoinType joinType)
              Sets the join type.
     void setLeftTableKey(String leftTableKey)
              Sets the left table key.
     void setLeftTableSource(LayerSource leftTableSource)
              Sets the left table source.
     void setRightTableKey(String rightTableKey)
              Sets the right table key.
     void setRightTableSource(LayerSource rightTableSource)
              Sets the right table source.
     String toJson()
               
     
    Methods inherited from class com.esri.core.internal.value.DataSource
    getType, setType
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    JoinTableDataSource

    public JoinTableDataSource()
    Instantiates a new join table data source.

    Method Detail

    getLeftTableSource

    public LayerSource getLeftTableSource()
    Gets the left table source.

    Returns:
    the left table source

    setLeftTableSource

    public void setLeftTableSource(LayerSource leftTableSource)
    Sets the left table source.

    Parameters:
    leftTableSource - the new left table source

    getRightTableSource

    public LayerSource getRightTableSource()
    Gets the right table source.

    Returns:
    the right table source

    setRightTableSource

    public void setRightTableSource(LayerSource rightTableSource)
    Sets the right table source.

    Parameters:
    rightTableSource - the new right table source

    getLeftTableKey

    public String getLeftTableKey()
    Gets the left table key.

    Returns:
    the left table key

    setLeftTableKey

    public void setLeftTableKey(String leftTableKey)
    Sets the left table key.

    Parameters:
    leftTableKey - the new left table key

    getRightTableKey

    public String getRightTableKey()
    Gets the right table key.

    Returns:
    the right table key

    setRightTableKey

    public void setRightTableKey(String rightTableKey)
    Sets the right table key.

    Parameters:
    rightTableKey - the new right table key

    getJoinType

    public JoinTableDataSource.JoinType getJoinType()
    Gets the join type.

    Returns:
    the join type

    setJoinType

    public void setJoinType(JoinTableDataSource.JoinType joinType)
    Sets the join type.

    Parameters:
    joinType - the new join type

    toJson

    public String toJson()
                  throws IOException
    Specified by:
    toJson in class DataSource
    Throws:
    IOException


    Copyright © 2012. All Rights Reserved.