| Package | Description |
|---|---|
| java.sql |
Provides the API for accessing and processing data stored in a data source (usually a relational database) using the Java
TM programming language.
|
| java.text |
Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages.
|
| java.util |
Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).
|
| javax.sql |
Provides the API for server side data source access and processing from the Java
TM programming language.
|
| javax.sql.rowset |
Standard interfaces and base classes for JDBC
RowSet implementations.
|
| javax.xml.bind |
Provides a runtime binding framework for client applications including unmarshalling, marshalling, and validation capabilities.
|
| javax.xml.datatype |
XML/Java Type Mappings.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
ResultSet.getDate(int columnIndex, Calendar
Retrieves the value of the designated column in the current row of this
ResultSet object as a
java.sql.Date object in the Java programming language.
|
Date |
CallableStatement.getDate(int parameterIndex, Calendar
Retrieves the value of the designated JDBC
DATE parameter as a
java.sql.Date object, using the given
Calendar object to construct the date.
|
Date |
ResultSet.getDate(String
Retrieves the value of the designated column in the current row of this
ResultSet object as a
java.sql.Date object in the Java programming language.
|
Date |
CallableStatement.getDate(String
Retrieves the value of a JDBC
DATE parameter as a
java.sql.Date object, using the given
Calendar object to construct the date.
|
Time |
ResultSet.getTime(int columnIndex, Calendar
Retrieves the value of the designated column in the current row of this
ResultSet object as a
java.sql.Time object in the Java programming language.
|
Time |
CallableStatement.getTime(int parameterIndex, Calendar
Retrieves the value of the designated JDBC
TIME parameter as a
java.sql.Time object, using the given
Calendar object to construct the time.
|
Time |
ResultSet.getTime(String
Retrieves the value of the designated column in the current row of this
ResultSet object as a
java.sql.Time object in the Java programming language.
|
Time |
CallableStatement.getTime(String
Retrieves the value of a JDBC
TIME parameter as a
java.sql.Time object, using the given
Calendar object to construct the time.
|
Timestamp |
ResultSet.getTimestamp(int columnIndex, Calendar
Retrieves the value of the designated column in the current row of this
ResultSet object as a
java.sql.Timestamp object in the Java programming language.
|
Timestamp |
CallableStatement.getTimestamp(int parameterIndex, Calendar
Retrieves the value of the designated JDBC
TIMESTAMP parameter as a
java.sql.Timestamp object, using the given
Calendar object to construct the
Timestamp object.
|
Timestamp |
ResultSet.getTimestamp(String
Retrieves the value of the designated column in the current row of this
ResultSet object as a
java.sql.Timestamp object in the Java programming language.
|
Timestamp |
CallableStatement.getTimestamp(String
Retrieves the value of a JDBC
TIMESTAMP parameter as a
java.sql.Timestamp object, using the given
Calendar object to construct the
Timestamp object.
|
void |
PreparedStatement.setDate(int parameterIndex, Date
Sets the designated parameter to the given
java.sql.Date value, using the given
Calendar object.
|
void |
CallableStatement.setDate(String
Sets the designated parameter to the given
java.sql.Date value, using the given
Calendar object.
|
void |
PreparedStatement.setTime(int parameterIndex, Time
Sets the designated parameter to the given
java.sql.Time value, using the given
Calendar object.
|
void |
CallableStatement.setTime(String
Sets the designated parameter to the given
java.sql.Time value, using the given
Calendar object.
|
void |
PreparedStatement.setTimestamp(int parameterIndex, Timestamp
Sets the designated parameter to the given
java.sql.Timestamp value, using the given
Calendar object.
|
void |
CallableStatement.setTimestamp(String
Sets the designated parameter to the given
java.sql.Timestamp value, using the given
Calendar object.
|
| Modifier and Type | Field and Description |
|---|---|
protected Calendar |
DateFormat.calendar
The
Calendar instance used for calculating the date-time fields and the instant of time.
|
| Modifier and Type | Method and Description |
|---|---|
Calendar |
DateFormat.getCalendar()
Gets the calendar associated with this date/time formatter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DateFormat.setCalendar(Calendar
Set the calendar to be used by this date format.
|
| Modifier and Type | Class and Description |
|---|---|
class |
GregorianCalendar
GregorianCalendar is a concrete subclass of
Calendar and provides the standard calendar system used by most of the world.
|
| Modifier and Type | Method and Description |
|---|---|
Calendar |
Calendar.Builder.build()
Returns a
Calendar built from the parameters set by the setter methods.
|
static Calendar |
Calendar.getInstance()
Gets a calendar using the default time zone and locale.
|
static Calendar |
Calendar.getInstance(Locale
Gets a calendar using the default time zone and specified locale.
|
static Calendar |
Calendar.getInstance(TimeZone
Gets a calendar using the specified time zone and default locale.
|
static Calendar |
Calendar.getInstance(TimeZone
Gets a calendar with the specified time zone and locale.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Calendar.compareTo(Calendar
Compares the time values (millisecond offsets from the
Epoch) represented by two
Calendar objects.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RowSet.setDate(int parameterIndex, Date
Sets the designated parameter in this
RowSet object's command with the given
java.sql.Date value.
|
void |
RowSet.setDate(String
Sets the designated parameter to the given
java.sql.Date value, using the given
Calendar object.
|
void |
RowSet.setTime(int parameterIndex, Time
Sets the designated parameter in this
RowSet object's command with the given
java.sql.Time value.
|
void |
RowSet.setTime(String
Sets the designated parameter to the given
java.sql.Time value, using the given
Calendar object.
|
void |
RowSet.setTimestamp(int parameterIndex, Timestamp
Sets the designated parameter in this
RowSet object's command with the given
java.sql.Timestamp value.
|
void |
RowSet.setTimestamp(String
Sets the designated parameter to the given
java.sql.Timestamp value, using the given
Calendar object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BaseRowSet.setDate(int parameterIndex, Date
Sets the designated parameter to the given
java.sql.Date object.
|
void |
BaseRowSet.setDate(String
Sets the designated parameter to the given
java.sql.Date value, using the given
Calendar object.
|
void |
BaseRowSet.setTime(int parameterIndex, Time
Sets the designated parameter to the given
java.sql.Time object.
|
void |
BaseRowSet.setTime(String
Sets the designated parameter to the given
java.sql.Time value, using the given
Calendar object.
|
void |
BaseRowSet.setTimestamp(int parameterIndex, Timestamp
Sets the designated parameter to the given
java.sql.Timestamp object.
|
void |
BaseRowSet.setTimestamp(String
Sets the designated parameter to the given
java.sql.Timestamp value, using the given
Calendar object.
|
| Modifier and Type | Method and Description |
|---|---|
static Calendar |
DatatypeConverter.parseDate(String
Converts the string argument into a Calendar value.
|
Calendar |
DatatypeConverterInterface.parseDate(String
Converts the string argument into a Calendar value.
|
static Calendar |
DatatypeConverter.parseDateTime(String
Converts the string argument into a Calendar value.
|
Calendar |
DatatypeConverterInterface.parseDateTime(String
Converts the string argument into a Calendar value.
|
static Calendar |
DatatypeConverter.parseTime(String
Converts the string argument into a Calendar value.
|
Calendar |
DatatypeConverterInterface.parseTime(String
Converts the string argument into a Calendar value.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
DatatypeConverter.printDate(Calendar
Converts a Calendar value into a string.
|
String |
DatatypeConverterInterface.printDate(Calendar
Converts a Calendar value into a string.
|
static String |
DatatypeConverter.printDateTime(Calendar
Converts a Calendar value into a string.
|
String |
DatatypeConverterInterface.printDateTime(Calendar
Converts a Calendar value into a string.
|
static String |
DatatypeConverter.printTime(Calendar
Converts a Calendar value into a string.
|
String |
DatatypeConverterInterface.printTime(Calendar
Converts a Calendar value into a string.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
Duration.addTo(Calendar
Adds this duration to a
Calendar object.
|
long |
Duration.getTimeInMillis(Calendar
Returns the length of the duration in milli-seconds.
|
abstract Duration |
Duration.normalizeWith(Calendar
Converts the years and months fields into the days field by using a specific time instant as the reference point.
|