com.vaadin.addon.jpacontainer.metadata
Enum PropertyKind

java.lang.Object
  extended by java.lang.Enum<PropertyKind>
      extended by com.vaadin.addon.jpacontainer.metadata.PropertyKind
All Implemented Interfaces:
Serializable, Comparable<PropertyKind>

public enum PropertyKind
extends Enum<PropertyKind>

Enumeration defining the property kind.

Author:
Petter Holmström (Vaadin Ltd)

Enum Constant Summary
ELEMENT_COLLECTION
          The property is a collection Embeddables or basic data types.
EMBEDDED
          The property is embedded.
MANY_TO_MANY
          The property is a reference.
MANY_TO_ONE
          The property is a reference.
NONPERSISTENT
          The property is not persistent property.
ONE_TO_MANY
          The property is a collection.
ONE_TO_ONE
          The property is a reference.
SIMPLE
          The property is of a simple datatype.
 
Method Summary
static PropertyKind valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PropertyKind[] 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

EMBEDDED

public static final PropertyKind EMBEDDED
The property is embedded.

See Also:
Embeddable, Embedded

MANY_TO_ONE

public static final PropertyKind MANY_TO_ONE
The property is a reference.

See Also:
OneToOne, ManyToOne

ONE_TO_ONE

public static final PropertyKind ONE_TO_ONE
The property is a reference.

See Also:
ManyToOne

ONE_TO_MANY

public static final PropertyKind ONE_TO_MANY
The property is a collection.

See Also:
OneToMany

MANY_TO_MANY

public static final PropertyKind MANY_TO_MANY
The property is a reference.

See Also:
ManyToMany

ELEMENT_COLLECTION

public static final PropertyKind ELEMENT_COLLECTION
The property is a collection Embeddables or basic data types.

See Also:
ElementCollection

SIMPLE

public static final PropertyKind SIMPLE
The property is of a simple datatype.


NONPERSISTENT

public static final PropertyKind NONPERSISTENT
The property is not persistent property.

Method Detail

values

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

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

valueOf

public static PropertyKind 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 © 2013 Vaadin Ltd. All rights reserved.