Enum DBEntry.FORMAT
- java.lang.Object
-
- java.lang.Enum<DBEntry.FORMAT>
-
- talonsoalbi_at_gmail_dot_com.ssoxmatch.db.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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFormatId()
Returns the format identifierstatic DBEntry.FORMAT
parseFormat(java.lang.String f)
Identify a database formatstatic 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.
-
-
-
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 namejava.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
-
-