Class DatabaseObject

java.lang.Object
com.example.skeddly.business.database.DatabaseObject
Direct Known Subclasses:
Event, Notification, Ticket, User

public class DatabaseObject extends Object
An object that is stored as a document in the DB. Any values in its fields will be turned into DB keys by the DatabaseHandler
See Also:
  • Constructor Details

    • DatabaseObject

      public DatabaseObject()
      Constructor for the DatabaseObject
  • Method Details

    • getId

      public String getId()
      Gets the ID of the object
      Returns:
      A string of the id of the object
    • setId

      public void setId(String id)
      Sets the ID of the object
      Parameters:
      id - The new ID
    • fetchDatabaseObjectRelatedMethods

      public Method[] fetchDatabaseObjectRelatedMethods()
      Gets the related methods for a database object.
      Returns:
      An array of all the methods