Class DefaultGetVersionNumberStrategy

  • All Implemented Interfaces:
    GetVersionNumberStrategy

    public class DefaultGetVersionNumberStrategy
    extends java.lang.Object
    implements GetVersionNumberStrategy
    Simple implementation that is going to fail in case of race condition. This shouldn't be a problem since form publishing won't happen that frequent and simultaneously.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int execute​(java.lang.String applicationId, java.lang.String formId)
      Returns the next version number available for a form definition indentified by applicationId and formId
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultGetVersionNumberStrategy

        public DefaultGetVersionNumberStrategy()
    • Method Detail

      • execute

        public int execute​(java.lang.String applicationId,
                           java.lang.String formId)
        Description copied from interface: GetVersionNumberStrategy
        Returns the next version number available for a form definition indentified by applicationId and formId
        Specified by:
        execute in interface GetVersionNumberStrategy