Class AllTemplates

java.lang.Object
com.github.perdia.queries.storage.AllTemplates

public class AllTemplates extends Object
Class for storing all existing templates in the database on the ORM-side.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Method for adding a Template object to the ArrayList containing all the Template objects.
    static void
    fetch(TCPClient client)
    Used for fetching all the existing templates in the database and writing them to the allTemplates ArrayList as Template objects.
    get()
    Method for getting the ArrayList containing all the existing Template objects.

    Methods inherited from class java.lang.Object

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

    • AllTemplates

      public AllTemplates()
  • Method Details

    • add

      public static void add(Template tmp)
      Method for adding a Template object to the ArrayList containing all the Template objects.
      Parameters:
      tmp - Template object to be added to the allTemplates ArrayList
    • fetch

      public static void fetch(TCPClient client)
      Used for fetching all the existing templates in the database and writing them to the allTemplates ArrayList as Template objects.
      Parameters:
      client - TCPClient connected to the server running Perdia-DB
    • get

      public static ArrayList<Template> get()
      Method for getting the ArrayList containing all the existing Template objects.
      Returns:
      ArrayList containing all the existing Template objects