Class WindowFunctionFramable.CurrentRowEnd<A extends EqualExpression<?,?,?>>
- java.lang.Object
-
- nz.co.gregs.dbvolution.expressions.windows.WindowFunctionFramable.FrameEnd<A>
-
- nz.co.gregs.dbvolution.expressions.windows.WindowFunctionFramable.CurrentRowEnd<A>
-
- All Implemented Interfaces:
DBExpression
,HasSQLString
,WindowingFunctionFramableInterface.WindowEnd<A>
,AnyResult<A>
,ExpressionCanHaveNullValues
- Enclosing class:
- WindowFunctionFramable<A extends EqualExpression<?,?,?>>
public static class WindowFunctionFramable.CurrentRowEnd<A extends EqualExpression<?,?,?>> extends WindowFunctionFramable.FrameEnd<A>
-
-
Constructor Summary
Constructors Constructor Description CurrentRowEnd(WindowFunctionFramable.FrameStart<A> start)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WindowFunctionFramable.CurrentRowEnd<A>
copy()
A Complete Copy Of This DBValue.boolean
isPurelyFunctional()
Indicates whether or not the expression includes table columns.String
toSQLString(DBDefinition defn)
Produces the snippet provided by this class.-
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.windows.WindowFunctionFramable.FrameEnd
build, createSQLForFromClause, createSQLForGroupByClause, getIncludesNull, getOffset, getQueryableDatatypeForExpressionValue, getStart, getTablesInvolved, isAggregator, isComplexExpression, isWindowingFunction
-
-
-
-
Constructor Detail
-
CurrentRowEnd
public CurrentRowEnd(WindowFunctionFramable.FrameStart<A> start)
-
-
Method Detail
-
toSQLString
public String toSQLString(DBDefinition defn)
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.
- Parameters:
defn
- the target databaseSupport DBvolution at Patreon
- Returns:
- the DBValue formatted as a SQL snippet
-
copy
public WindowFunctionFramable.CurrentRowEnd<A> 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
- Returns:
- a copy of this
DBValue
-
isPurelyFunctional
public boolean isPurelyFunctional()
Description copied from interface:DBExpression
Indicates whether or not the expression includes table columns.Purely functional expressions use only in-built functions or literal values to produce results and do not require data from tables.
Some databases, notably MS SQLServer, can not group purely functional expressions.
Support DBvolution at Patreon
- Returns:
- TRUE if the expression does not access table data, otherwise FALSE.
-
-