Class AllInstances

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    add(Instance inst)
    Method for adding an Instance object to the ArrayList containing all the Instance objects.
    static void
    fetch(TCPClient client)
    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.

    Methods inherited from class java.lang.Object

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

    • AllInstances

      public AllInstances()
  • Method Details

    • add

      public static void add(Instance inst)
      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

      public static void fetch(TCPClient client)
      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

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