Module watamebot

Class GuildData

java.lang.Object
net.foxgenesis.watame.sql.GuildData
All Implemented Interfaces:
IGuildData

public class GuildData extends Object implements IGuildData
Class used to contain guild database data.
Author:
Ashley
  • Method Details

    • getGuildID

      public long getGuildID()
      Description copied from interface: IGuildData
      Get the guild id this instance represents
      Specified by:
      getGuildID in interface IGuildData
      Returns:
      Returns the guld id as a long
    • getConfig

      @Nullable public @Nullable JSONObjectAdv getConfig()
      Description copied from interface: IGuildData
      Get the guild JSON configuration.
      Specified by:
      getConfig in interface IGuildData
      Returns:
      An extension of a JSONObject with a set function for updates and removals or null if no database data has been passed
    • getTempData

      public ConcurrentHashMap<String,Object> getTempData()
      Description copied from interface: IGuildData
      Get the temporary data store for this instance.
      Specified by:
      getTempData in interface IGuildData
      Returns:
      A concurrent map containing temporary data
    • toString

      public String toString()
      Overrides:
      toString in class Object