mysql
Enum ObserveSql.Types

java.lang.Object
  extended by java.lang.Enum<ObserveSql.Types>
      extended by mysql.ObserveSql.Types
All Implemented Interfaces:
Serializable, Comparable<ObserveSql.Types>
Enclosing class:
ObserveSql

public static enum ObserveSql.Types
extends Enum<ObserveSql.Types>

Enum version of image types.


Enum Constant Summary
BIAS
           
CALIB
           
DARK
           
FLAT
           
SCIENCE
           
SKY
           
UNKNOWN
           
 
Field Summary
private  int db
           
private  String head
           
 
Method Summary
static ObserveSql.Types createFromFitsHeader(String sql)
           
static ObserveSql.Types createFromSql(int sql)
           
 String getFitsHeader()
           
 int getSqlType()
           
static ObserveSql.Types valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ObserveSql.Types[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SKY

public static final ObserveSql.Types SKY

SCIENCE

public static final ObserveSql.Types SCIENCE

FLAT

public static final ObserveSql.Types FLAT

BIAS

public static final ObserveSql.Types BIAS

CALIB

public static final ObserveSql.Types CALIB

DARK

public static final ObserveSql.Types DARK

UNKNOWN

public static final ObserveSql.Types UNKNOWN
Field Detail

db

private int db

head

private String head
Method Detail

values

public static ObserveSql.Types[] 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 (ObserveSql.Types c : ObserveSql.Types.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ObserveSql.Types 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 int getSqlType()

getFitsHeader

public String getFitsHeader()

createFromSql

public static ObserveSql.Types createFromSql(int sql)

createFromFitsHeader

public static ObserveSql.Types createFromFitsHeader(String sql)