当前位置: 首页>>代码示例>>Java>>正文


Java TIMESTAMPTZ类代码示例

本文整理汇总了Java中oracle.sql.TIMESTAMPTZ的典型用法代码示例。如果您正苦于以下问题:Java TIMESTAMPTZ类的具体用法?Java TIMESTAMPTZ怎么用?Java TIMESTAMPTZ使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


TIMESTAMPTZ类属于oracle.sql包,在下文中一共展示了TIMESTAMPTZ类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: serialize

import oracle.sql.TIMESTAMPTZ; //导入依赖的package包/类
@Override
public void serialize(Datum datum, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException, JsonProcessingException {
  JsonDatum storage = new JsonDatum();
  storage.value = datum.getBytes();

  if (datum instanceof DATE) {
    storage.datumType = ColumnValue.DATE;
  } else if (datum instanceof CHAR) {
    storage.charset = ((CHAR) datum).getCharacterSet().getOracleId();
    storage.datumType = ColumnValue.CHAR;
  } else if (datum instanceof NUMBER) {
    storage.datumType = ColumnValue.NUMBER;
  } else if (datum instanceof TIMESTAMP) {
    storage.datumType = ColumnValue.TIMESTAMP;
  } else if (datum instanceof BINARY_DOUBLE) {
    storage.datumType = ColumnValue.BINARY_DOUBLE;
  } else if (datum instanceof BINARY_FLOAT) {
    storage.datumType = ColumnValue.BINARY_FLOAT;
  } else if (datum instanceof TIMESTAMPLTZ) {
    storage.datumType = ColumnValue.TIMESTAMPLTZ;
  } else if (datum instanceof TIMESTAMPTZ) {
    storage.datumType = ColumnValue.TIMESTAMPTZ;
  } else {
    throw new UnsupportedOperationException("datum not supported. " + datum.toString());
  }

  jsonGenerator.writeObject(storage);
}
 
开发者ID:jcustenborder,项目名称:kafka-connect-cdc-oracle,代码行数:29,代码来源:JsonDatum.java

示例2: convertTimestampTZ

import oracle.sql.TIMESTAMPTZ; //导入依赖的package包/类
Object convertTimestampTZ(ChangeKey changeKey, Datum datum) throws SQLException {
  PooledConnection pooledConnection = null;
  try {
    pooledConnection = JdbcUtils.openPooledConnection(this.config, changeKey);
    return new Date(((TIMESTAMPTZ) datum).timestampValue(pooledConnection.getConnection()).getTime());
  } finally {
    JdbcUtils.closeConnection(pooledConnection);
  }
}
 
开发者ID:jcustenborder,项目名称:kafka-connect-cdc-oracle,代码行数:10,代码来源:OracleChange.java

示例3: getTIMESTAMPTZ

import oracle.sql.TIMESTAMPTZ; //导入依赖的package包/类
@Override
public TIMESTAMPTZ getTIMESTAMPTZ(int paramInt) throws SQLException {
	return oracleRs.getTIMESTAMPTZ(paramInt);
}
 
开发者ID:dd00f,项目名称:ibm-performance-monitor,代码行数:5,代码来源:WrappedOracleResultSet.java

示例4: updateTIMESTAMPTZ

import oracle.sql.TIMESTAMPTZ; //导入依赖的package包/类
@Override
public void updateTIMESTAMPTZ(int paramInt, TIMESTAMPTZ paramTIMESTAMPTZ)
		throws SQLException {
	oracleRs.updateTIMESTAMPTZ(paramInt, paramTIMESTAMPTZ);

}
 
开发者ID:dd00f,项目名称:ibm-performance-monitor,代码行数:7,代码来源:WrappedOracleResultSet.java

示例5: setTIMESTAMPTZ

import oracle.sql.TIMESTAMPTZ; //导入依赖的package包/类
@Override
public void setTIMESTAMPTZ(int paramInt, TIMESTAMPTZ paramTIMESTAMPTZ)
		throws SQLException {
	oraclePs.setTIMESTAMPTZ(paramInt, paramTIMESTAMPTZ);

}
 
开发者ID:dd00f,项目名称:ibm-performance-monitor,代码行数:7,代码来源:WrappedOracleCallableStatement.java

示例6: setTIMESTAMPTZAtName

import oracle.sql.TIMESTAMPTZ; //导入依赖的package包/类
@Override
public void setTIMESTAMPTZAtName(String paramString,
		TIMESTAMPTZ paramTIMESTAMPTZ) throws SQLException {
	oraclePs.setTIMESTAMPTZAtName(paramString, paramTIMESTAMPTZ);

}
 
开发者ID:dd00f,项目名称:ibm-performance-monitor,代码行数:7,代码来源:WrappedOracleCallableStatement.java

示例7: getTIMESTAMPTZ

import oracle.sql.TIMESTAMPTZ; //导入依赖的package包/类
@Override
public TIMESTAMPTZ getTIMESTAMPTZ(int paramInt) throws SQLException {
	return oraclePs.getTIMESTAMPTZ(paramInt);
}
 
开发者ID:dd00f,项目名称:ibm-performance-monitor,代码行数:5,代码来源:WrappedOracleCallableStatement.java

示例8: createTIMESTAMPTZ

import oracle.sql.TIMESTAMPTZ; //导入依赖的package包/类
@Override
public TIMESTAMPTZ createTIMESTAMPTZ(Date paramDate) throws SQLException {
	return oracleConnection.createTIMESTAMPTZ(paramDate);
}
 
开发者ID:dd00f,项目名称:ibm-performance-monitor,代码行数:5,代码来源:WrappedOracleConnection.java

示例9: setTIMESTAMPTZ

import oracle.sql.TIMESTAMPTZ; //导入依赖的package包/类
@Override
public void setTIMESTAMPTZ(int paramInt, TIMESTAMPTZ paramTIMESTAMPTZ)
		throws SQLException {
	oraclePs.setTIMESTAMPTZ(paramInt, paramTIMESTAMPTZ);
	
}
 
开发者ID:dd00f,项目名称:ibm-performance-monitor,代码行数:7,代码来源:WrappedOraclePreparedStatement.java

示例10: setTIMESTAMPTZAtName

import oracle.sql.TIMESTAMPTZ; //导入依赖的package包/类
@Override
public void setTIMESTAMPTZAtName(String paramString,
		TIMESTAMPTZ paramTIMESTAMPTZ) throws SQLException {
	oraclePs.setTIMESTAMPTZAtName(paramString, paramTIMESTAMPTZ);
	
}
 
开发者ID:dd00f,项目名称:ibm-performance-monitor,代码行数:7,代码来源:WrappedOraclePreparedStatement.java

示例11: getTIMESTAMPTZ

import oracle.sql.TIMESTAMPTZ; //导入依赖的package包/类
TIMESTAMPTZ getTIMESTAMPTZ(int columnIndex); 
开发者ID:ferstl,项目名称:spring-jdbc-oracle,代码行数:2,代码来源:OracleResultSet.java

示例12: setTIMESTAMPTZ

import oracle.sql.TIMESTAMPTZ; //导入依赖的package包/类
void setTIMESTAMPTZ(int parameterIndex, TIMESTAMPTZ x) throws SQLException; 
开发者ID:ferstl,项目名称:spring-jdbc-oracle,代码行数:2,代码来源:OraclePreparedStatement.java


注:本文中的oracle.sql.TIMESTAMPTZ类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。