时间系列方法

IfmxTimeSeries 类中的时间系列方法用于处理时间系列。

表 1. 时间系列方法
方法 特征符 描述
clip public IfmxTimeSeries clip(java.sql.Timestamp start, java.sql.Timestamp end) throws SQLException 返回新的 IfmxTimeSeries 对象,包含开始点与结束点之间的元素。
getCalendar public IfmxCalendar getCalendar() throws SQLException 返回与 IfmxTimeSeries 对象关联的 IfmxCalendar 对象。
getContainerName public String getContainerName() throws SQLException 返回与 IfmxTimeSeries 对象关联的容器名称。如果未设置任何容器名称,返回 NULL
getNelems public int getNelems() throws SQLException 返回此 IfmxTimeSeries 对象中元素的数量。如果对象不包含任何元素或未初始化,返回 0
getNumberOf Elements int getNumberOfElements() 获得此 IfmxTimeSeries 对象中元素的数量。
getOffset int getOffset() 返回 IfmxTimeSeries 对象的偏移量。
getOrigin public int getOrigin() throws SQLException 返回 IfmxTimeSeries 对象的源。
hideElem public boolean hideElem() throws SQLException 隐藏当前元素。如果元素成功隐藏,返回 TRUE;否则返回 FALSE
inContainer public boolean inContainer() throws SQLException 如果 IfmxTimeSeries 对象在容器中,返回 TRUE;否则返回 FALSE
isHidden boolean isHidden() 如果当前元素已隐藏,返回 TRUE
isNull public boolean isNull(columnIndex int) throws SQLException

public boolean isNull(columnName String) throws SQLException

isNull 方法测试所选 TimeSeries 行的指定列上的值是否为 NULL,如果是,返回 TRUE,否则返回 FALSE。您可以按编号 (columnIndex) 或按名称 (columnName) 指定列。
isRegular public boolean isRegular() throws SQLException 如果 IfmxTimeSeries 对象表示常规时间系列,返回 TRUE;否则返回 FALSE
setConnection public void setConnection(connection Conn) throws SQLException 设置要用于更新时间系列元素的连接。必须是具有正确类型映射的有效连接。

当前不支持以下方法: