Class CurrentTimestampClosure
- java.lang.Object
-
- groovy.lang.GroovyObjectSupport
-
- groovy.lang.Closure<ChimeraDate>
-
- de.uplanet.lucy.server.scripting.groovy.CurrentTimestampClosure
-
- All Implemented Interfaces:
groovy.lang.GroovyCallable<ChimeraDate>
,groovy.lang.GroovyObject
,Serializable
,Cloneable
,Runnable
,Callable<ChimeraDate>
@Scriptable public final class CurrentTimestampClosure extends groovy.lang.Closure<ChimeraDate>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CurrentTimestampClosure(long p_lTimestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChimeraDate
call()
Get the current timestamp as both ajava.sql.Timestamp
and as a
.IDateTimeValueHolder
Object
doCall()
int
getMaximumNumberOfParameters()
-
Methods inherited from class groovy.lang.Closure
andThen, andThenSelf, andThenSelf, asWritable, call, call, clone, compose, composeSelf, composeSelf, curry, curry, dehydrate, getDelegate, getDirective, getOwner, getParameterTypes, getProperty, getResolveStrategy, getThisObject, isCase, leftShift, leftShift, memoize, memoizeAtLeast, memoizeAtMost, memoizeBetween, ncurry, ncurry, rcurry, rcurry, rehydrate, rightShift, run, setDelegate, setDirective, setProperty, setResolveStrategy, trampoline, trampoline
-
-
-
-
Method Detail
-
call
public ChimeraDate call()
Get the current timestamp as both ajava.sql.Timestamp
and as a
.IDateTimeValueHolder
This closure is deterministic in the sense that subsequent calls to this closure are guaranteed to return equal values.
- Specified by:
call
in interfaceCallable<ChimeraDate>
- Overrides:
call
in classgroovy.lang.Closure<ChimeraDate>
- Returns:
- The current timestamp.
-
doCall
public Object doCall()
-
getMaximumNumberOfParameters
public int getMaximumNumberOfParameters()
- Overrides:
getMaximumNumberOfParameters
in classgroovy.lang.Closure<ChimeraDate>
- Returns:
- Always
0
.
-
-