Class StateFieldPathExpressionStateObject.MapManagedType
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.tools.model.query.StateFieldPathExpressionStateObject.MapManagedType
-
- All Implemented Interfaces:
Comparable<IManagedType>,IManagedType
- Enclosing class:
- StateFieldPathExpressionStateObject
protected static class StateFieldPathExpressionStateObject.MapManagedType extends Object implements IManagedType
-
-
Field Summary
Fields Modifier and Type Field Description protected ITypemapTypeprotected IManagedTypeProviderprovider
-
Constructor Summary
Constructors Modifier Constructor Description protectedMapManagedType(IManagedTypeProvider provider, IType mapType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(IManagedTypeVisitor visitor)Visits this managed type with the given visitor.intcompareTo(IManagedType managedType)IMappinggetMappingNamed(String name)Returns theIMappingwith the given name.IManagedTypeProvidergetProvider()Retrieves the owner of this managed type.ITypegetType()Returns the external representation of the class used by this managed type.Iterable<IMapping>mappings()Returns the collection ofmappingsdefined in this managed type.StringtoString()
-
-
-
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)
Description copied from interface:IManagedTypeVisits this managed type with the given visitor.- Specified by:
acceptin interfaceIManagedType- Parameters:
visitor- The visitor to visit this managed type object
-
compareTo
public int compareTo(IManagedType managedType)
- Specified by:
compareToin interfaceComparable<IManagedType>
-
getMappingNamed
public IMapping getMappingNamed(String name)
Description copied from interface:IManagedTypeReturns theIMappingwith the given name.- Specified by:
getMappingNamedin interfaceIManagedType- Parameters:
name- The name of the mapping to retrieve- Returns:
- Either the
IMappingornullif it could not be found
-
getProvider
public IManagedTypeProvider getProvider()
Description copied from interface:IManagedTypeRetrieves the owner of this managed type.- Specified by:
getProviderin interfaceIManagedType- Returns:
- The external form holding onto the JPA managed types
-
getType
public IType getType()
Description copied from interface:IManagedTypeReturns the external representation of the class used by this managed type.- Specified by:
getTypein interfaceIManagedType- Returns:
- The external representation of the class used by this managed type
-
mappings
public Iterable<IMapping> mappings()
Description copied from interface:IManagedTypeReturns the collection ofmappingsdefined in this managed type.- Specified by:
mappingsin interfaceIManagedType- Returns:
- The collection of persistent fields and properties of this managed type
-
-