Class AllInstances
java.lang.Object
com.github.perdia.queries.storage.AllInstances
Class for storing all existing instances in the database on the ORM-side.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Method for adding an Instance object to the ArrayList containing all the Instance objects.static void
Used for fetching all the existing instances in the database and writing them to the allInstances ArrayList as Instance objects.get()
Method for getting the ArrayList containing all the existing Instance objects.
-
Constructor Details
-
AllInstances
public AllInstances()
-
-
Method Details
-
add
Method for adding an Instance object to the ArrayList containing all the Instance objects.- Parameters:
inst
- Instance object to be added to the allInstances ArrayList
-
fetch
Used for fetching all the existing instances in the database and writing them to the allInstances ArrayList as Instance objects.- Parameters:
client
- TCPClient connected to the server running Perdia-DB
-
get
Method for getting the ArrayList containing all the existing Instance objects.- Returns:
- ArrayList containing all the existing Instance objects
-