软件包 | 描述 |
---|---|
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.