Class CollectionValuedFieldResolver.MapManagedType
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.tools.resolver.CollectionValuedFieldResolver.MapManagedType
-
- All Implemented Interfaces:
java.lang.Comparable<IManagedType>
,IManagedType
- Enclosing class:
- CollectionValuedFieldResolver
protected static class CollectionValuedFieldResolver.MapManagedType extends java.lang.Object implements IManagedType
-
-
Field Summary
Fields Modifier and Type Field Description protected IType
mapType
protected IManagedTypeProvider
provider
-
Constructor Summary
Constructors Modifier Constructor Description protected
MapManagedType(IManagedTypeProvider provider, IType mapType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(IManagedTypeVisitor visitor)
Visits this managed type with the given visitor.int
compareTo(IManagedType managedType)
IMapping
getMappingNamed(java.lang.String name)
Returns theIMapping
with the given name.IManagedTypeProvider
getProvider()
Retrieves the owner of this managed type.IType
getType()
Returns the external representation of the class used by this managed type.java.lang.Iterable<IMapping>
mappings()
Returns the collection ofmappings
defined in this managed type.java.lang.String
toString()
-
-
-
Field Detail
-
mapType
protected final IType mapType
-
provider
protected final IManagedTypeProvider provider
-
-
Constructor Detail
-
MapManagedType
protected MapManagedType(IManagedTypeProvider provider, IType mapType)
-
-
Method Detail
-
accept
public void accept(IManagedTypeVisitor visitor)
Visits this managed type with the given visitor.- Specified by:
accept
in interfaceIManagedType
- Parameters:
visitor
- The visitor to visit this managed type object
-
compareTo
public int compareTo(IManagedType managedType)
- Specified by:
compareTo
in interfacejava.lang.Comparable<IManagedType>
-
getMappingNamed
public IMapping getMappingNamed(java.lang.String name)
Returns theIMapping
with the given name.- Specified by:
getMappingNamed
in interfaceIManagedType
- Parameters:
name
- The name of the mapping to retrieve- Returns:
- Either the
IMapping
ornull
if it could not be found
-
getProvider
public IManagedTypeProvider getProvider()
Retrieves the owner of this managed type.- Specified by:
getProvider
in interfaceIManagedType
- Returns:
- The external form holding onto the JPA managed types
-
getType
public IType getType()
Returns the external representation of the class used by this managed type.- Specified by:
getType
in interfaceIManagedType
- Returns:
- The external representation of the class used by this managed type
-
mappings
public java.lang.Iterable<IMapping> mappings()
Returns the collection ofmappings
defined in this managed type.- Specified by:
mappings
in interfaceIManagedType
- Returns:
- The collection of persistent fields and properties of this managed type
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-