Class InstantExpression.AddMonthsExpression
- java.lang.Object
-
- nz.co.gregs.dbvolution.expressions.AnyExpression<B,R,D>
-
- nz.co.gregs.dbvolution.expressions.EqualExpression<B,R,D>
-
- nz.co.gregs.dbvolution.expressions.InExpression<B,R,D>
-
- nz.co.gregs.dbvolution.expressions.RangeExpression<Instant,InstantResult,DBInstant>
-
- nz.co.gregs.dbvolution.expressions.InstantExpression
-
- nz.co.gregs.dbvolution.expressions.InstantExpression.AddMonthsExpression
-
- All Implemented Interfaces:
Serializable
,DBExpression
,ExpressionColumn<DBInstant>
,HasSQLString
,AnyComparable<Instant,InstantResult>
,AnyResult<Instant>
,EqualComparable<Instant,InstantResult>
,EqualResult<Instant>
,ExpressionCanHaveNullValues
,ExpressionHasStandardStringResult
,InComparable<Instant,InstantResult>
,InResult<Instant>
,InstantResult
,NullCapableResult<Instant>
,RangeComparable<Instant,InstantResult>
,RangeResult<Instant>
- Enclosing class:
- InstantExpression
protected static class InstantExpression.AddMonthsExpression extends InstantExpression
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class nz.co.gregs.dbvolution.expressions.AnyExpression
AnyExpression.CountAllExpression, AnyExpression.CountDistinctExpression, AnyExpression.CountExpression, AnyExpression.NTileExpression, AnyExpression.PercentageExpression, AnyExpression.RankExpression
-
Nested classes/interfaces inherited from class nz.co.gregs.dbvolution.expressions.EqualExpression
EqualExpression.DBUnaryFunction<B,R extends EqualResult<B>,D extends QueryableDatatype<B>,X extends EqualExpression<B,R,D>>, EqualExpression.ModeSimpleExpression<B,R extends EqualResult<B>,D extends QueryableDatatype<B>,X extends EqualExpression<B,R,D>>, EqualExpression.ModeStrictExpression<B,R extends EqualResult<B>,D extends QueryableDatatype<B>,X extends EqualExpression<B,R,D>>
-
Nested classes/interfaces inherited from class nz.co.gregs.dbvolution.expressions.InstantExpression
InstantExpression.AddDaysExpression, InstantExpression.AddIntegerDaysExpression, InstantExpression.AddIntegerHoursExpression, InstantExpression.AddIntegerMinutesExpression, InstantExpression.AddIntegerMonthsExpression, InstantExpression.AddIntegerSecondsExpression, InstantExpression.AddIntegerWeeksExpression, InstantExpression.AddIntegerYearsExpression, InstantExpression.AddMonthsExpression, InstantExpression.AddSecondsExpression, InstantExpression.CurrentInstantDateOnlyExpression, InstantExpression.CurrentInstantExpression, InstantExpression.CurrentTimeExpression, InstantExpression.DayOfWeekExpression, InstantExpression.DaysFromExpression, InstantExpression.EndOfMonthExpression, InstantExpression.FirstValueExpression, InstantExpression.GreatestOfExpression, InstantExpression.HoursFromExpression, InstantExpression.InstantDayExpression, InstantExpression.InstantGetDateRepeatFromExpression, InstantExpression.InstantHourExpression, InstantExpression.InstantIfDBNullExpression, InstantExpression.InstantInstantIsGreaterThanOrEqualExpression, InstantExpression.InstantIsExpression, InstantExpression.InstantIsGreaterThanExpression, InstantExpression.InstantIsInExpression, InstantExpression.InstantIsLessThanExpression, InstantExpression.InstantIsLessThanOrEqualExpression, InstantExpression.InstantIsNotExpression, InstantExpression.InstantIsNotInExpression, InstantExpression.InstantMaxExpression, InstantExpression.InstantMinExpression, InstantExpression.InstantMinusDateRepeatExpression, InstantExpression.InstantMinuteExpression, InstantExpression.InstantMonthExpression, InstantExpression.InstantPlusDateRepeatExpression, InstantExpression.InstantSecondAndSubsecondExpression, InstantExpression.InstantSecondExpression, InstantExpression.InstantSubsecondExpression, InstantExpression.InstantYearExpression, InstantExpression.LagExpression, InstantExpression.LastValueExpression, InstantExpression.LeadExpression, InstantExpression.LeastOfExpression, InstantExpression.MinutesFromExpression, InstantExpression.MonthsFromExpression, InstantExpression.NthValueExpression, InstantExpression.SecondsFromExpression, InstantExpression.WeeksFromExpression, InstantExpression.YearsFromExpression
-
Nested classes/interfaces inherited from class nz.co.gregs.dbvolution.expressions.RangeExpression
RangeExpression.MedianExpression<B,R extends EqualResult<B>,D extends QueryableDatatype<B>,X extends EqualExpression<B,R,D>>, RangeExpression.UniqueRankingExpression<B,R extends EqualResult<B>,D extends QueryableDatatype<B>,X extends EqualExpression<B,R,D>>
-
-
Constructor Summary
Constructors Constructor Description AddMonthsExpression(InstantExpression dateExp, NumberExpression numbExp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstantExpression.AddMonthsExpression
copy()
A Complete Copy Of This DBValue.boolean
getIncludesNull()
Returns TRUE if this expression requires support for possible NULL database values.String
toSQLString(DBDefinition db)
Produces the snippet provided by this class.-
Methods inherited from class nz.co.gregs.dbvolution.expressions.AnyExpression
ascending, asResult, count, countAll, countDistinctValues, countNotNull, createSQLForFromClause, createSQLForGroupByClause, denseRank, descending, getInnerResult, highestFirst, highestLast, isComplexExpression, isNullSafetyTerminator, isWindowingFunction, lowestFirst, lowestLast, nTile, nTile, nTile, nullBoolean, nullDate, nullDateRepeat, nullDuration, nullInstant, nullInteger, nullLine2D, nullLineSegment2D, nullLocalDate, nullLocalDateTime, nullMultiPoint2D, nullNumber, nullPoint2D, nullPolygon2D, nullString, percentageRank, rank, rowNumber, runningCount, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value
-
Methods inherited from interface nz.co.gregs.dbvolution.expressions.DBExpression
createSQLForFromClause, createSQLForGroupByClause, isComplexExpression, isWindowingFunction
-
Methods inherited from class nz.co.gregs.dbvolution.expressions.EqualExpression
countIf, is, isNot
-
Methods inherited from interface nz.co.gregs.dbvolution.expressions.ExpressionColumn
toExpressionColumn
-
Methods inherited from interface nz.co.gregs.dbvolution.results.InComparable
isIn
-
Methods inherited from class nz.co.gregs.dbvolution.expressions.InExpression
isIn, isIn, isIn, isNotIn, isNotIn, isNotIn
-
Methods inherited from class nz.co.gregs.dbvolution.expressions.InstantExpression
addDays, addDays, addDays, addDays, addDays, addHours, addHours, addMinutes, addMinutes, addMonths, addMonths, addMonths, addMonths, addMonths, addSeconds, addSeconds, addSeconds, addWeeks, addWeeks, addYears, addYears, asExpressionColumn, atEndOfMonth, atEndOfYear, atStartOfDay, atStartOfMonth, atStartOfYear, currentDate, currentDateOnly, currentInstant, currentInstantDateOnly, day, dayIs, dayIs, dayIs, dayIs, dayIs, dayOfWeek, daysFrom, daysFrom, endOfMonth, expression, expression, expression, firstOfMonth, firstValue, getDateRepeatFrom, getDateRepeatFrom, getQueryableDatatypeForExpressionValue, greatestOf, greatestOf, greatestOf, hour, hourIs, hourIs, hourIs, hourIs, hourIs, hoursFrom, hoursFrom, ifDBNull, ifDBNull, is, is, isBetween, isBetween, isBetween, isBetween, isBetweenExclusive, isBetweenExclusive, isBetweenExclusive, isBetweenExclusive, isBetweenInclusive, isBetweenInclusive, isBetweenInclusive, isBetweenInclusive, isEarlierThan, isEarlierThan, isGreaterThan, isGreaterThan, isGreaterThan, isGreaterThan, isGreaterThanOrEqual, isGreaterThanOrEqual, isIn, isInCollection, isLaterThan, isLaterThan, isLessThan, isLessThan, isLessThan, isLessThan, isLessThanOrEqual, isLessThanOrEqual, isNot, isNot, isNotInCollection, isNotNull, isNull, lag, lag, lag, lastValue, lead, lead, lead, leastOf, leastOf, leastOf, max, min, minus, minus, minute, minuteIs, minuteIs, minuteIs, minuteIs, minuteIs, minutesFrom, minutesFrom, month, monthIs, monthIs, monthIs, monthIs, monthIs, monthsFrom, monthsFrom, newInstant, nextRowValue, now, nthValue, nullExpression, overlaps, overlaps, overlaps, plus, plus, previousRowValue, second, secondIs, secondIs, secondIs, secondIs, secondIs, secondsFrom, secondsFrom, setDay, setHour, setMinute, setMonth, setMonth, setSecond, setYear, stringResult, stringResultCommonFormat, stringResultISOFormat, stringResultUSAFormat, subsecond, toInstant, weeksFrom, weeksFrom, year, yearIs, yearIs, yearIs, yearIs, yearIs, yearsFrom, yearsFrom
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class nz.co.gregs.dbvolution.expressions.RangeExpression
isBetween, isBetween, isBetween, isBetween, isBetween, isBetweenExclusive, isBetweenExclusive, isBetweenExclusive, isBetweenExclusive, isBetweenExclusive, isBetweenInclusive, isBetweenInclusive, isBetweenInclusive, isBetweenInclusive, isBetweenInclusive, isGreaterThan, isGreaterThan, isGreaterThanOrEqual, isLessThan, isLessThan, isLessThanOrEqual
-
-
-
-
Constructor Detail
-
AddMonthsExpression
public AddMonthsExpression(InstantExpression dateExp, NumberExpression numbExp)
-
-
Method Detail
-
getIncludesNull
public boolean getIncludesNull()
Description copied from interface:ExpressionCanHaveNullValues
Returns TRUE if this expression requires support for possible NULL database values.Support DBvolution at Patreon
- Specified by:
getIncludesNull
in interfaceExpressionCanHaveNullValues
- Overrides:
getIncludesNull
in classAnyExpression<Instant,InstantResult,DBInstant>
- Returns:
- TRUE if the expression should check for NULLs, FALSE otherwise.
-
toSQLString
public String toSQLString(DBDefinition db)
Description copied from interface:HasSQLString
Produces the snippet provided by this class.This is only used internally.
If you are extending DBvolution and adding a new function this is the place to format the information for use in SQL. A DBDefinition instance is provided to supply context and so your SQL can used on multiple database engines.
- Specified by:
toSQLString
in interfaceHasSQLString
- Parameters:
db
- the target databaseSupport DBvolution at Patreon
- Returns:
- the DBValue formatted as a SQL snippet
-
copy
public InstantExpression.AddMonthsExpression copy()
Description copied from interface:DBExpression
A Complete Copy Of This DBValue.Immutability in DBvolution is maintain by internally copying objects.
This method enables immutability by performing a deep copy of the object.
Singletons may return themselves but all other objects must return a new instance with copies of all mutable fields.
Support DBvolution at Patreon
- Specified by:
copy
in interfaceDBExpression
- Specified by:
copy
in interfaceInstantResult
- Overrides:
copy
in classInstantExpression
- Returns:
- a copy of this
DBValue
-
-