Class CurrentTimestampClosure

    • Field Summary

      • Fields inherited from class groovy.lang.Closure

        DELEGATE_FIRST, DELEGATE_ONLY, DONE, IDENTITY, OWNER_FIRST, OWNER_ONLY, SKIP, TO_SELF
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ChimeraDate call()
      Get the current timestamp as both a java.sql.Timestamp and as a IDateTimeValueHolder.
      Object doCall()  
      int getMaximumNumberOfParameters()  
      • Methods inherited from class groovy.lang.Closure

        asWritable, call, call, clone, 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, invokeMethod, setMetaClass
    • Constructor Detail

      • CurrentTimestampClosure

        public CurrentTimestampClosure​(long p_lTimestamp)
    • Method Detail

      • call

        public ChimeraDate call()
        Get the current timestamp as both a java.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 interface Callable<ChimeraDate>
        Overrides:
        call in class groovy.lang.Closure<ChimeraDate>
        Returns:
        The current timestamp.
      • doCall

        public Object doCall()
      • getMaximumNumberOfParameters

        public int getMaximumNumberOfParameters()
        Overrides:
        getMaximumNumberOfParameters in class groovy.lang.Closure<ChimeraDate>
        Returns:
        Always 0.