パッケージ com.osboffice.osbxl.dto
クラス DateTimeObjectWrapper
java.lang.Object
com.osboffice.osbxl.dto.DateTimeObjectWrapper
日付/時刻を扱うオブジェクトです。検索条件等で用いる際に、必要な項目のみ設定することがあります。(例:年月)
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明intgetDay()日を取得します。intgetHour()時刻(時)を取得します。int時刻(分)を取得します。intgetMonth()月を取得します。int時刻(秒)を取得します。intgetYear()年を取得します。voidsetDay(int day) 日を設定します。voidsetHMS(int hour, int minute, int second) 時刻(時分秒)を設定します。voidsetHour(int hour) 時刻(時)を設定します。voidsetMinute(int minute) 時刻(分)を設定します。voidsetMonth(int month) 月を設定します。voidsetSecond(int second) 時刻(秒)を設定します。voidsetYear(int year) 年を設定します。voidsetYMD(int year, int month, int day) 年月日を設定します。
-
コンストラクタの詳細
-
DateTimeObjectWrapper
public DateTimeObjectWrapper()コンストラクタインスタンスを作成します。
-
-
メソッドの詳細
-
getYear
public int getYear()年を取得します。- 戻り値:
- 年
-
getMonth
public int getMonth()月を取得します。- 戻り値:
- 月
-
getDay
public int getDay()日を取得します。- 戻り値:
- 日
-
getHour
public int getHour()時刻(時)を取得します。- 戻り値:
- 時刻(時)
-
getMinute
public int getMinute()時刻(分)を取得します。- 戻り値:
- 時刻(分)
-
getSecond
public int getSecond()時刻(秒)を取得します。- 戻り値:
- 時刻(秒)
-
setYear
public void setYear(int year) 年を設定します。- パラメータ:
year- 年
-
setMonth
public void setMonth(int month) 月を設定します。- パラメータ:
month- 月
-
setDay
public void setDay(int day) 日を設定します。- パラメータ:
day- 日
-
setYMD
public void setYMD(int year, int month, int day) 年月日を設定します。- パラメータ:
year- 年month- 月day- 日
-
setHour
public void setHour(int hour) 時刻(時)を設定します。- パラメータ:
hour- 時刻(時)
-
setMinute
public void setMinute(int minute) 時刻(分)を設定します。- パラメータ:
minute- 時刻(分)
-
setSecond
public void setSecond(int second) 時刻(秒)を設定します。- パラメータ:
second- 時刻(秒)
-
setHMS
public void setHMS(int hour, int minute, int second) 時刻(時分秒)を設定します。- パラメータ:
hour- 時minute- 分second- 秒
-