本文整理汇总了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);
}
示例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);
}
}
示例3: getTIMESTAMPTZ
import oracle.sql.TIMESTAMPTZ; //导入依赖的package包/类
@Override
public TIMESTAMPTZ getTIMESTAMPTZ(int paramInt) throws SQLException {
return oracleRs.getTIMESTAMPTZ(paramInt);
}
示例4: updateTIMESTAMPTZ
import oracle.sql.TIMESTAMPTZ; //导入依赖的package包/类
@Override
public void updateTIMESTAMPTZ(int paramInt, TIMESTAMPTZ paramTIMESTAMPTZ)
throws SQLException {
oracleRs.updateTIMESTAMPTZ(paramInt, paramTIMESTAMPTZ);
}
示例5: setTIMESTAMPTZ
import oracle.sql.TIMESTAMPTZ; //导入依赖的package包/类
@Override
public void setTIMESTAMPTZ(int paramInt, TIMESTAMPTZ paramTIMESTAMPTZ)
throws SQLException {
oraclePs.setTIMESTAMPTZ(paramInt, paramTIMESTAMPTZ);
}
示例6: setTIMESTAMPTZAtName
import oracle.sql.TIMESTAMPTZ; //导入依赖的package包/类
@Override
public void setTIMESTAMPTZAtName(String paramString,
TIMESTAMPTZ paramTIMESTAMPTZ) throws SQLException {
oraclePs.setTIMESTAMPTZAtName(paramString, paramTIMESTAMPTZ);
}
示例7: getTIMESTAMPTZ
import oracle.sql.TIMESTAMPTZ; //导入依赖的package包/类
@Override
public TIMESTAMPTZ getTIMESTAMPTZ(int paramInt) throws SQLException {
return oraclePs.getTIMESTAMPTZ(paramInt);
}
示例8: createTIMESTAMPTZ
import oracle.sql.TIMESTAMPTZ; //导入依赖的package包/类
@Override
public TIMESTAMPTZ createTIMESTAMPTZ(Date paramDate) throws SQLException {
return oracleConnection.createTIMESTAMPTZ(paramDate);
}
示例9: setTIMESTAMPTZ
import oracle.sql.TIMESTAMPTZ; //导入依赖的package包/类
@Override
public void setTIMESTAMPTZ(int paramInt, TIMESTAMPTZ paramTIMESTAMPTZ)
throws SQLException {
oraclePs.setTIMESTAMPTZ(paramInt, paramTIMESTAMPTZ);
}
示例10: setTIMESTAMPTZAtName
import oracle.sql.TIMESTAMPTZ; //导入依赖的package包/类
@Override
public void setTIMESTAMPTZAtName(String paramString,
TIMESTAMPTZ paramTIMESTAMPTZ) throws SQLException {
oraclePs.setTIMESTAMPTZAtName(paramString, paramTIMESTAMPTZ);
}
示例11: getTIMESTAMPTZ
import oracle.sql.TIMESTAMPTZ; //导入依赖的package包/类
TIMESTAMPTZ getTIMESTAMPTZ(int columnIndex);
示例12: setTIMESTAMPTZ
import oracle.sql.TIMESTAMPTZ; //导入依赖的package包/类
void setTIMESTAMPTZ(int parameterIndex, TIMESTAMPTZ x) throws SQLException;