| 软件包 | 描述 |
|---|---|
| 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 |
|---|---|
Date |
ResultSet.getDate(int columnIndex)
检索指定的列在这
ResultSet对象的当前行的值作为java编程语言中的一个
java.sql.Date对象。
|
Date |
CallableStatement.getDate(int parameterIndex)
检索指定JDBC
DATE参数的值作为一个
java.sql.Date对象。
|
Date |
ResultSet.getDate(int columnIndex, Calendar cal)
检索指定的列在这
ResultSet对象的当前行的值作为java编程语言中的一个
java.sql.Date对象。
|
Date |
CallableStatement.getDate(int parameterIndex, Calendar cal)
检索指定JDBC
DATE参数的值作为一个
java.sql.Date对象,使用给定的
Calendar对象建立日期。
|
Date |
ResultSet.getDate(String columnLabel)
检索指定的列在这
ResultSet对象的当前行的值作为java编程语言中的一个
java.sql.Date对象。
|
Date |
CallableStatement.getDate(String parameterName)
检索一个JDBC
DATE参数的值作为一个
java.sql.Date对象。
|
Date |
ResultSet.getDate(String columnLabel, Calendar cal)
检索指定的列在这
ResultSet对象的当前行的值作为java编程语言中的一个
java.sql.Date对象。
|
Date |
CallableStatement.getDate(String parameterName, Calendar cal)
检索一个JDBC
DATE参数的值作为一个
java.sql.Date对象,使用给定的
Calendar对象建立日期。
|
Date |
SQLInput.readDate()
读取流中的下一个属性并将其作为
java.sql.Date对象。
|
static Date |
Date.valueOf(LocalDate date)
|
static Date |
Date.valueOf(String s)
转换日期格式的字符串在JDBC逃到
Date价值。
|
| Modifier and Type | Method and Description |
|---|---|
void |
PreparedStatement.setDate(int parameterIndex, Date x)
设置为给定
java.sql.Date价值利用虚拟机正在运行的应用程序的默认时区指定参数。
|
void |
PreparedStatement.setDate(int parameterIndex, Date x, Calendar cal)
设置指定的参数给定的
java.sql.Date值,使用给定的
Calendar对象。
|
void |
CallableStatement.setDate(String parameterName, Date x)
设置为给定
java.sql.Date价值利用虚拟机正在运行的应用程序的默认时区指定参数。
|
void |
CallableStatement.setDate(String parameterName, Date x, Calendar cal)
设置指定的参数给定的
java.sql.Date值,使用给定的
Calendar对象。
|
void |
ResultSet.updateDate(int columnIndex, Date x)
更新指定的列与
java.sql.Date价值。
|
void |
ResultSet.updateDate(String columnLabel, Date x)
更新指定的列与
java.sql.Date价值。
|
void |
SQLOutput.writeDate(Date x)
写下一个属性的流作为一个java.sql.date对象。
|
| Modifier and Type | Method and Description |
|---|---|
void |
RowSet.setDate(int parameterIndex, Date x)
设置指定的参数在这
RowSet对象的命令给定的
java.sql.Date价值。
|
void |
RowSet.setDate(int parameterIndex, Date x, Calendar cal)
设置指定的参数在这
RowSet对象的命令和给定的
java.sql.Date价值。
|
void |
RowSet.setDate(String parameterName, Date x)
设置为给定
java.sql.Date价值利用虚拟机正在运行的应用程序的默认时区指定参数。
|
void |
RowSet.setDate(String parameterName, Date x, Calendar cal)
设置指定的参数给定的
java.sql.Date值,使用给定的
Calendar对象。
|
| Modifier and Type | Method and Description |
|---|---|
void |
BaseRowSet.setDate(int parameterIndex, Date x)
设置为给定
java.sql.Date指定参数值。
|
void |
BaseRowSet.setDate(int parameterIndex, Date x, Calendar cal)
设置为给定
java.sql.Date对象指定的参数。
|
void |
BaseRowSet.setDate(String parameterName, Date x)
设置为给定
java.sql.Date价值利用虚拟机正在运行的应用程序的默认时区指定参数。
|
void |
BaseRowSet.setDate(String parameterName, Date x, Calendar cal)
设置指定的参数给定的
java.sql.Date值,使用给定的
Calendar对象。
|
| Modifier and Type | Method and Description |
|---|---|
Date |
SQLInputImpl.readDate()
在这
SQLInputImpl检索下一个属性作为一个
java.sql.Date对象。
|
| Modifier and Type | Method and Description |
|---|---|
void |
SQLOutputImpl.writeDate(Date x)
用java编程语言的
java.sql.Date反对这
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.