ca.sqlpower.wabit.dao
Enum WabitPersister.DataType

java.lang.Object
  extended by java.lang.Enum<WabitPersister.DataType>
      extended by ca.sqlpower.wabit.dao.WabitPersister.DataType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<WabitPersister.DataType>
Enclosing interface:
WabitPersister

public static enum WabitPersister.DataType
extends java.lang.Enum<WabitPersister.DataType>

Defines each type of object that can be persisted by the WabitPersister. Each object type can be converted to a simple type based on its name.


Enum Constant Summary
BOOLEAN
           
DOUBLE
           
INTEGER
           
NULL
           
PNG_IMG
           
REFERENCE
          This is a Wabit object reference.
STRING
           
 
Method Summary
 java.lang.Class getRepresentation()
           
static WabitPersister.DataType getTypeByClass(java.lang.Class<?> lookupValue)
          Returns a DataType that represents the given class type.
 java.lang.String getTypeName()
           
static WabitPersister.DataType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static WabitPersister.DataType[] 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

STRING

public static final WabitPersister.DataType STRING

INTEGER

public static final WabitPersister.DataType INTEGER

DOUBLE

public static final WabitPersister.DataType DOUBLE

BOOLEAN

public static final WabitPersister.DataType BOOLEAN

REFERENCE

public static final WabitPersister.DataType REFERENCE
This is a Wabit object reference. Other objects like Font or Color have their own entry in this data type.


PNG_IMG

public static final WabitPersister.DataType PNG_IMG

NULL

public static final WabitPersister.DataType NULL
Method Detail

values

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

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

valueOf

public static WabitPersister.DataType 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

getTypeName

public java.lang.String getTypeName()

getRepresentation

public java.lang.Class getRepresentation()

getTypeByClass

public static WabitPersister.DataType getTypeByClass(java.lang.Class<?> lookupValue)
Returns a DataType that represents the given class type. The class given can be null



Copyright © 2009. All Rights Reserved.