Class GenerateUuidMethod

java.lang.Object
ch.tocco.nice2.templating.impl.freemarker.methods.GenerateUuidMethod
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel

public class GenerateUuidMethod extends Object implements freemarker.template.TemplateMethodModelEx
Freemarker method that generates a random UUID. Use as default for fields with type uuid.
  • Constructor Details

    • GenerateUuidMethod

      public GenerateUuidMethod()
  • Method Details

    • exec

      public Object exec(List list) throws freemarker.template.TemplateModelException
      Specified by:
      exec in interface freemarker.template.TemplateMethodModel
      Specified by:
      exec in interface freemarker.template.TemplateMethodModelEx
      Throws:
      freemarker.template.TemplateModelException