Top Description Methods
org.eclipse.persistence.jpa.jpql.tools.spi

public Interface IManagedType

extends IExternalForm, Comparable<IManagedType>
Known Direct Subinterfaces
org.eclipse.persistence.jpa.jpql.tools.spi.IMappedSuperclass, org.eclipse.persistence.jpa.jpql.tools.spi.IEmbeddable, org.eclipse.persistence.jpa.jpql.tools.spi.IEntity
Known Direct Implementers
org.eclipse.persistence.jpa.jpql.tools.model.query.StateFieldPathExpressionStateObject.MapManagedType, org.eclipse.persistence.jpa.jpql.tools.resolver.FromSubqueryResolver.VirtualManagedType, org.eclipse.persistence.jpa.jpql.tools.resolver.CollectionValuedFieldResolver.MapManagedType

The external representation of a managed type, which is a JPA persistent object.

Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Author
Pascal Filion
Since
2.3
Version
2.5
See Also
IEmbeddable, IEntity, IMappedSuperclass

Method Summary

Modifier and TypeMethod and Description
public void
accept(IManagedTypeVisitor
The visitor to visit this managed type object
visitor
)

Visits this managed type with the given visitor.

public IMapping

Returns:

Either the IMapping or null if it could not be found
getMappingNamed
(String
The name of the mapping to retrieve
name
)

Returns the IMapping with the given name.

public IManagedTypeProvider

Returns:

The external form holding onto the JPA managed types
getProvider
()

Retrieves the owner of this managed type.

public IType

Returns:

The external representation of the class used by this managed type
getType
()

Returns the external representation of the class used by this managed type.

public Iterable<IMapping>

Returns:

The collection of persistent fields and properties of this managed type
mappings
()

Returns the collection of mappings defined in this managed type.

Inherited from java.lang.Comparable:
compareTo

Method Detail

acceptback to summary
public void accept(IManagedTypeVisitor visitor)

Visits this managed type with the given visitor.

Parameters
visitor:IManagedTypeVisitor

The visitor to visit this managed type object

getMappingNamedback to summary
public IMapping getMappingNamed(String name)

Returns the IMapping with the given name.

Parameters
name:String

The name of the mapping to retrieve

Returns:IMapping

Either the IMapping or null if it could not be found

getProviderback to summary
public IManagedTypeProvider getProvider()

Retrieves the owner of this managed type.

Returns:IManagedTypeProvider

The external form holding onto the JPA managed types

getTypeback to summary
public IType getType()

Returns the external representation of the class used by this managed type.

Returns:IType

The external representation of the class used by this managed type

mappingsback to summary
public Iterable<IMapping> mappings()

Returns the collection of mappings defined in this managed type.

Returns:Iterable<IMapping>

The collection of persistent fields and properties of this managed type