Enum DBEntry.FORMAT

java.lang.Object
java.lang.Enum<DBEntry.FORMAT>
talonsoalbi_at_gmail_dot_com.ssoxmatch.db.DBEntry.FORMAT
All Implemented Interfaces:
Serializable, Comparable<DBEntry.FORMAT>, java.lang.constant.Constable
Enclosing class:
DBEntry

public static enum DBEntry.FORMAT extends Enum<DBEntry.FORMAT>
Database formats for the columns
  • Enum Constant Details

    • STRING

      public static final DBEntry.FORMAT STRING
      ID for string format (character varying)
    • INT

      public static final DBEntry.FORMAT INT
      ID for integer format (integer)
    • LONG

      public static final DBEntry.FORMAT LONG
      ID for long format (big int)
    • DOUBLE

      public static final DBEntry.FORMAT DOUBLE
      ID for double format (double precision)
  • Method Details

    • values

      public static DBEntry.FORMAT[] 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 DBEntry.FORMAT 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
    • getFormatId

      public String getFormatId()
      Returns the format identifier
      Returns:
      Format id
    • parseFormat

      public static DBEntry.FORMAT parseFormat(String f)
      Identify a database format
      Parameters:
      f - Database format identifier
      Returns:
      The DBEntry.FORMAT for the format id provided