org.apache.empire.data
Enum DataMode

java.lang.Object
  extended by java.lang.Enum<DataMode>
      extended by org.apache.empire.data.DataMode
All Implemented Interfaces:
Serializable, Comparable<DataMode>

public enum DataMode
extends Enum<DataMode>

DataMode is an enumeration that specifies whether the value of a column is readonly, optional (nullable), required (NotNull), or auto-generated


Enum Constant Summary
AutoGenerated
          AutoGenerated = value is automatically generated by the database on inserts
NotNull
          Required = value may not be null
Nullable
          Optional = value may be null
ReadOnly
          ReadOnly = value cannot be changed
 
Method Summary
static DataMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DataMode[] 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

ReadOnly

public static final DataMode ReadOnly
ReadOnly = value cannot be changed


Nullable

public static final DataMode Nullable
Optional = value may be null


NotNull

public static final DataMode NotNull
Required = value may not be null


AutoGenerated

public static final DataMode AutoGenerated
AutoGenerated = value is automatically generated by the database on inserts

Method Detail

values

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

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

valueOf

public static DataMode 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


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.