Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.jpa.jpql.spi
Enum IMappingType

java.lang.Object
  extended by java.lang.Enum<IMappingType>
      extended by org.eclipse.persistence.jpa.jpql.spi.IMappingType

All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IMappingType>

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

This enumeration lists the supported mapping types.

Since:
2.3
Version:
2.3
Author:
Pascal Filion

Enum Constant Summary
BASIC
          The constant for a basic mapping.
BASIC_COLLECTION
          The constant for a basic collection mapping, which is deprecated.
BASIC_MAP
          The constant for a basic map mapping, which is deprecated.
ELEMENT_COLLECTION
          The constant for a element collection mapping.
EMBEDDED
          The constant for an embedded mapping.
EMBEDDED_ID
          The constant for an embedded ID mapping.
ID
          The constant for an ID mapping.
MANY_TO_MANY
          The constant for a many to many mapping.
MANY_TO_ONE
          The constant for a many to one mapping.
ONE_TO_MANY
          The constant for a one to many mapping.
ONE_TO_ONE
          The constant for a one to one mapping.
TRANSFORMATION
          The constant for a transformation mapping.
TRANSIENT
          The constant for an attribute that is not persistent.
VARIABLE_ONE_TO_ONE
          The constant for a variable one to one mapping.
VERSION
          The constant for a version mapping.

 

Method Summary
static IMappingType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IMappingType[] 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

BASIC

public static final IMappingType BASIC
The constant for a basic mapping.

BASIC_COLLECTION

public static final IMappingType BASIC_COLLECTION
The constant for a basic collection mapping, which is deprecated.

BASIC_MAP

public static final IMappingType BASIC_MAP
The constant for a basic map mapping, which is deprecated.

ELEMENT_COLLECTION

public static final IMappingType ELEMENT_COLLECTION
The constant for a element collection mapping.

EMBEDDED

public static final IMappingType EMBEDDED
The constant for an embedded mapping.

EMBEDDED_ID

public static final IMappingType EMBEDDED_ID
The constant for an embedded ID mapping.

ID

public static final IMappingType ID
The constant for an ID mapping.

MANY_TO_MANY

public static final IMappingType MANY_TO_MANY
The constant for a many to many mapping.

MANY_TO_ONE

public static final IMappingType MANY_TO_ONE
The constant for a many to one mapping.

ONE_TO_MANY

public static final IMappingType ONE_TO_MANY
The constant for a one to many mapping.

ONE_TO_ONE

public static final IMappingType ONE_TO_ONE
The constant for a one to one mapping.

TRANSFORMATION

public static final IMappingType TRANSFORMATION
The constant for a transformation mapping.

TRANSIENT

public static final IMappingType TRANSIENT
The constant for an attribute that is not persistent.

VARIABLE_ONE_TO_ONE

public static final IMappingType VARIABLE_ONE_TO_ONE
The constant for a variable one to one mapping.

VERSION

public static final IMappingType VERSION
The constant for a version mapping.

Method Detail

values

public static IMappingType[] 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 (IMappingType c : IMappingType.values())
    System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

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

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.