Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.jpa.jpql.spi
Interface IManagedTypeProvider

All Superinterfaces:
IExternalForm

public interface IManagedTypeProvider
extends IExternalForm

The external representation of the provider of managed types.

Since:
2.3
Version:
2.3
Author:
Pascal Filion
See Also:
IManagedType

Method Summary
 java.lang.Iterable<IEntity> abstractSchemaTypes()
          Returns the collection of possible abstract schema types.
 IManagedType getManagedType(IType type)
          Retrieves the entity for the given type.
 IManagedType getManagedType(java.lang.String abstractSchemaName)
          Retrieves the entity with the given abstract schema name, which can also be the entity class name.
 IPlatform getPlatform()
          Returns the platform to which the JPA artifacts are deployed.
 ITypeRepository getTypeRepository()
          Returns the type repository for the application.
 IJPAVersion getVersion()
          Returns the version of the Java Persistence this entity for which it was defined.
 java.lang.Iterable<IManagedType> managedTypes()
          Returns the managed types available within the context of this provider.

 

Method Detail

abstractSchemaTypes

java.lang.Iterable<IEntity> abstractSchemaTypes()
Returns the collection of possible abstract schema types.
Returns:
The entities defined in the persistence context

getManagedType

IManagedType getManagedType(IType type)
Retrieves the entity for the given type.
Parameters:
type - The type that is used as a managed type
Returns:
The managed type for the given type, if one exists, null otherwise

getManagedType

IManagedType getManagedType(java.lang.String abstractSchemaName)
Retrieves the entity with the given abstract schema name, which can also be the entity class name.
Parameters:
abstractSchemaName - The abstract schema name, which can be different from the entity class name but by default, it's the same
Returns:
The managed type that has the given name or null if none could be found

getPlatform

IPlatform getPlatform()
Returns the platform to which the JPA artifacts are deployed.
Returns:
The application's platform

getTypeRepository

ITypeRepository getTypeRepository()
Returns the type repository for the application.
Returns:
The repository of ITypes

getVersion

IJPAVersion getVersion()
Returns the version of the Java Persistence this entity for which it was defined.
Returns:
The version of the Java Persistence being used

managedTypes

java.lang.Iterable<IManagedType> managedTypes()
Returns the managed types available within the context of this provider.
Returns:
The managed types owned by this provider

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.