Enum Class StorageType

java.lang.Object
java.lang.Enum<StorageType>
com.booksaw.betterTeams.team.storage.StorageType
All Implemented Interfaces:
Serializable, Comparable<StorageType>, Constable

public enum StorageType extends Enum<StorageType>
  • Enum Constant Details

    • FLATFILE

      public static final StorageType FLATFILE
      FLATFILE is the storage method pre 4.0 where all team data is stored within a single file
    • YAML

      public static final StorageType YAML
      YAML is where team data is all stored in individual team files along with teams.yml to contain pointers to the correct file
    • SQL

      public static final StorageType SQL
      SQL is where team data is stored in a mySQL database
  • Method Details

    • values

      public static StorageType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static StorageType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getNewTeamManager

      public TeamManager getNewTeamManager()
      Returns:
      the teamStorageManager relevant to the storageType
    • getStorageType

      public static StorageType getStorageType(String str)