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
Class MappingTypeHelper

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.MappingTypeHelper


public final class MappingTypeHelper
extends java.lang.Object

This class has helper methods that determine the type of the IMapping.

Since:
2.3
Version:
2.3
Author:
Pascal Filion

Constructor Summary
MappingTypeHelper()
           

 

Method Summary
static boolean isCollectionMapping(IMapping mapping)
          Determines whether the given IMapping is a collection type mapping.
static boolean isCollectionMapping(IMappingType mappingType)
          Determines whether the given IMappingType is considered a collection mapping.
static boolean isPropertyMapping(IMapping mapping)
          Determines whether the given IMapping is a not a collection type mapping.
static boolean isPropertyMapping(IMappingType mappingType)
          Determines whether the given IMappingType is a not a property type mapping.
static boolean isRelationshipMapping(IMapping mapping)
          Determines whether the given IMapping is a relationship type mapping.
static boolean isRelationshipMapping(IMappingType mappingType)
          Determines whether the given IMappingType is considered a relationship mapping.
static boolean isTransientMapping(IMapping mapping)
          Determines whether the given IMapping is a transient mapping.
static IMappingType mappingType(IMapping mapping)
          Retrieves the IMappingType from the given IMapping.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

MappingTypeHelper

public MappingTypeHelper()

Method Detail

isCollectionMapping

public static boolean isCollectionMapping(IMapping mapping)
Determines whether the given IMapping is a collection type mapping.
Parameters:
mapping - The IMapping to verify if it's property mapping
Returns:
true if the given IMapping is a collection mapping; false otherwise

isCollectionMapping

public static boolean isCollectionMapping(IMappingType mappingType)
Determines whether the given IMappingType is considered a collection mapping.
Parameters:
mappingType - The IMappingType to verify if it's collection mapping
Returns:
true if the given IMapping is considered a collection mapping; false otherwise

isPropertyMapping

public static boolean isPropertyMapping(IMapping mapping)
Determines whether the given IMapping is a not a collection type mapping.
Parameters:
mapping - The IMapping to verify if it's property mapping
Returns:
true if the given IMapping is a not collection mapping; false otherwise

isPropertyMapping

public static boolean isPropertyMapping(IMappingType mappingType)
Determines whether the given IMappingType is a not a property type mapping.
Parameters:
mappingType - The IMappingType to verify if it's property mapping
Returns:
true if the given IMappingType is a not collection mapping; false otherwise

isRelationshipMapping

public static boolean isRelationshipMapping(IMapping mapping)
Determines whether the given IMapping is a relationship type mapping.
Parameters:
mapping - The IMapping to verify if it's a relationship mapping
Returns:
true if the given IMapping is a relationship mapping; false otherwise

isRelationshipMapping

public static boolean isRelationshipMapping(IMappingType mappingType)
Determines whether the given IMappingType is considered a relationship mapping.
Parameters:
mappingType - The IMappingType to verify if it's a relationship mapping
Returns:
true if the given IMapping is considered a relationship mapping; false otherwise

isTransientMapping

public static boolean isTransientMapping(IMapping mapping)
Determines whether the given IMapping is a transient mapping.
Parameters:
mapping - The IMapping to verify if it's a transient mapping
Returns:
true if the given IMapping is a transient mapping; false otherwise

mappingType

public static IMappingType mappingType(IMapping mapping)
Retrieves the IMappingType from the given IMapping.
Parameters:
mapping - The IMapping, which can be null
Returns:
The given IMapping's type or IMappingType.TRANSIENT if the mapping is null

Skip navigation links

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