|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
org.eclipse.persistence.jpa.jpql.MappingTypeHelper
public final class MappingTypeHelper
This class has helper methods that determine the type of the IMapping
.
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 |
---|
public MappingTypeHelper()
Method Detail |
---|
public static boolean isCollectionMapping(IMapping mapping)
IMapping
is a collection type mapping.mapping
- The IMapping
to verify if it's property mappingtrue
if the given IMapping
is a collection mapping; false
otherwisepublic static boolean isCollectionMapping(IMappingType mappingType)
IMappingType
is considered a collection mapping.mappingType
- The IMappingType
to verify if it's collection mappingtrue
if the given IMapping
is considered a collection mapping; false
otherwisepublic static boolean isPropertyMapping(IMapping mapping)
IMapping
is a not a collection type mapping.mapping
- The IMapping
to verify if it's property mappingtrue
if the given IMapping
is a not collection mapping; false
otherwisepublic static boolean isPropertyMapping(IMappingType mappingType)
IMappingType
is a not a property type mapping.mappingType
- The IMappingType
to verify if it's property mappingtrue
if the given IMappingType
is a not collection mapping; false
otherwisepublic static boolean isRelationshipMapping(IMapping mapping)
IMapping
is a relationship type mapping.mapping
- The IMapping
to verify if it's a relationship mappingtrue
if the given IMapping
is a relationship mapping; false
otherwisepublic static boolean isRelationshipMapping(IMappingType mappingType)
IMappingType
is considered a relationship mapping.mappingType
- The IMappingType
to verify if it's a relationship mappingtrue
if the given IMapping
is considered a relationship mapping; false
otherwisepublic static boolean isTransientMapping(IMapping mapping)
IMapping
is a transient mapping.mapping
- The IMapping
to verify if it's a transient mappingtrue
if the given IMapping
is a transient mapping; false
otherwisepublic static IMappingType mappingType(IMapping mapping)
IMappingType
from the given IMapping
.mapping
- The IMapping
, which can be null
IMapping
's type
or IMappingType.TRANSIENT
if the mapping is null
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |