Enum ColumnType

java.lang.Object
java.lang.Enum<ColumnType>
fr.luc.crcore.database.ColumnType
All Implemented Interfaces:
Serializable, Comparable<ColumnType>

public enum ColumnType extends Enum<ColumnType>
Types de colonnes supportés par TableBuilder, chacun mappé sur un type natif SQLite. Volontairement réduit : SQLite est faiblement typé, ces 6 types couvrent largement les besoins d'un plugin Minecraft.
  • INTEGER — entiers 32/64 bits
  • REAL — flottants (double)
  • TEXT — chaînes UTF-8
  • BLOB — données binaires brutes
  • BOOLEAN — stocké comme INTEGER (0/1) côté SQLite
  • UUID — stocké comme TEXT (forme canonique 36 caractères)
  • Enum Constant Details

  • Method Details

    • values

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

      public static ColumnType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getSqlType

      public String getSqlType()
      Nom SQL natif côté SQLite.