com.aliyun.openservices.ots.model
类 TableMeta

java.lang.Object
  继承者 com.aliyun.openservices.ots.model.TableMeta

public class TableMeta
extends Object

表示表(Table)的结构信息。


构造方法摘要
TableMeta(String tableName)
          创建一个新的给定表名的TableMeta实例。
 
方法摘要
 void addPrimaryKey(String name, PrimaryKeyType type)
          添加一个主键列。
 void addView(ViewMeta view)
          添加一个视图。
 Map<String,PrimaryKeyType> getPrimaryKeys()
          返回主键的列名与值的只读对应字典。
 String getTableGroupName()
          返回表所在的表组名。
 String getTableName()
          返回表名。
 List<ViewMeta> getViews()
          返回与该表相关的视图的列表(只读)。
 void setTableGroupName(String tableGroupName)
          设置表所在的表组名,为空指针或空字符串表示表不在表组中。
 void setTableName(String tableName)
          设置表名。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

TableMeta

public TableMeta(String tableName)
创建一个新的给定表名的TableMeta实例。

参数:
tableName - 表名。
方法详细信息

getTableName

public String getTableName()
返回表名。

返回:
表名。

setTableName

public void setTableName(String tableName)
设置表名。

参数:
tableName - 表名。

getTableGroupName

public String getTableGroupName()
返回表所在的表组名。 为空指针或空字符串表示表不在表组中。

返回:
表组名。

setTableGroupName

public void setTableGroupName(String tableGroupName)
设置表所在的表组名,为空指针或空字符串表示表不在表组中。

参数:
tableGroupName - 表组名。

getPrimaryKeys

public Map<String,PrimaryKeyType> getPrimaryKeys()
返回主键的列名与值的只读对应字典。

返回:
主键的列名与值的只读对应字典。

addPrimaryKey

public void addPrimaryKey(String name,
                          PrimaryKeyType type)
添加一个主键列。

参数:
name - 主键列的名称。
type - 主键列的数据类型。

getViews

public List<ViewMeta> getViews()
返回与该表相关的视图的列表(只读)。

返回:
与该表相关的视图的列表(只读)。

addView

public void addView(ViewMeta view)
添加一个视图。

参数:
view - ViewMeta实例。


Copyright © 2013. All Rights Reserved.