| 软件包 | 描述 |
|---|---|
| java.sql |
提供的API来访问和处理的数据存储在数据源(通常是一个关系数据库)使用java编程语言
TM。
|
| javax.sql |
提供了对服务器端数据源的访问和处理来自
TM java编程语言的API。
|
| javax.sql.rowset |
JDBC
RowSet实现标准接口和基类。
|
| javax.sql.rowset.serial |
提供实用类允许序列化映射之间的SQL类型和数据在java编程语言的类型。
|
| Modifier and Type | Method and Description |
|---|---|
static Timestamp |
Timestamp.from(Instant instant)
获得
Timestamp实例从一个
Instant对象。
|
Timestamp |
ResultSet.getTimestamp(int columnIndex)
检索指定的列在这
ResultSet对象的当前行的值作为java编程语言中的一个
java.sql.Timestamp对象。
|
Timestamp |
CallableStatement.getTimestamp(int parameterIndex)
检索指定JDBC
TIMESTAMP参数的值作为一个
java.sql.Timestamp对象。
|
Timestamp |
ResultSet.getTimestamp(int columnIndex, Calendar cal)
检索指定的列在这
ResultSet对象的当前行的值作为java编程语言中的一个
java.sql.Timestamp对象。
|
Timestamp |
CallableStatement.getTimestamp(int parameterIndex, Calendar cal)
检索指定JDBC
TIMESTAMP参数的值作为一个
java.sql.Timestamp对象,使用给定的
Calendar对象构建
Timestamp对象。
|
Timestamp |
ResultSet.getTimestamp(String columnLabel)
检索指定的列在这
ResultSet对象的当前行的值作为java编程语言中的一个
java.sql.Timestamp对象。
|
Timestamp |
CallableStatement.getTimestamp(String parameterName)
检索一个JDBC
TIMESTAMP参数的值作为一个
java.sql.Timestamp对象。
|
Timestamp |
ResultSet.getTimestamp(String columnLabel, Calendar cal)
检索指定的列在这
ResultSet对象的当前行的值作为java编程语言中的一个
java.sql.Timestamp对象。
|
Timestamp |
CallableStatement.getTimestamp(String parameterName, Calendar cal)
检索一个JDBC
TIMESTAMP参数的值作为一个
java.sql.Timestamp对象,使用给定的
Calendar对象构建
Timestamp对象。
|
Timestamp |
SQLInput.readTimestamp()
读取流中的下一个属性并将其作为
java.sql.Timestamp对象。
|
static Timestamp |
Timestamp.valueOf(LocalDateTime dateTime)
获得
Timestamp实例从
LocalDateTime对象,同年,月,日,小时,分钟,秒和Nano的日期时间值为
LocalDateTime。
|
static Timestamp |
Timestamp.valueOf(String s)
JDBC中的时间戳格式转换逃避
String对象到
Timestamp价值。
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Timestamp.after(Timestamp ts)
指示此
Timestamp对象是迟了
Timestamp对象。
|
boolean |
Timestamp.before(Timestamp ts)
指示此
Timestamp对象比给定的
Timestamp对象之前。
|
int |
Timestamp.compareTo(Timestamp ts)
比较这
Timestamp对象到给定的
Timestamp对象。
|
boolean |
Timestamp.equals(Timestamp ts)
测试看看这
Timestamp对象等于给定
Timestamp对象。
|
void |
PreparedStatement.setTimestamp(int parameterIndex, Timestamp x)
设置为给定
java.sql.Timestamp指定参数值。
|
void |
PreparedStatement.setTimestamp(int parameterIndex, Timestamp x, Calendar cal)
设置指定的参数给定的
java.sql.Timestamp值,使用给定的
Calendar对象。
|
void |
CallableStatement.setTimestamp(String parameterName, Timestamp x)
设置为给定
java.sql.Timestamp指定参数值。
|
void |
CallableStatement.setTimestamp(String parameterName, Timestamp x, Calendar cal)
设置指定的参数给定的
java.sql.Timestamp值,使用给定的
Calendar对象。
|
void |
ResultSet.updateTimestamp(int columnIndex, Timestamp x)
更新指定的列与
java.sql.Timestamp价值。
|
void |
ResultSet.updateTimestamp(String columnLabel, Timestamp x)
更新指定的列与
java.sql.Timestamp价值。
|
void |
SQLOutput.writeTimestamp(Timestamp x)
写下一个属性的流作为一个java.sql.timestamp对象。
|
| Modifier and Type | Method and Description |
|---|---|
void |
RowSet.setTimestamp(int parameterIndex, Timestamp x)
设置指定的参数在这
RowSet对象的命令给定的
java.sql.Timestamp价值。
|
void |
RowSet.setTimestamp(int parameterIndex, Timestamp x, Calendar cal)
设置指定的参数在这
RowSet对象的命令和给定的
java.sql.Timestamp价值。
|
void |
RowSet.setTimestamp(String parameterName, Timestamp x)
设置为给定
java.sql.Timestamp指定参数值。
|
void |
RowSet.setTimestamp(String parameterName, Timestamp x, Calendar cal)
设置指定的参数给定的
java.sql.Timestamp值,使用给定的
Calendar对象。
|
| Modifier and Type | Method and Description |
|---|---|
void |
BaseRowSet.setTimestamp(int parameterIndex, Timestamp x)
设置为给定
java.sql.Timestamp指定参数值。
|
void |
BaseRowSet.setTimestamp(int parameterIndex, Timestamp x, Calendar cal)
设置为给定
java.sql.Timestamp对象指定的参数。
|
void |
BaseRowSet.setTimestamp(String parameterName, Timestamp x)
设置为给定
java.sql.Timestamp指定参数值。
|
void |
BaseRowSet.setTimestamp(String parameterName, Timestamp x, Calendar cal)
设置指定的参数给定的
java.sql.Timestamp值,使用给定的
Calendar对象。
|
| Modifier and Type | Method and Description |
|---|---|
Timestamp |
SQLInputImpl.readTimestamp()
检索下一个属性在这
SQLInputImpl对象作为一个
java.sql.Timestamp对象。
|
| Modifier and Type | Method and Description |
|---|---|
void |
SQLOutputImpl.writeTimestamp(Timestamp x)
用java编程语言的
java.sql.Timestamp反对这
SQLOutputImpl对象。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.