public final class MappingTypeHelper
extends java.lang.Object
IMapping.| Constructor and Description |
|---|
MappingTypeHelper() |
| Modifier and Type | Method and Description |
|---|---|
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. |
public static boolean isCollectionMapping(IMapping mapping)
IMapping is a collection type mapping.public 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.public 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.public 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.public static IMappingType mappingType(IMapping mapping)
IMappingType from the given IMapping.mapping - The IMapping, which can be nullIMapping's type or IMappingType.TRANSIENT
if the mapping is nullEclipseLink 2.3.2, "build v20111125-r10461" API Reference