Uses of Class
java.util.Calendar
| Package | Description |
|---|---|
| java.sql |
Provides the API for accessing and processing data stored in a
data source (usually a relational database) using the
Java™ 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, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
|
| javax.sql |
Provides the API for server side data source access and processing from
the Java™ programming language.
|
| javax.sql.rowset |
Standard interfaces and base classes for JDBC
RowSet
implementations. |
| javax.xml.datatype |
Defines XML/Java Type Mappings.
|
-
Uses of Calendar in java.sql
Methods in java.sql with parameters of type Calendar Modifier and Type Method Description DateCallableStatement. getDate(int parameterIndex, Calendar cal)Retrieves the value of the designated JDBCDATEparameter as ajava.sql.Dateobject, using the givenCalendarobject to construct the date.DateCallableStatement. getDate(String parameterName, Calendar cal)Retrieves the value of a JDBCDATEparameter as ajava.sql.Dateobject, using the givenCalendarobject to construct the date.DateResultSet. getDate(int columnIndex, Calendar cal)Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Dateobject in the Java programming language.DateResultSet. getDate(String columnLabel, Calendar cal)Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Dateobject in the Java programming language.TimeCallableStatement. getTime(int parameterIndex, Calendar cal)Retrieves the value of the designated JDBCTIMEparameter as ajava.sql.Timeobject, using the givenCalendarobject to construct the time.TimeCallableStatement. getTime(String parameterName, Calendar cal)Retrieves the value of a JDBCTIMEparameter as ajava.sql.Timeobject, using the givenCalendarobject to construct the time.TimeResultSet. getTime(int columnIndex, Calendar cal)Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timeobject in the Java programming language.TimeResultSet. getTime(String columnLabel, Calendar cal)Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timeobject in the Java programming language.TimestampCallableStatement. getTimestamp(int parameterIndex, Calendar cal)Retrieves the value of the designated JDBCTIMESTAMPparameter as ajava.sql.Timestampobject, using the givenCalendarobject to construct theTimestampobject.TimestampCallableStatement. getTimestamp(String parameterName, Calendar cal)Retrieves the value of a JDBCTIMESTAMPparameter as ajava.sql.Timestampobject, using the givenCalendarobject to construct theTimestampobject.TimestampResultSet. getTimestamp(int columnIndex, Calendar cal)Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timestampobject in the Java programming language.TimestampResultSet. getTimestamp(String columnLabel, Calendar cal)Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timestampobject in the Java programming language.voidCallableStatement. setDate(String parameterName, Date x, Calendar cal)Sets the designated parameter to the givenjava.sql.Datevalue, using the givenCalendarobject.voidPreparedStatement. setDate(int parameterIndex, Date x, Calendar cal)Sets the designated parameter to the givenjava.sql.Datevalue, using the givenCalendarobject.voidCallableStatement. setTime(String parameterName, Time x, Calendar cal)Sets the designated parameter to the givenjava.sql.Timevalue, using the givenCalendarobject.voidPreparedStatement. setTime(int parameterIndex, Time x, Calendar cal)Sets the designated parameter to the givenjava.sql.Timevalue, using the givenCalendarobject.voidCallableStatement. setTimestamp(String parameterName, Timestamp x, Calendar cal)Sets the designated parameter to the givenjava.sql.Timestampvalue, using the givenCalendarobject.voidPreparedStatement. setTimestamp(int parameterIndex, Timestamp x, Calendar cal)Sets the designated parameter to the givenjava.sql.Timestampvalue, using the givenCalendarobject. -
Uses of Calendar in java.text
Fields in java.text declared as Calendar Modifier and Type Field Description protected CalendarDateFormat. calendarTheCalendarinstance used for calculating the date-time fields and the instant of time.Methods in java.text that return Calendar Modifier and Type Method Description CalendarDateFormat. getCalendar()Gets the calendar associated with this date/time formatter.Methods in java.text with parameters of type Calendar Modifier and Type Method Description voidDateFormat. 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 Modifier and Type Class Description classGregorianCalendarGregorianCalendaris a concrete subclass ofCalendarand provides the standard calendar system used by most of the world.Methods in java.util that return Calendar Modifier and Type Method Description CalendarCalendar.Builder. build()Returns aCalendarbuilt from the parameters set by the setter methods.static CalendarCalendar. getInstance()Gets a calendar using the default time zone and locale.static CalendarCalendar. getInstance(Locale aLocale)Gets a calendar using the default time zone and specified locale.static CalendarCalendar. getInstance(TimeZone zone)Gets a calendar using the specified time zone and default locale.static CalendarCalendar. 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 Modifier and Type Method Description voidRowSet. setDate(int parameterIndex, Date x, Calendar cal)Sets the designated parameter in thisRowSetobject's command with the givenjava.sql.Datevalue.voidRowSet. setDate(String parameterName, Date x, Calendar cal)Sets the designated parameter to the givenjava.sql.Datevalue, using the givenCalendarobject.voidRowSet. setTime(int parameterIndex, Time x, Calendar cal)Sets the designated parameter in thisRowSetobject's command with the givenjava.sql.Timevalue.voidRowSet. setTime(String parameterName, Time x, Calendar cal)Sets the designated parameter to the givenjava.sql.Timevalue, using the givenCalendarobject.voidRowSet. setTimestamp(int parameterIndex, Timestamp x, Calendar cal)Sets the designated parameter in thisRowSetobject's command with the givenjava.sql.Timestampvalue.voidRowSet. setTimestamp(String parameterName, Timestamp x, Calendar cal)Sets the designated parameter to the givenjava.sql.Timestampvalue, using the givenCalendarobject. -
Uses of Calendar in javax.sql.rowset
Methods in javax.sql.rowset with parameters of type Calendar Modifier and Type Method Description voidBaseRowSet. setDate(int parameterIndex, Date x, Calendar cal)Sets the designated parameter to the givenjava.sql.Dateobject.voidBaseRowSet. setDate(String parameterName, Date x, Calendar cal)Sets the designated parameter to the givenjava.sql.Datevalue, using the givenCalendarobject.voidBaseRowSet. setTime(int parameterIndex, Time x, Calendar cal)Sets the designated parameter to the givenjava.sql.Timeobject.voidBaseRowSet. setTime(String parameterName, Time x, Calendar cal)Sets the designated parameter to the givenjava.sql.Timevalue, using the givenCalendarobject.voidBaseRowSet. setTimestamp(int parameterIndex, Timestamp x, Calendar cal)Sets the designated parameter to the givenjava.sql.Timestampobject.voidBaseRowSet. setTimestamp(String parameterName, Timestamp x, Calendar cal)Sets the designated parameter to the givenjava.sql.Timestampvalue, using the givenCalendarobject. -
Uses of Calendar in javax.xml.datatype
Methods in javax.xml.datatype with parameters of type Calendar Modifier and Type Method Description abstract voidDuration. addTo(Calendar calendar)Adds this duration to aCalendarobject.longDuration. getTimeInMillis(Calendar startInstant)Returns the length of the duration in milli-seconds.abstract DurationDuration. normalizeWith(Calendar startTimeInstant)Converts the years and months fields into the days field by using a specific time instant as the reference point.