Uses of Class java.util.Calendar (Java 2 Platform SE v1.4.1_"07")

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

JavaTM 2 Platform
Std. Ed. v1.4.1_"07"

PREV NEXT | FRAMES NO FRAMES

## Uses of Class
java.util.Calendar

Packages that use Calendar
java.sql | Provides the API for accessing and processing data stored in a data source (usually a relational database) using the JavaTM 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 JavaTM programming language.

Uses of Calendar in java.sql

Methods in java.sql with parameters of type Calendar
`Date` | `ResultSet.getDate(int columnIndex, Calendar cal)` 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` | `ResultSet.getDate(String columnName, Calendar cal)` 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.
`Time` | `ResultSet.getTime(int columnIndex, Calendar cal)` 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` | `ResultSet.getTime(String columnName, Calendar cal)` 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.
`Timestamp` | `ResultSet.getTimestamp(int columnIndex, Calendar cal)` 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` | `ResultSet.getTimestamp(String columnName, Calendar cal)` 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.
`void` | `PreparedStatement.setDate(int parameterIndex, Date x, Calendar cal)` Sets the designated parameter to the given `java.sql.Date` value, using the given `Calendar` object.
`void` | `PreparedStatement.setTime(int parameterIndex, Time x, Calendar cal)` Sets the designated parameter to the given `java.sql.Time` value, using the given `Calendar` object.
`void` | `PreparedStatement.setTimestamp(int parameterIndex, Timestamp x, Calendar cal)` Sets the designated parameter to the given `java.sql.Timestamp` value, using the given `Calendar` object.
`Date` | `CallableStatement.getDate(int parameterIndex, Calendar cal)` Retrieves the value of the designated JDBC `DATE` parameter as a `java.sql.Date` object, using the given `Calendar` object to construct the date.
`Time` | `CallableStatement.getTime(int parameterIndex, Calendar cal)` Retrieves the value of the designated JDBC `TIME` parameter as a `java.sql.Time` object, using the given `Calendar` object to construct the time.
`Timestamp` | `CallableStatement.getTimestamp(int parameterIndex, Calendar cal)` 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.
`void` | `CallableStatement.setDate(String parameterName, Date x, Calendar cal)` Sets the designated parameter to the given `java.sql.Date` value, using the given `Calendar` object.
`void` | `CallableStatement.setTime(String parameterName, Time x, Calendar cal)` Sets the designated parameter to the given `java.sql.Time` value, using the given `Calendar` object.
`void` | `CallableStatement.setTimestamp(String parameterName, Timestamp x, Calendar cal)` Sets the designated parameter to the given `java.sql.Timestamp` value, using the given `Calendar` object.
`Date` | `CallableStatement.getDate(String parameterName, Calendar cal)` Retrieves the value of a JDBC `DATE` parameter as a `java.sql.Date` object, using the given `Calendar` object to construct the date.
`Time` | `CallableStatement.getTime(String parameterName, Calendar cal)` Retrieves the value of a JDBC `TIME` parameter as a `java.sql.Time` object, using the given `Calendar` object to construct the time.
`Timestamp` | `CallableStatement.getTimestamp(String parameterName, Calendar cal)` Retrieves the value of a JDBC `TIMESTAMP` parameter as a `java.sql.Timestamp` object, using the given `Calendar` object to construct the `Timestamp` object.

Uses of Calendar in java.text

Fields in java.text declared as Calendar
`protected Calendar` | `DateFormat.calendar` The calendar that `DateFormat` uses to produce the time field values needed to implement date and time formatting.

Methods in java.text that return Calendar
`Calendar` | `DateFormat.getCalendar()` Gets the calendar associated with this date/time formatter.

Methods in java.text with parameters of type Calendar
`void` | `DateFormat.setCalendar(Calendar newCalendar)` Set the calendar to be used by this date format.

Uses of Calendar in java.util

Subclasses of Calendar in java.util
`class` | `GregorianCalendar` `GregorianCalendar` is a concrete subclass of `Calendar` and provides the standard calendar used by most of the world.

Methods in java.util that return Calendar
`static Calendar` | `Calendar.getInstance()` Gets a calendar using the default time zone and locale.
`static Calendar` | `Calendar.getInstance(TimeZone zone)` Gets a calendar using the specified time zone and default locale.
`static Calendar` | `Calendar.getInstance(Locale aLocale)` Gets a calendar using the default time zone and specified locale.
`static Calendar` | `Calendar.getInstance(TimeZone zone, Locale aLocale)` Gets a calendar with the specified time zone and locale.

Uses of Calendar in javax.sql

Methods in javax.sql with parameters of type Calendar
`void` | `RowSet.setDate(int parameterIndex, Date x, Calendar cal)` Sets the designated parameter in this `RowSet` object's command with the given `java.sql.Date` value.
`void` | `RowSet.setTime(int parameterIndex, Time x, Calendar cal)` Sets the designated parameter in this `RowSet` object's command with the given `java.sql.Time` value.
`void` | `RowSet.setTimestamp(int parameterIndex, Timestamp x, Calendar cal)` Sets the designated parameter in this `RowSet` object's command with the given `java.sql.Timestamp` value.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

JavaTM 2 Platform
Std. Ed. v1.4.1_"07"

PREV NEXT | FRAMES NO FRAMES

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.