1 24 package org.ofbiz.minilang.method.entityops; 25 26 import org.w3c.dom.*; 27 28 import org.ofbiz.minilang.*; 29 import org.ofbiz.minilang.method.*; 30 31 38 public class ClearEntityCaches extends MethodOperation { 39 40 public ClearEntityCaches(Element element, SimpleMethod simpleMethod) { 41 super(element, simpleMethod); 42 } 43 44 public boolean exec(MethodContext methodContext) { 45 methodContext.getDelegator().clearAllCaches(); 46 return true; 47 } 48 49 public String rawString() { 50 return "<clear-entity-caches/>"; 52 } 53 public String expandedString(MethodContext methodContext) { 54 return this.rawString(); 56 } 57 } 58 | Popular Tags |