JADE Java Persistence API
1.0

com.jadeworld.jade.persistence
Enum DefaultStyle

java.lang.Object
  extended by java.lang.Enum<DefaultStyle>
      extended by com.jadeworld.jade.persistence.DefaultStyle
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DefaultStyle>

public enum DefaultStyle
extends java.lang.Enum<DefaultStyle>

Defines the set of default styles that an Entity can have. Sets the allowable values of the @Entity defaultStyle attribute.

Author:
JADE Development Centre, Jade Software Corporation Ltd.

Enum Constant Summary
FIELD
          FIELD means that each non-annotated property is treated as if it were annotated with @DbField()
NONE
          NONE means that each property in the entity class must have an explicit @DbField, @DbProperty, or @Transient annotation.
PROPERTY
          PROPERTY means that each non-annotated property is treated as if it were annotated with @DbProperty()
TRANSIENT
          TRANSIENT means that each non-annotated property is treated as if it were annotated with @Transient()
 
Method Summary
static DefaultStyle valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DefaultStyle[] values()
          Returns an array containing the constants of this enum type, in the order they're 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

NONE

public static final DefaultStyle NONE
NONE means that each property in the entity class must have an explicit @DbField, @DbProperty, or @Transient annotation.


FIELD

public static final DefaultStyle FIELD
FIELD means that each non-annotated property is treated as if it were annotated with @DbField()


PROPERTY

public static final DefaultStyle PROPERTY
PROPERTY means that each non-annotated property is treated as if it were annotated with @DbProperty()


TRANSIENT

public static final DefaultStyle TRANSIENT
TRANSIENT means that each non-annotated property is treated as if it were annotated with @Transient()

Method Detail

values

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

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

valueOf

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

JADE Java Persistence API
1.0

Copyright © 2007 Jade Software Corporation