Enum DBEntry.FORMAT

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<DBEntry.FORMAT>
    Enclosing class:
    DBEntry

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

      Enum Constants 
      Enum Constant Description
      DOUBLE
      ID for double format (double precision)
      INT
      ID for integer format (integer)
      STRING
      ID for string format (character varying)
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFormatId()
      Returns the format identifier
      static DBEntry.FORMAT parseFormat​(java.lang.String f)
      Identify a database format
      static DBEntry.FORMAT valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static DBEntry.FORMAT[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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)
      • DOUBLE

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

      • values

        public static DBEntry.FORMAT[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DBEntry.FORMAT c : DBEntry.FORMAT.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DBEntry.FORMAT valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getFormatId

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

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