Class NowClosure
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.lang.Closure<ChimeraDate>
de.uplanet.lucy.server.scripting.groovy.NowClosure
- All Implemented Interfaces:
groovy.lang.GroovyCallable<ChimeraDate>
,groovy.lang.GroovyObject
,Serializable
,Cloneable
,Runnable
,Callable<ChimeraDate>
- See Also:
-
Field Summary
Fields inherited from class groovy.lang.Closure
DELEGATE_FIRST, DELEGATE_ONLY, DONE, IDENTITY, OWNER_FIRST, OWNER_ONLY, SKIP, TO_SELF
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncall()
Get the current date as both ajava.sql.Timestamp
and as a
.IDateTimeValueHolder
doCall()
int
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
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClass
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface groovy.lang.GroovyObject
invokeMethod
-
Constructor Details
-
NowClosure
public NowClosure()
-
-
Method Details
-
call
Get the current date as both ajava.sql.Timestamp
and as a
.IDateTimeValueHolder
- Specified by:
call
in interfaceCallable<ChimeraDate>
- Overrides:
call
in classgroovy.lang.Closure<ChimeraDate>
- Returns:
- The current date.
-
doCall
-
getMaximumNumberOfParameters
public int getMaximumNumberOfParameters()- Overrides:
getMaximumNumberOfParameters
in classgroovy.lang.Closure<ChimeraDate>
- Returns:
- Always
0
.
-