public class JoinItem
extends java.lang.Object
implements java.io.Serializable
连接信息类。
用于矢量数据集与外部表的连接。外部表可以为另一个矢量数据集(其中纯属性数据集中没有空间几何信息)所对应的 DBMS 表,也可以是用户自建的业务表。需要注意的是,矢量数据集与外部表必须属于同一数据源。表之间的联系的建立有两种方式,一种是连接(join),一种是关联(link)。连接,实际上是依据相同的字段将一个外部表追加到指定的表;而关联是基于一个相同的字段定义了两个表格之间的联系,但不是实际的追加。用于连接两个表的字段的名称不一定相同,但类型必须一致。当两个表格之间建立了连接,通过对主表进行操作,可以对外部表进行查询,制作专题图以及分析等。当两个表格之间是一对一或多对一的关系时,可以使用 join 连接。当为多对一的关系时,允许指定多个字段之间的关联。
限定符和类型 | 字段和说明 |
---|---|
java.lang.String |
foreignTableName
获取或设置外部表的名称.
|
java.lang.String |
joinFilter
获取或设置矢量数据集与外部表之间的连接表达式.
|
JoinType |
joinType
获取或设置两个表之间的连接类型,JoinType 常量.
|
public java.lang.String foreignTableName
获取或设置外部表的名称.
public java.lang.String joinFilter
获取或设置矢量数据集与外部表之间的连接表达式.
public JoinType joinType
获取或设置两个表之间的连接类型,JoinType 常量.
public JoinItem()
public JoinItem(java.lang.String foreignTableName, java.lang.String joinFilter, JoinType joinType)
构造函数。
foreignTableName
- 外部表的名称。joinFilter
- 与外部表之间的连接表达式,即设定两个表之间关联的字段。joinType
- 两个表之间连接的类型。可以是内连接或者是外连接。public JoinItem(java.lang.String foreignTableName, java.lang.String joinFilter)
public JoinItem(JoinItem joinItem)