public class EntityMapper extends Object
This class holds all the mapping configuration for a specific JPA Entity and their corresponding IDM model classes. A specific JPA entity can be mapped to and from different IDM model classes.
Each EntityMapping
holds the specific mapping for a IDM model type.
Constructor and Description |
---|
EntityMapper(Class<?> entityType,
JPAIdentityStore jpaIdentityStore) |
Modifier and Type | Method and Description |
---|---|
Object |
createEntity() |
<P extends AttributedType> |
createType(Object entityInstance,
EntityManager entityManager) |
boolean |
equals(Object o) |
List |
getAssociatedEntities(AttributedType attributedType,
EntityMapper entityMapper,
EntityManager entityManager) |
List<EntityMapping> |
getEntityMappings() |
Class<?> |
getEntityType() |
EntityMapping |
getMappingsFor(Class<?> attributedType) |
Map.Entry<org.picketlink.common.properties.Property,org.picketlink.common.properties.Property> |
getProperty(Class<?> attributedType,
Class<? extends Annotation> annotation) |
Map.Entry<org.picketlink.common.properties.Property,org.picketlink.common.properties.Property> |
getProperty(Class<?> attributedType,
String propertyName) |
Map.Entry<org.picketlink.common.properties.Property,org.picketlink.common.properties.Property> |
getProperty(Class<? extends Annotation> annotation) |
org.picketlink.common.properties.Property |
getTypeProperty() |
int |
hashCode() |
boolean |
isRoot() |
Object |
persist(AttributedType attributedType,
EntityManager entityManager) |
Object |
updateEntity(AttributedType attributedType,
EntityManager entityManager) |
public EntityMapper(Class<?> entityType, JPAIdentityStore jpaIdentityStore)
public Object persist(AttributedType attributedType, EntityManager entityManager)
public Object updateEntity(AttributedType attributedType, EntityManager entityManager)
public <P extends AttributedType> P createType(Object entityInstance, EntityManager entityManager)
public Map.Entry<org.picketlink.common.properties.Property,org.picketlink.common.properties.Property> getProperty(Class<?> attributedType, String propertyName)
public List<EntityMapping> getEntityMappings()
public Class<?> getEntityType()
public Map.Entry<org.picketlink.common.properties.Property,org.picketlink.common.properties.Property> getProperty(Class<?> attributedType, Class<? extends Annotation> annotation)
public Map.Entry<org.picketlink.common.properties.Property,org.picketlink.common.properties.Property> getProperty(Class<? extends Annotation> annotation)
public EntityMapping getMappingsFor(Class<?> attributedType)
public boolean isRoot()
public List getAssociatedEntities(AttributedType attributedType, EntityMapper entityMapper, EntityManager entityManager)
public Object createEntity()
public org.picketlink.common.properties.Property getTypeProperty()
Copyright © 2014. All rights reserved.