public class DynamicTypeImpl extends java.lang.Object implements DynamicType
DESCRIPTOR_PROPERTY| Constructor and Description |
|---|
DynamicTypeImpl(ClassDescriptor descriptor,
DynamicType parentType)
Creation of an EntityTypeImpl for an existing Descriptor with mappings.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkSet(java.lang.String propertyName,
java.lang.Object value)
Ensure the value being set is supported by the mapping.
|
java.lang.Object |
clone() |
boolean |
containsProperty(java.lang.String propertyName) |
java.lang.String |
getClassName() |
ClassDescriptor |
getDescriptor() |
DynamicPropertiesManager |
getDynamicPropertiesManager() |
java.lang.Class<? extends DynamicEntity> |
getJavaClass() |
DatabaseMapping |
getMapping(java.lang.String propertyName) |
java.util.List<DatabaseMapping> |
getMappings() |
java.util.Set<DatabaseMapping> |
getMappingsRequiringInitialization() |
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) |
boolean |
isInitialized() |
DynamicEntity |
newDynamicEntity() |
void |
setDescriptor(ClassDescriptor descriptor) |
void |
setDynamicPropertiesManager(DynamicPropertiesManager dpm) |
java.lang.String |
toString() |
public DynamicTypeImpl(ClassDescriptor descriptor, DynamicType parentType)
descriptor - public java.lang.Object clone()
clone in class java.lang.Objectpublic ClassDescriptor getDescriptor()
getDescriptor in interface DynamicTypeClassDescriptor for the mapped typepublic void setDescriptor(ClassDescriptor descriptor)
public DynamicPropertiesManager getDynamicPropertiesManager()
public void setDynamicPropertiesManager(DynamicPropertiesManager dpm)
public DynamicType getParentType()
getParentType in interface DynamicTypepublic java.util.List<DatabaseMapping> getMappings()
public java.lang.String getName()
DynamicTypeClassDescriptor.getAlias()getName in interface DynamicTypeDynamicType.getName()public java.lang.String getClassName()
getClassName in interface DynamicTypepublic int getNumberOfProperties()
DynamicTypeNote: Some implementations support adding mapped attributes at runtime so it is best to avoid caching the result.
getNumberOfProperties in interface DynamicTypepublic java.util.Set<DatabaseMapping> getMappingsRequiringInitialization()
public boolean isInitialized()
public boolean containsProperty(java.lang.String propertyName)
containsProperty in interface DynamicTypepublic java.lang.Class<? extends DynamicEntity> getJavaClass()
getJavaClass in interface DynamicTypepublic DatabaseMapping getMapping(java.lang.String propertyName)
public java.util.List<java.lang.String> getPropertiesNames()
DynamicTypeNote: Some implementations support adding mapped attributes at runtime so it is best to avoid caching the result.
getPropertiesNames in interface DynamicTypepublic java.lang.Class<?> getPropertyType(java.lang.String propertyName)
getPropertyType in interface DynamicTypepublic DynamicEntity newDynamicEntity()
newDynamicEntity in interface DynamicTypepublic void checkSet(java.lang.String propertyName,
java.lang.Object value)
throws DynamicException
DynamicExceptionpublic int getPropertyIndex(java.lang.String propertyName)
getPropertyIndex in interface DynamicTypepublic java.lang.Class<?> getPropertyType(int propertyIndex)
getPropertyType in interface DynamicTypepublic java.lang.String toString()
toString in class java.lang.ObjectEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference