Class AllTemplates
java.lang.Object
com.github.perdia.queries.storage.AllTemplates
Class for storing all existing templates in the database on the ORM-side.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Method for adding a Template object to the ArrayList containing all the Template objects.static void
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.
-
Constructor Details
-
AllTemplates
public AllTemplates()
-
-
Method Details
-
add
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
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
Method for getting the ArrayList containing all the existing Template objects.- Returns:
- ArrayList containing all the existing Template objects
-