-
public interface DynamicTypeAn 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
Fields Modifier and Type Field Description static StringDESCRIPTOR_PROPERTYProperty name used to store the EntityTypeImpl on each descriptor in itsClassDescriptor.properties.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontainsProperty(String propertyName)StringgetClassName()ClassDescriptorgetDescriptor()Class<? extends DynamicEntity>getJavaClass()StringgetName()Return the entity type's name.intgetNumberOfProperties()The current number of properties.DynamicTypegetParentType()List<String>getPropertiesNames()The current names of properties.intgetPropertyIndex(String propertyName)Class<?>getPropertyType(int propertyIndex)Class<?>getPropertyType(String propertyName)DynamicEntitynewDynamicEntity()
-
-
-
Field Detail
-
DESCRIPTOR_PROPERTY
static final String DESCRIPTOR_PROPERTY
Property name used to store the EntityTypeImpl on each descriptor in itsClassDescriptor.properties. The EntityType instance is generally populated by theDynamicTypeBuilderand should only be done when properly initialized.- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
String getName()
Return the entity type's name. This is the short name of the class or theClassDescriptor.getAlias()
-
getClassName
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
List<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(String propertyName)
-
getPropertyIndex
int getPropertyIndex(String propertyName)
-
getJavaClass
Class<? extends DynamicEntity> getJavaClass()
-
newDynamicEntity
DynamicEntity newDynamicEntity()
-
getPropertyType
Class<?> getPropertyType(int propertyIndex)
-
getDescriptor
ClassDescriptor getDescriptor()
- Returns:
- the underlying
ClassDescriptorfor the mapped type
-
-