com.adaptrex.core.persistence.jpa
Class JPAAssociationType

java.lang.Object
  extended by com.adaptrex.core.persistence.api.AdaptrexAssociationType
      extended by com.adaptrex.core.persistence.jpa.JPAAssociationType

public class JPAAssociationType
extends AdaptrexAssociationType


Field Summary
 
Fields inherited from class com.adaptrex.core.persistence.api.AdaptrexAssociationType
idFieldDefinition
 
Constructor Summary
JPAAssociationType(javax.persistence.metamodel.SingularAttribute<?,?> association, SecureEntity secureEntity)
           
 
Method Summary
 Object getAssociationFrom(Object entity)
           
 void setById(javax.persistence.EntityManager em, Object entity, Object associationId)
           
 
Methods inherited from class com.adaptrex.core.persistence.api.AdaptrexAssociationType
getAssociationType, getIdFieldDefinition, getName, getSecureField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPAAssociationType

public JPAAssociationType(javax.persistence.metamodel.SingularAttribute<?,?> association,
                          SecureEntity secureEntity)
Method Detail

getAssociationFrom

public Object getAssociationFrom(Object entity)
                          throws Exception
Specified by:
getAssociationFrom in class AdaptrexAssociationType
Throws:
Exception

setById

public void setById(javax.persistence.EntityManager em,
                    Object entity,
                    Object associationId)
             throws Exception
Throws:
Exception


Copyright © 2012 Adaptrex, LLC. All Rights Reserved.