EclipseLink 2.1.2, build 'v20101206-r8635' API Reference

org.eclipse.persistence.dynamic
Interface DynamicType


public interface DynamicType

An EntityType provides a metadata facade into the EclipseLink object-relational metadata (descriptors & mappings) with specific knowledge of the entity types being dynamic.

Author:
dclarke, mnorman
Since:
EclipseLink 1.2

Field Summary
static java.lang.String DESCRIPTOR_PROPERTY
          Property name used to store the EntityTypeImpl on each descriptor in its ClassDescriptor.properties.
 
Method Summary
 boolean containsProperty(java.lang.String propertyName)
           
 java.lang.String getClassName()
           
 ClassDescriptor getDescriptor()
           
 java.lang.Class<?> getJavaClass()
           
 java.lang.String getName()
          Return the entity type's name.
 int getNumberOfProperties()
          The current number of properties.
 DynamicType getParentType()
           
 java.util.List<java.lang.String> getPropertiesNames()
          The current names of properties.
 int getPropertyIndex(java.lang.String propertyName)
           
 java.lang.Class<?> getPropertyType(int propertyIndex)
           
 java.lang.Class<?> getPropertyType(java.lang.String propertyName)
           
 DynamicEntity newDynamicEntity()
           
 

Field Detail

DESCRIPTOR_PROPERTY

static final java.lang.String DESCRIPTOR_PROPERTY
Property name used to store the EntityTypeImpl on each descriptor in its ClassDescriptor.properties. The EntityType instance is generally populated by the DynamicTypeBuilder and should only be done when properly initialized.

See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()
Return the entity type's name. This is the short name of the class or the ClassDescriptor.getAlias()


getClassName

java.lang.String getClassName()
Returns:
Fully qualified name of mapped class.

getParentType

DynamicType getParentType()
Returns:
The parent type or null if this type does not have a persistent superclass

getNumberOfProperties

int getNumberOfProperties()
The current number of properties.

Note: Some implementations support adding mapped attributes at runtime so it is best to avoid caching the result.


getPropertiesNames

java.util.List<java.lang.String> getPropertiesNames()
The current names of properties.

Note: Some implementations support adding mapped attributes at runtime so it is best to avoid caching the result.


containsProperty

boolean containsProperty(java.lang.String propertyName)

getPropertyIndex

int getPropertyIndex(java.lang.String propertyName)

getJavaClass

java.lang.Class<?> getJavaClass()

newDynamicEntity

DynamicEntity newDynamicEntity()

getPropertyType

java.lang.Class<?> getPropertyType(int propertyIndex)

getPropertyType

java.lang.Class<?> getPropertyType(java.lang.String propertyName)

getDescriptor

ClassDescriptor getDescriptor()
Returns:
the underlying ClassDescriptor for the mapped type

EclipseLink 2.1.2, build 'v20101206-r8635' API Reference