Class WindowFunctionFramable.OffsetFollowingStart<A extends EqualExpression<?,?,?>>
- java.lang.Object
-
- nz.co.gregs.dbvolution.expressions.windows.WindowFunctionFramable.FrameStart<A>
-
- nz.co.gregs.dbvolution.expressions.windows.WindowFunctionFramable.OffsetFollowingStart<A>
-
- All Implemented Interfaces:
DBExpression
,HasSQLString
,WindowingFunctionFramableInterface.EmptyFrameStart<A>
,WindowingFunctionFramableInterface.FrameStart<A>
,WindowingFunctionFramableInterface.FrameStartFollowing<A>
,WindowingFunctionFramableInterface.WindowPart<A>
- Enclosing class:
- WindowFunctionFramable<A extends EqualExpression<?,?,?>>
public static class WindowFunctionFramable.OffsetFollowingStart<A extends EqualExpression<?,?,?>> extends WindowFunctionFramable.FrameStart<A> implements WindowingFunctionFramableInterface.FrameStartFollowing<A>
-
-
Field Summary
-
Fields inherited from class nz.co.gregs.dbvolution.expressions.windows.WindowFunctionFramable.FrameStart
offset, type
-
-
Constructor Summary
Constructors Constructor Description OffsetFollowingStart(WindowFunctionFramable.FrameType<A> type, int offset)
OffsetFollowingStart(WindowFunctionFramable.FrameType<A> type, long offset)
OffsetFollowingStart(WindowFunctionFramable.FrameType<A> type, IntegerExpression offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WindowFunctionFramable.OffsetFollowingStart<A>
copy()
A Complete Copy Of This DBValue.A
forFollowing(int offset)
A
forFollowing(IntegerExpression offset)
String
toSQLString(DBDefinition defn)
Produces the snippet provided by this class.A
unboundedFollowing()
-
Methods inherited from interface nz.co.gregs.dbvolution.expressions.DBExpression
createSQLForFromClause, createSQLForGroupByClause, getQueryableDatatypeForExpressionValue, getTablesInvolved, isAggregator, isComplexExpression, isPurelyFunctional, isWindowingFunction
-
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.FrameStart
createSQLForFromClause, createSQLForGroupByClause, getQueryableDatatypeForExpressionValue, getRequiredExpressionClass, getTablesInvolved, isAggregator, isComplexExpression, isWindowingFunction
-
Methods inherited from interface nz.co.gregs.dbvolution.expressions.windows.WindowingFunctionFramableInterface.WindowPart
getRequiredExpressionClass
-
-
-
-
Constructor Detail
-
OffsetFollowingStart
public OffsetFollowingStart(WindowFunctionFramable.FrameType<A> type, int offset)
-
OffsetFollowingStart
public OffsetFollowingStart(WindowFunctionFramable.FrameType<A> type, long offset)
-
OffsetFollowingStart
public OffsetFollowingStart(WindowFunctionFramable.FrameType<A> type, IntegerExpression offset)
-
-
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.
- Specified by:
toSQLString
in interfaceHasSQLString
- Parameters:
defn
- the target databaseSupport DBvolution at Patreon
- Returns:
- the DBValue formatted as a SQL snippet
-
copy
public WindowFunctionFramable.OffsetFollowingStart<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
- Specified by:
copy
in interfaceDBExpression
- Specified by:
copy
in interfaceWindowingFunctionFramableInterface.WindowPart<A extends EqualExpression<?,?,?>>
- Specified by:
copy
in classWindowFunctionFramable.FrameStart<A extends EqualExpression<?,?,?>>
- Returns:
- a copy of this
DBValue
-
forFollowing
public A forFollowing(int offset)
- Specified by:
forFollowing
in interfaceWindowingFunctionFramableInterface.FrameStart<A extends EqualExpression<?,?,?>>
-
forFollowing
public A forFollowing(IntegerExpression offset)
- Specified by:
forFollowing
in interfaceWindowingFunctionFramableInterface.FrameStart<A extends EqualExpression<?,?,?>>
-
unboundedFollowing
public A unboundedFollowing()
- Specified by:
unboundedFollowing
in interfaceWindowingFunctionFramableInterface.FrameStart<A extends EqualExpression<?,?,?>>
-
-