Class DatabaseTemplateService


  • public final class DatabaseTemplateService
    extends java.lang.Object
    This class provides methods to access templates stored in the database.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getTemplateFromKey​(java.lang.String strKey)
      Get a template in the database from its key
      static void updateTemplate​(java.lang.String strKey, java.lang.String strValue)
      Update a template in the database
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getTemplateFromKey

        public static java.lang.String getTemplateFromKey​(java.lang.String strKey)
        Get a template in the database from its key
        Parameters:
        strKey - The key of the template to get
        Returns:
        The template loaded from the database
      • updateTemplate

        public static void updateTemplate​(java.lang.String strKey,
                                          java.lang.String strValue)
        Update a template in the database
        Parameters:
        strKey - The key of the template
        strValue - The new value of the template