Dali Provisional API
Release 3.2

org.eclipse.jpt.jpa.core.context
Interface ManagedType

All Superinterfaces:
IAdaptable, JpaContextNode, JpaNode, JptResourceTypeReference, Model
All Known Subinterfaces:
EclipseLinkOrmPersistentType, JavaManagedType, JavaPersistentType, OrmManagedType, OrmPersistentType, PersistentType, PersistentType2_0

public interface ManagedType
extends JpaContextNode

Context managed type.

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.

Since:
3.3

Nested Class Summary
static class ManagedType.NameTransformer
           
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
JptResourceTypeReference.ResourceTypeTransformer
 
Field Summary
static String NAME_PROPERTY
           
static org.eclipse.jpt.common.utility.transformer.Transformer<ManagedType,String> NAME_TRANSFORMER
           
 
Fields inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
RESOURCE_TYPE_TRANSFORMER
 
Method Summary
 JavaResourceType getJavaResourceType()
          Return the Java resource type.
 String getName()
          Return the managed type's [fully-qualified] name.
 String getSimpleName()
          Return the managed type's simple name.
 Class<? extends ManagedType> getType()
          Return the managed type's type.
 String getTypeQualifiedName()
          Return the persistent type's type-qualified name; i.e. the type's name without its package qualification.
 boolean isFor(String typeName)
          Return whether the managed type applies to the specified type name qualified with '.'
 boolean isIn(IPackageFragment packageFragment)
          Return whether the managed type resolves to a Java class in the specified package fragment.
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextNode
getCompletionProposals, getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getParent, getPersistenceUnit, getValidationTextRange, synchronizeWithResourceModel, update, validate
 
Methods inherited from interface org.eclipse.jpt.jpa.core.JpaNode
getJpaPlatform, getJpaProject, getJpaProjectManager, getResource, stateChanged
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
getResourceType
 

Field Detail

NAME_PROPERTY

static final String NAME_PROPERTY
See Also:
Constant Field Values

NAME_TRANSFORMER

static final org.eclipse.jpt.common.utility.transformer.Transformer<ManagedType,String> NAME_TRANSFORMER
Method Detail

getType

Class<? extends ManagedType> getType()
Return the managed type's type.

See Also:
OrmManagedTypeDefinition.getContextType(), JavaManagedTypeDefinition.getType()

getName

String getName()
Return the managed type's [fully-qualified] name. The enclosing type separator is '.', as opposed to '$'.

See Also:
getSimpleName(), getTypeQualifiedName()

getSimpleName

String getSimpleName()
Return the managed type's simple name.

See Also:
getName(), getTypeQualifiedName()

getTypeQualifiedName

String getTypeQualifiedName()
Return the persistent type's type-qualified name; i.e. the type's name without its package qualification.

See Also:
getName(), getSimpleName()

getJavaResourceType

JavaResourceType getJavaResourceType()
Return the Java resource type.


isFor

boolean isFor(String typeName)
Return whether the managed type applies to the specified type name qualified with '.'.


isIn

boolean isIn(IPackageFragment packageFragment)
Return whether the managed type resolves to a Java class in the specified package fragment.


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.