org.ofbiz.minilang.method.envops
Class SetCalendar

java.lang.Object
  extended by org.ofbiz.minilang.method.MethodOperation
      extended by org.ofbiz.minilang.method.envops.SetCalendar

public class SetCalendar
extends MethodOperation

Adjust a Timestamp by a specified time.


Nested Class Summary
static class SetCalendar.SetCalendarFactory
           
 
Nested classes/interfaces inherited from class org.ofbiz.minilang.method.MethodOperation
MethodOperation.DeprecatedOperation, MethodOperation.Factory<M extends MethodOperation>
 
Field Summary
protected  FlexibleStringExpander daysExdr
           
protected  FlexibleStringExpander defaultExdr
           
protected  ContextAccessor<java.sql.Timestamp> field
           
protected  ContextAccessor<java.lang.Object> fromField
           
protected  FlexibleStringExpander hoursExdr
           
protected  FlexibleStringExpander localeExdr
           
protected  FlexibleStringExpander millisExdr
           
protected  FlexibleStringExpander minutesExdr
           
static java.lang.String module
           
protected  FlexibleStringExpander monthsExdr
           
protected  FlexibleStringExpander periodAlignEnd
           
protected  FlexibleStringExpander periodAlignStart
           
protected  FlexibleStringExpander secondsExdr
           
protected  boolean setIfEmpty
           
protected  boolean setIfNull
           
protected  FlexibleStringExpander timeZoneExdr
           
protected  FlexibleStringExpander valueExdr
           
protected  FlexibleStringExpander yearsExdr
           
 
Fields inherited from class org.ofbiz.minilang.method.MethodOperation
simpleMethod
 
Constructor Summary
SetCalendar(org.w3c.dom.Element element, SimpleMethod simpleMethod)
           
 
Method Summary
 boolean exec(MethodContext methodContext)
          Execute the operation; if false is returned then no further operations will be executed
 java.lang.String expandedString(MethodContext methodContext)
          Create an expanded string representation of the operation, is for the current context
 java.lang.String rawString()
          Create a raw string representation of the operation, would be similar to original XML
 
Methods inherited from class org.ofbiz.minilang.method.MethodOperation
getSimpleMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

field

protected ContextAccessor<java.sql.Timestamp> field

fromField

protected ContextAccessor<java.lang.Object> fromField

valueExdr

protected FlexibleStringExpander valueExdr

defaultExdr

protected FlexibleStringExpander defaultExdr

yearsExdr

protected FlexibleStringExpander yearsExdr

monthsExdr

protected FlexibleStringExpander monthsExdr

daysExdr

protected FlexibleStringExpander daysExdr

hoursExdr

protected FlexibleStringExpander hoursExdr

minutesExdr

protected FlexibleStringExpander minutesExdr

secondsExdr

protected FlexibleStringExpander secondsExdr

millisExdr

protected FlexibleStringExpander millisExdr

periodAlignStart

protected FlexibleStringExpander periodAlignStart

periodAlignEnd

protected FlexibleStringExpander periodAlignEnd

localeExdr

protected FlexibleStringExpander localeExdr

timeZoneExdr

protected FlexibleStringExpander timeZoneExdr

setIfNull

protected boolean setIfNull

setIfEmpty

protected boolean setIfEmpty
Constructor Detail

SetCalendar

public SetCalendar(org.w3c.dom.Element element,
                   SimpleMethod simpleMethod)
Method Detail

exec

public boolean exec(MethodContext methodContext)
Description copied from class: MethodOperation
Execute the operation; if false is returned then no further operations will be executed

Specified by:
exec in class MethodOperation

rawString

public java.lang.String rawString()
Description copied from class: MethodOperation
Create a raw string representation of the operation, would be similar to original XML

Specified by:
rawString in class MethodOperation

expandedString

public java.lang.String expandedString(MethodContext methodContext)
Description copied from class: MethodOperation
Create an expanded string representation of the operation, is for the current context

Specified by:
expandedString in class MethodOperation