public class FromToOption extends Object implements ConditionOption
e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29}
[Comparison Pattern]
new FromToOption().compareAsYear();
--> column >= '2007/01/01 00:00:00'
and column < '2008/01/01 00:00:00'
new FromToOption().compareAsMonth();
--> column >= '2007/04/01 00:00:00'
and column < '2007/05/01 00:00:00'
new FromToOption().compareAsDate();
--> column >= '2007/04/10 00:00:00'
and column < '2007/04/17 00:00:00'
new FromToOption().compareAsHour();
--> column >= '2007/04/10 08:00:00'
and column < '2007/04/16 15:00:00'
new FromToOption().compareAsWeek().beginWeek_DayOfWeek1st_Sunday();
--> column >= '2007/04/08 00:00:00'
and column < '2008/04/22 00:00:00'
new FromToOption().compareAsQuarterOfYear();
--> column >= '2007/04/01 00:00:00'
and column < '2007/07/01 00:00:00'
[Manual Adjustment]
new FromToOption().greaterThan();
--> column > '2007/04/10 08:24:53'
and column <= '2007/04/16 14:36:29'
new FromToOption().lessThan();
--> column >= '2007/04/10 08:24:53'
and column < '2007/04/16 14:36:29'
new FromToOption().greaterThan().lessThan();
--> column > '2007/04/10 08:24:53'
and column < '2007/04/16 14:36:29'
and so on...
[Default]
new FromToOption();
--> column >= '2007/04/10 08:24:53'
and column <= '2007/04/16 14:36:29'
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected Integer |
_dayBeginHour |
protected Integer |
_fromDateWithHour |
protected boolean |
_fromDateWithNoon |
protected boolean |
_fromPatternDayJust |
protected boolean |
_fromPatternHourJust |
protected boolean |
_fromPatternMonthJust |
protected boolean |
_fromPatternQuarterOfYearJust |
protected boolean |
_fromPatternWeekJust |
protected boolean |
_fromPatternYearJust |
protected boolean |
_greaterThan |
protected boolean |
_lessThan |
protected Integer |
_monthBeginDay |
protected Integer |
_moveToScope |
protected boolean |
_oneSideAllowed
Does it allow one-side only from-to?
|
protected boolean |
_orIsNull |
protected TimeZone |
_timeZone
The time-zone for filtering.
|
protected Integer |
_toDateWithHour |
protected boolean |
_toDateWithNoon |
protected boolean |
_toPatternNextDayJust |
protected boolean |
_toPatternNextHourJust |
protected boolean |
_toPatternNextMonthJust |
protected boolean |
_toPatternNextQuarterOfYearJust |
protected boolean |
_toPatternNextWeekJust |
protected boolean |
_toPatternNextYearJust |
protected boolean |
_usePattern |
protected Integer |
_weekBeginDay |
protected Integer |
_yearBeginMonth |
| コンストラクタと説明 |
|---|
FromToOption() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
addCalendarMillisecondOne(Calendar cal) |
FromToOption |
allowOneSide()
Allow you to set one-side only condition.
|
protected void |
assertArgumentNotNull(String name,
Object value) |
protected void |
assertNotAdjustmentAfterPattern(String option) |
protected void |
assertNotMinusNotOver(String name,
int value,
int max) |
protected void |
assertPatternOptionValid(String option) |
FromToOption |
beginDay_Hour(Date dayBeginHour)
Begin day from the specified hour.
|
FromToOption |
beginDay_Hour(int dayBeginHour)
Begin day from the specified hour.
|
FromToOption |
beginDay_Hour(LocalDate dayBeginHour)
Begin day from the specified hour.
|
FromToOption |
beginDay_Hour(LocalDateTime dayBeginHour)
Begin day from the specified hour.
|
FromToOption |
beginDay_PreviousHour(int dayBeginHour)
Begin day from the specified hour of previous day.
|
FromToOption |
beginMonth_Day(Date monthBeginDay)
Begin month from the specified day.
|
FromToOption |
beginMonth_Day(int monthBeginDay)
Begin month from the specified day.
|
FromToOption |
beginMonth_Day(LocalDate monthBeginDay)
Begin month from the specified day.
|
FromToOption |
beginMonth_Day(LocalDateTime monthBeginDay)
Begin month from the specified day.
|
FromToOption |
beginMonth_PreviousDay(int monthBeginDay)
Begin year from the specified day of previous month.
|
FromToOption |
beginWeek_DayOfWeek(Date weekBeginDayOfWeek)
Begin week from the specified day of week.
|
FromToOption |
beginWeek_DayOfWeek(LocalDate weekBeginDayOfWeek)
Begin week from the specified day of week.
|
FromToOption |
beginWeek_DayOfWeek(LocalDateTime weekBeginDayOfWeek)
Begin week from the specified day of week.
|
FromToOption |
beginWeek_DayOfWeek1st_Sunday()
Begin week from Sunday.
|
FromToOption |
beginWeek_DayOfWeek2nd_Monday()
Begin week from Monday.
|
FromToOption |
beginWeek_DayOfWeek3rd_Tuesday()
Begin week from Tuesday.
|
FromToOption |
beginWeek_DayOfWeek4th_Wednesday()
Begin week from Wednesday.
|
FromToOption |
beginWeek_DayOfWeek5th_Thursday()
Begin week from Thursday.
|
FromToOption |
beginWeek_DayOfWeek6th_Friday()
Begin week from Friday.
|
FromToOption |
beginWeek_DayOfWeek7th_Saturday()
Begin week from Saturday.
|
FromToOption |
beginYear_Month(Date yearBeginMonth)
Begin year from the specified month.
|
FromToOption |
beginYear_Month(int yearBeginMonth)
Begin year from the specified month.
|
FromToOption |
beginYear_Month(LocalDate yearBeginMonth)
Begin year from the specified month.
|
FromToOption |
beginYear_Month(LocalDateTime yearBeginMonth)
Begin year from the specified month.
|
FromToOption |
beginYear_Month01_January()
Begin year from January (1st month).
|
FromToOption |
beginYear_Month02_February()
Begin year from February (2nd month).
|
FromToOption |
beginYear_Month03_March()
Begin year from March (3rd month).
|
FromToOption |
beginYear_Month04_April()
Begin year from April (4th month).
|
FromToOption |
beginYear_Month05_May()
Begin year from May (5th month).
|
FromToOption |
beginYear_Month06_June()
Begin year from June (6th month).
|
FromToOption |
beginYear_Month07_July()
Begin year from July (7th month).
|
FromToOption |
beginYear_Month08_August()
Begin year from August (8th month).
|
FromToOption |
beginYear_Month09_September()
Begin year from September (9th month).
|
FromToOption |
beginYear_Month10_October()
Begin year from October (10th month).
|
FromToOption |
beginYear_Month11_November()
Begin year from November (11th month).
|
FromToOption |
beginYear_Month12_December()
Begin year from December (12th month).
|
FromToOption |
beginYear_PreviousMonth(int yearBeginMonth)
Begin year from the specified month of previous year.
|
protected void |
clearAll() |
protected void |
clearFromDateWith() |
protected void |
clearFromPattern() |
protected void |
clearOperand() |
protected void |
clearToDateWith() |
protected void |
clearToPattern() |
FromToOption |
compareAsDate()
Compare as date.
|
FromToOption |
compareAsHour()
Compare as hour.
|
FromToOption |
compareAsMonth()
Compare as month.
|
FromToOption |
compareAsQuarterOfYear()
Compare as quarter of year.
|
FromToOption |
compareAsWeek()
Compare as week.
|
FromToOption |
compareAsYear()
Compare as year.
|
protected FromToOption |
doBeginDay_Hour(Date dayBeginHour) |
protected FromToOption |
doBeginMonth_Day(Date monthBeginDay) |
protected FromToOption |
doBeginWeek_DayOfWeek(Date weekBeginDayOfWeek) |
protected FromToOption |
doBeginWeek(int weekBeginDayOfWeek) |
protected FromToOption |
doBeginYear_Month(Date yearBeginMonth) |
<DATE extends Date> |
filterFromDate(DATE fromDate)
Filter the date as From.
|
LocalDate |
filterFromDate(LocalDate fromDate) |
protected Date |
filterNoon(Date date) |
<DATE extends Date> |
filterToDate(DATE toDate)
Filter the date as To.
|
FromToOption |
fromDateWithHour(int hourOfDay) |
FromToOption |
fromDateWithNoon() |
FromToOption |
fromPatternDayJust() |
FromToOption |
fromPatternHourJust() |
FromToOption |
fromPatternMonthJust() |
FromToOption |
fromPatternQuarterOfYearJust() |
FromToOption |
fromPatternWeekJust() |
FromToOption |
fromPatternYearJust() |
List<SpecifiedColumn> |
getCompoundColumnList()
Get the list of compound columns.
|
protected TimeZone |
getDBFluteSystemFinalTimeZone() |
ExtensionOperand |
getExtensionOperand()
Get the extension operand.
|
ConditionKey |
getFromDateConditionKey()
Get the condition-key of the from-date.
|
GearedCipherManager |
getGearedCipherManager()
Get the manager of geared cipher.
|
String |
getRearOption()
Get the string expression of rear option.
|
OnQueryStringConnector |
getStringConnector()
Get the string connector basically for compound columns?
|
TimeZone |
getTimeZone()
Get the time-zone in this option basically for filtering.
|
ConditionKey |
getToDateConditionKey()
Get the condition-key of the to-date.
|
QueryClauseArranger |
getWhereClauseArranger()
Get the arranger of query clause.
|
FromToOption |
greaterThan()
Set up operand for from-date as greater-than.
|
boolean |
hasCompoundColumn()
Does the option have compound columns?
|
boolean |
hasStringConnector()
Does the option have string connector basically for compound columns?
|
boolean |
isGreaterThan() |
boolean |
isLessThan() |
boolean |
isOneSideAllowed()
Does it allow you to set one-side only condition.
|
boolean |
isOrIsNull()
Does it add or-is-null to the condition?
|
boolean |
isUsePattern() |
FromToOption |
lessThan()
Set up operand for to-date as less-than.
|
protected void |
moveToCalendarDayJust(Calendar cal) |
protected void |
moveToCalendarDayTerminal(Calendar cal) |
protected void |
moveToCalendarHourJust(Calendar cal) |
protected void |
moveToCalendarHourJustFor(Calendar cal,
int hourOfDay) |
protected void |
moveToCalendarHourJustNoon(Calendar cal) |
protected void |
moveToCalendarHourTerminal(Calendar cal) |
protected void |
moveToCalendarMonthJust(Calendar cal) |
protected void |
moveToCalendarMonthTerminal(Calendar cal) |
protected void |
moveToCalendarNextDayJust(Calendar cal) |
protected void |
moveToCalendarNextHourJust(Calendar cal) |
protected void |
moveToCalendarNextMonthJust(Calendar cal) |
protected void |
moveToCalendarNextQuarterOfYearJust(Calendar cal) |
protected void |
moveToCalendarNextWeekJust(Calendar cal) |
protected void |
moveToCalendarNextYearJust(Calendar cal) |
protected void |
moveToCalendarQuarterOfYearJust(Calendar cal) |
protected void |
moveToCalendarQuarterOfYearTerminal(Calendar cal) |
protected void |
moveToCalendarWeekJust(Calendar cal) |
protected void |
moveToCalendarWeekTerminal(Calendar cal) |
protected void |
moveToCalendarYearJust(Calendar cal) |
protected void |
moveToCalendarYearTerminal(Calendar cal) |
FromToOption |
moveToScope(int moveToCount)
Move to the specified count of scope.
|
protected void |
moveToScopeDay(Calendar cal) |
protected void |
moveToScopeHour(Calendar cal) |
protected void |
moveToScopeMonth(Calendar cal) |
protected void |
moveToScopeQuarterOfYear(Calendar cal) |
protected void |
moveToScopeWeek(Calendar cal) |
protected void |
moveToScopeYear(Calendar cal) |
FromToOption |
orIsNull()
Add 'or is null' to from-to conditions.
|
protected Date |
toDate(LocalDate date) |
protected Date |
toDate(LocalDateTime date) |
FromToOption |
toDateWithHour(int hourOfDay) |
FromToOption |
toDateWithNoon() |
protected HandyDate |
toHandyDate(Date date) |
FromToOption |
toPatternNextDayJust() |
FromToOption |
toPatternNextHourJust() |
FromToOption |
toPatternNextMonthJust() |
FromToOption |
toPatternNextQuarterOfYearJust() |
FromToOption |
toPatternNextWeekJust() |
FromToOption |
toPatternNextYearJust() |
String |
toString() |
Date |
xfilterToDateBetweenWay(Date toDate) |
FromToOption |
zone(TimeZone timeZone)
Set time-zone, basically for LocalDate conversion.
|
protected boolean _greaterThan
protected boolean _lessThan
protected boolean _fromPatternYearJust
protected boolean _fromPatternMonthJust
protected boolean _fromPatternDayJust
protected boolean _fromPatternHourJust
protected boolean _fromPatternWeekJust
protected boolean _fromPatternQuarterOfYearJust
protected boolean _fromDateWithNoon
protected Integer _fromDateWithHour
protected boolean _toPatternNextYearJust
protected boolean _toPatternNextMonthJust
protected boolean _toPatternNextDayJust
protected boolean _toPatternNextHourJust
protected boolean _toPatternNextWeekJust
protected boolean _toPatternNextQuarterOfYearJust
protected boolean _toDateWithNoon
protected Integer _toDateWithHour
protected Integer _yearBeginMonth
protected Integer _monthBeginDay
protected Integer _dayBeginHour
protected Integer _weekBeginDay
protected Integer _moveToScope
protected boolean _usePattern
protected boolean _orIsNull
protected boolean _oneSideAllowed
protected TimeZone _timeZone
public FromToOption compareAsYear()
e.g. from:{2007/04/10 08:24:53} to:{2008/08/16 14:36:29}
new FromToOption().compareAsYear();
--> column >= '2007/01/01 00:00:00'
and column < '2009/01/01 00:00:00'
new FromToOption().compareAsYear().beginYear_Month(4);
--> column >= '2007/04/01 00:00:00'
and column < '2009/04/01 00:00:00'
public FromToOption compareAsMonth()
e.g. from:{2007/04/10 08:24:53} to:{2008/08/16 14:36:29}
new FromToOption().compareAsMonth();
--> column >= '2007/04/01 00:00:00'
and column < '2008/09/01 00:00:00'
new FromToOption().compareAsMonth().beginMonth_Day(3);
--> column >= '2007/04/03 00:00:00'
and column < '2008/09/03 00:00:00'
public FromToOption compareAsDate()
e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29}
new FromToOption().compareAsDate();
--> column >= '2007/04/10 00:00:00'
and column < '2007/04/17 00:00:00'
new FromToOption().compareAsDate().beginDay_Hour(6);
--> column >= '2007/04/10 06:00:00'
and column < '2007/04/17 06:00:00'
public FromToOption compareAsHour()
e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29}
new FromToOption().compareAsHour();
--> column >= '2007/04/10 08:00:00'
and column < '2007/04/16 15:00:00'
public FromToOption compareAsWeek()
e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29}
new FromToOption().compareAsWeek().beginWeek_DayOfWeek1st_Sunday();
--> column >= '2007/04/08 00:00:00'
and column < '2007/04/22 00:00:00'
public FromToOption compareAsQuarterOfYear()
e.g. from:{2007/04/10 08:24:53} to:{2008/08/16 14:36:29}
new FromToOption().compareAsQuarterOfYear();
--> column >= '2007/04/01 00:00:00'
and column < '2008/10/01 00:00:00'
public boolean isUsePattern()
public FromToOption beginYear_Month(LocalDate yearBeginMonth)
e.g. beginYear_Month(toLocalDate("2001/04/01"))
year is from 4th month to 3rd month of next year
(the 2011 year means 2011/04/01 to 2012/03/31)
e.g. option.compareAsYear().beginYear_Month(toLocalDate("2001/04/01"))
if from-date is 2011/01/01 and to-date is 2012/01/01 (means 2011, 2012 year are target),
the condition is: greater-equal 2011/04/01 and less-than 2013/04/04
yearBeginMonth - The local date that has the month of year-begin. (NotNull)public FromToOption beginYear_Month(LocalDateTime yearBeginMonth)
e.g. beginYear_Month(toLocalDateTime("2001/04/01"))
year is from 4th month to 3rd month of next year
(the 2011 year means 2011/04/01 to 2012/03/31)
e.g. option.compareAsYear().beginYear_Month(toLocalDateTime("2001/04/01"))
if from-date is 2011/01/01 and to-date is 2012/01/01 (means 2011, 2012 year are target),
the condition is: greater-equal 2011/04/01 and less-than 2013/04/04
yearBeginMonth - The local date-time that has the month of year-begin. (NotNull)public FromToOption beginYear_Month(Date yearBeginMonth)
e.g. beginYear_Month(toDate("2001/04/01"))
year is from 4th month to 3rd month of next year
(the 2011 year means 2011/04/01 to 2012/03/31)
e.g. option.compareAsYear().beginYear_Month(toDate("2001/04/01"))
if from-date is 2011/01/01 and to-date is 2012/01/01 (means 2011, 2012 year are target),
the condition is: greater-equal 2011/04/01 and less-than 2013/04/04
yearBeginMonth - The date that has the month of year-begin. (NotNull)protected FromToOption doBeginYear_Month(Date yearBeginMonth)
public FromToOption beginYear_Month(int yearBeginMonth)
e.g. beginYear_Month(4) year is from 4th month to 3rd month of next year (the 2011 year means 2011/04/01 to 2012/03/31) e.g. option.compareAsYear().beginYear_Month(4) if from-date is 2011/01/01 and to-date is 2012/01/01 (means 2011, 2012 year are target), the condition is: greater-equal 2011/04/01 and less-than 2013/04/04
yearBeginMonth - The month for year-begin. (NotMinus, 1-12)public FromToOption beginYear_Month01_January()
public FromToOption beginYear_Month02_February()
public FromToOption beginYear_Month03_March()
public FromToOption beginYear_Month04_April()
public FromToOption beginYear_Month05_May()
public FromToOption beginYear_Month06_June()
public FromToOption beginYear_Month07_July()
public FromToOption beginYear_Month08_August()
public FromToOption beginYear_Month09_September()
public FromToOption beginYear_Month10_October()
public FromToOption beginYear_Month11_November()
public FromToOption beginYear_Month12_December()
public FromToOption beginYear_PreviousMonth(int yearBeginMonth)
e.g. beginYear_PreviousMonth(11) year is from 11th month of previous year to 10th month of this year (the 2011 year means 2010/11/01 to 2011/10/31) e.g. option.compareAsYear().beginYear_PreviousMonth(11) if from-date is 2011/01/01 and to-date is 2012/01/01 (means 2011, 2012 year are target), the condition is: greater-equal 2010/11/01 and less-than 2012/11/01
yearBeginMonth - The month of previous year for year-begin. (NotMinus, 1-12)public FromToOption beginMonth_Day(LocalDate monthBeginDay)
e.g. beginMonth_Day(toLocalDate("2001/01/03"))
month is from 3 day to 2 day of next month
(the 2011/11 means 2011/11/03 to 2011/12/02)
e.g. option.compareAsMonth().beginMonth_Day(toLocalDate("2001/01/03"))
if from-date is 2011/11/01 and to-date is 2011/12/01 (means 11th, 12th months are target),
the condition is: greater-equal 2011/11/03 and less-than 2012/01/03
monthBeginDay - The local date that has the day of month-begin. (NotNull)public FromToOption beginMonth_Day(LocalDateTime monthBeginDay)
e.g. beginMonth_Day(toLocalDateTime("2001/01/03"))
month is from 3 day to 2 day of next month
(the 2011/11 means 2011/11/03 to 2011/12/02)
e.g. option.compareAsMonth().beginMonth_Day(toLocalDateTime("2001/01/03"))
if from-date is 2011/11/01 and to-date is 2011/12/01 (means 11th, 12th months are target),
the condition is: greater-equal 2011/11/03 and less-than 2012/01/03
monthBeginDay - The local date-time that has the day of month-begin. (NotNull)public FromToOption beginMonth_Day(Date monthBeginDay)
e.g. beginMonth_Day(toDate("2001/01/03"))
month is from 3 day to 2 day of next month
(the 2011/11 means 2011/11/03 to 2011/12/02)
e.g. option.compareAsMonth().beginMonth_Day(toDate("2001/01/03"))
if from-date is 2011/11/01 and to-date is 2011/12/01 (means 11th, 12th months are target),
the condition is: greater-equal 2011/11/03 and less-than 2012/01/03
monthBeginDay - The date that has the day of month-begin. (NotNull)protected FromToOption doBeginMonth_Day(Date monthBeginDay)
public FromToOption beginMonth_Day(int monthBeginDay)
e.g. beginMonth_Day(3) month is from 3 day to 2 day of next month (the 2011/11 means 2011/11/03 to 2011/12/02) e.g. option.compareAsMonth().beginMonth_Day(3) if from-date is 2011/11/01 and to-date is 2011/12/01 (means 11th, 12th months are target), the condition is: greater-equal 2011/11/03 and less-than 2012/01/03
monthBeginDay - The day for month-begin. (NotMinus, 1-31)public FromToOption beginMonth_PreviousDay(int monthBeginDay)
e.g. beginMonth_PreviousDay(25) month is from 25 day of previous year to 24 day of this month (the 2011/11 means 2011/10/25 to 2011/11/24) e.g. option.compareAsMonth().beginMonth_PreviousDay(25) if from-date is 2011/11/01 and to-date is 2011/12/01 (means 11th, 12th months are target), the condition is: greater-equal 2011/10/25 and less-than 2011/12/25
monthBeginDay - The day of previous month for month-begin. (NotMinus, 1-31)public FromToOption beginDay_Hour(LocalDate dayBeginHour)
e.g. beginDay_Hour(toLocalDate("2001/01/01 06:00:00"))
day is from 06h to 05h of next day
(the 2011/11/27 means 2011/11/27 06h to 2011/11/28 05h)
e.g. option.compareAsDate().beginDay_Hour(toLocalDate("2001/01/01 06:00:00"))
if from-date is 2011/11/27 and to-date is 2011/11/28 (means 27, 28 days are target),
the condition is: greater-equal 2011/11/27 06:00:00 and less-than 2011/11/28 06:00:00
dayBeginHour - The local date that has the hour of day-begin. (NotNull)public FromToOption beginDay_Hour(LocalDateTime dayBeginHour)
e.g. beginDay_Hour(toLocalDateTime("2001/01/01 06:00:00"))
day is from 06h to 05h of next day
(the 2011/11/27 means 2011/11/27 06h to 2011/11/28 05h)
e.g. option.compareAsDate().beginDay_Hour(toLocalDateTime("2001/01/01 06:00:00"))
if from-date is 2011/11/27 and to-date is 2011/11/28 (means 27, 28 days are target),
the condition is: greater-equal 2011/11/27 06:00:00 and less-than 2011/11/28 06:00:00
dayBeginHour - The local date-time that has the hour of day-begin. (NotNull)public FromToOption beginDay_Hour(Date dayBeginHour)
e.g. beginDay_Hour(toDate("2001/01/01 06:00:00"))
day is from 06h to 05h of next day
(the 2011/11/27 means 2011/11/27 06h to 2011/11/28 05h)
e.g. option.compareAsDate().beginDay_Hour(toDate("2001/01/01 06:00:00"))
if from-date is 2011/11/27 and to-date is 2011/11/28 (means 27, 28 days are target),
the condition is: greater-equal 2011/11/27 06:00:00 and less-than 2011/11/28 06:00:00
dayBeginHour - The date that has the hour of day-begin. (NotNull)protected FromToOption doBeginDay_Hour(Date dayBeginHour)
public FromToOption beginDay_Hour(int dayBeginHour)
e.g. beginDay_Hour(6) day is from 06h to 05h of next day (the 2011/11/27 means 2011/11/27 06h to 2011/11/28 05h) e.g. option.compareAsDate().beginDay_Hour(6) if from-date is 2011/11/27 and to-date is 2011/11/28 (means 27, 28 days are target), the condition is: greater-equal 2011/11/27 06:00:00 and less-than 2011/11/28 06:00:00
dayBeginHour - The day of day-begin. (NotMinus, 1-23)public FromToOption beginDay_PreviousHour(int dayBeginHour)
e.g. beginDay_PreviousHour(22) day is from 22h of previous day to 21h of this day (the 2011/11/27 means 2011/11/26 22h to 2011/11/27 21h) e.g. option.compareAsDate().beginDay_PreviousHour(22) if from-date is 2011/11/27 and to-date is 2011/11/28 (means 27, 28 days are target), the condition is: greater-equal 2011/11/26 22:00:00 and less-than 2011/11/27 22:00:00
dayBeginHour - The day of day-begin. (NotMinus, 1-23)public FromToOption beginWeek_DayOfWeek(LocalDate weekBeginDayOfWeek)
e.g. beginWeek_DayOfWeek(toLocalDate("2011/11/28")) *means Monday
week starts Monday (the 2011/11/27 belongs the week, 2011/11/21 to 2011/11/27)
e.g. option.compareAsWeek().beginWeek_DayOfWeek(toLocalDate("2011/11/28")) *means Monday
if from-date is 2011/11/24 and to-date is 2011/12/01 (means two weeks are target),
the condition is: greater-equal 2011/11/21 and less-than 2011/12/05
weekBeginDayOfWeek - The local date that has the day of day-of-week-begin. (NotNull)public FromToOption beginWeek_DayOfWeek(LocalDateTime weekBeginDayOfWeek)
e.g. beginWeek_DayOfWeek(toLocalDateTime("2011/11/28")) *means Monday
week starts Monday (the 2011/11/27 belongs the week, 2011/11/21 to 2011/11/27)
e.g. option.compareAsWeek().beginWeek_DayOfWeek(toLocalDateTime("2011/11/28")) *means Monday
if from-date is 2011/11/24 and to-date is 2011/12/01 (means two weeks are target),
the condition is: greater-equal 2011/11/21 and less-than 2011/12/05
weekBeginDayOfWeek - The local date-time that has the day of day-of-week-begin. (NotNull)public FromToOption beginWeek_DayOfWeek(Date weekBeginDayOfWeek)
e.g. beginWeek_DayOfWeek(toDate("2011/11/28")) *means Monday
week starts Monday (the 2011/11/27 belongs the week, 2011/11/21 to 2011/11/27)
e.g. option.compareAsWeek().beginWeek_DayOfWeek(toDate("2011/11/28")) *means Monday
if from-date is 2011/11/24 and to-date is 2011/12/01 (means two weeks are target),
the condition is: greater-equal 2011/11/21 and less-than 2011/12/05
weekBeginDayOfWeek - The date that has the day of day-of-week-begin. (NotNull)protected FromToOption doBeginWeek_DayOfWeek(Date weekBeginDayOfWeek)
public FromToOption beginWeek_DayOfWeek1st_Sunday()
e.g. option.compareAsWeek().beginWeek_DayOfWeek1st_Sunday() if from-date is 2011/11/24 and to-date is 2011/12/01 (means two weeks are target), the condition is: greater-equal 2011/11/20 and less-than 2011/12/04
public FromToOption beginWeek_DayOfWeek2nd_Monday()
e.g. option.compareAsWeek().beginWeek_DayOfWeek2nd_Monday() if from-date is 2011/11/24 and to-date is 2011/12/01 (means two weeks are target), the condition is: greater-equal 2011/11/21 and less-than 2011/12/05
public FromToOption beginWeek_DayOfWeek3rd_Tuesday()
e.g. option.compareAsWeek().beginWeek_DayOfWeek3rd_Tuesday() if from-date is 2011/11/24 and to-date is 2011/12/01 (means two weeks are target), the condition is: greater-equal 2011/11/22 and less-than 2011/12/06
public FromToOption beginWeek_DayOfWeek4th_Wednesday()
e.g. option.compareAsWeek().beginWeek_DayOfWeek4th_Wednesday() if from-date is 2011/11/24 and to-date is 2011/12/01 (means two weeks are target), the condition is: greater-equal 2011/11/23 and less-than 2011/12/07
public FromToOption beginWeek_DayOfWeek5th_Thursday()
e.g. option.compareAsWeek().beginWeek_DayOfWeek5th_Thursday() if from-date is 2011/11/24 and to-date is 2011/12/01 (means two weeks are target), the condition is: greater-equal 2011/11/24 and less-than 2011/12/08
public FromToOption beginWeek_DayOfWeek6th_Friday()
e.g. option.compareAsWeek().beginWeek_DayOfWeek6th_Friday() if from-date is 2011/11/24 and to-date is 2011/12/01 (means two weeks are target), the condition is: greater-equal 2011/11/18 and less-than 2011/12/02
public FromToOption beginWeek_DayOfWeek7th_Saturday()
e.g. option.compareAsWeek().beginWeek_DayOfWeek7th_Saturday() if from-date is 2011/11/24 and to-date is 2011/12/01 (means two weeks are target), the condition is: greater-equal 2011/11/19 and less-than 2011/12/03
protected FromToOption doBeginWeek(int weekBeginDayOfWeek)
public FromToOption moveToScope(int moveToCount)
e.g. compareAsYear().moveToScope(-1): 2011 to 2010 year compareAsMonth().moveToScope(-1): 11th to 10th month compareAsDate().moveToScope(2): 27 to 29 day compareAsHour().moveToScope(7): 12 to 19 hour e.g. compareAsDate().moveToScope(-1) if both from-date and to-date are 2011/11/27, the condition is: greater-equal 2011/11/26 and less-than 2011/11/27 if both from-date is 2011/11/26 and to-date is 2011/11/28, the condition is: greater-equal 2011/11/25 and less-than 2011/11/28 e.g. compareAsDate() *normal (no move-to scope) if both from-date and to-date are 2011/11/27, the condition is: greater-equal 2011/11/27 and less-than 2011/11/28 if both from-date is 2011/11/26 and to-date is 2011/11/28, the condition is: greater-equal 2011/11/26 and less-than 2011/11/29
moveToCount - The count to move-to. (MinusAllowed)protected void clearAll()
public FromToOption greaterThan()
public FromToOption lessThan()
public boolean isGreaterThan()
public boolean isLessThan()
protected void clearOperand()
public FromToOption fromPatternHourJust()
public FromToOption fromPatternDayJust()
public FromToOption fromPatternMonthJust()
public FromToOption fromPatternYearJust()
public FromToOption fromPatternWeekJust()
public FromToOption fromPatternQuarterOfYearJust()
protected void clearFromPattern()
public FromToOption fromDateWithNoon()
public FromToOption fromDateWithHour(int hourOfDay)
protected void clearFromDateWith()
public FromToOption toPatternNextHourJust()
public FromToOption toPatternNextDayJust()
public FromToOption toPatternNextMonthJust()
public FromToOption toPatternNextYearJust()
public FromToOption toPatternNextWeekJust()
public FromToOption toPatternNextQuarterOfYearJust()
protected void clearToPattern()
public FromToOption toDateWithNoon()
public FromToOption toDateWithHour(int hourOfDay)
protected void clearToDateWith()
public FromToOption orIsNull()
public boolean isOrIsNull()
public FromToOption allowOneSide()
public boolean isOneSideAllowed()
public <DATE extends Date> DATE filterFromDate(DATE fromDate)
DATE - The type of (util)Date.fromDate - The date as From. (NullAllowed: If the value is null, it returns null)public <DATE extends Date> DATE filterToDate(DATE toDate)
DATE - The type of sub-class for java.util.Date.toDate - The date as To. (NullAllowed: If the value is null, it returns null)public ConditionKey getFromDateConditionKey()
public ConditionKey getToDateConditionKey()
protected void moveToCalendarYearJust(Calendar cal)
protected void moveToCalendarMonthJust(Calendar cal)
protected void moveToCalendarDayJust(Calendar cal)
protected void moveToCalendarHourJust(Calendar cal)
protected void moveToCalendarHourJustFor(Calendar cal, int hourOfDay)
protected void moveToCalendarHourJustNoon(Calendar cal)
protected void moveToCalendarWeekJust(Calendar cal)
protected void moveToCalendarQuarterOfYearJust(Calendar cal)
protected void moveToCalendarNextYearJust(Calendar cal)
protected void moveToCalendarNextMonthJust(Calendar cal)
protected void moveToCalendarNextDayJust(Calendar cal)
protected void moveToCalendarNextHourJust(Calendar cal)
protected void moveToCalendarNextWeekJust(Calendar cal)
protected void moveToCalendarNextQuarterOfYearJust(Calendar cal)
protected void addCalendarMillisecondOne(Calendar cal)
protected void moveToCalendarYearTerminal(Calendar cal)
protected void moveToCalendarMonthTerminal(Calendar cal)
protected void moveToCalendarDayTerminal(Calendar cal)
protected void moveToCalendarHourTerminal(Calendar cal)
protected void moveToCalendarWeekTerminal(Calendar cal)
protected void moveToCalendarQuarterOfYearTerminal(Calendar cal)
protected void moveToScopeYear(Calendar cal)
protected void moveToScopeMonth(Calendar cal)
protected void moveToScopeDay(Calendar cal)
protected void moveToScopeHour(Calendar cal)
protected void moveToScopeWeek(Calendar cal)
protected void moveToScopeQuarterOfYear(Calendar cal)
public FromToOption zone(TimeZone timeZone)
timeZone - The time-zone for filtering. (NullAllowed: if null, default zone)public TimeZone getTimeZone()
protected TimeZone getDBFluteSystemFinalTimeZone()
public String getRearOption()
ConditionOptiongetRearOption インタフェース内 ConditionOptionpublic boolean hasCompoundColumn()
ConditionOptionhasCompoundColumn インタフェース内 ConditionOptionpublic List<SpecifiedColumn> getCompoundColumnList()
ConditionOptiongetCompoundColumnList インタフェース内 ConditionOptionpublic boolean hasStringConnector()
ConditionOptionhasStringConnector インタフェース内 ConditionOptionpublic OnQueryStringConnector getStringConnector()
ConditionOptiongetStringConnector インタフェース内 ConditionOptionpublic ExtensionOperand getExtensionOperand()
ConditionOptiongetExtensionOperand インタフェース内 ConditionOptionpublic QueryClauseArranger getWhereClauseArranger()
ConditionOptiongetWhereClauseArranger インタフェース内 ConditionOptionpublic GearedCipherManager getGearedCipherManager()
ConditionOptiongetGearedCipherManager インタフェース内 ConditionOptionprotected Date toDate(LocalDateTime date)
protected void assertNotMinusNotOver(String name, int value, int max)
protected void assertPatternOptionValid(String option)
protected void assertNotAdjustmentAfterPattern(String option)
Copyright © 2014–2015 The DBFlute Project. All rights reserved.