com.adaptrex.core.persistence.jpa
Class JPAModelInstance

java.lang.Object
  extended by com.adaptrex.core.persistence.jpa.JPAModelInstance
All Implemented Interfaces:
ORMModelInstance

public class JPAModelInstance
extends Object
implements ORMModelInstance


Constructor Summary
JPAModelInstance(ExtConfig extConfig)
           
JPAModelInstance(ExtConfig extConfig, Object entity)
           
JPAModelInstance(ExtConfig extConfig, Object entity, javax.persistence.EntityManager db)
           
 
Method Summary
 ORMModelInstance delete()
           
 Map<String,Object> getData()
           
 Object getId()
           
 ORMModelInstance update(Map<String,Object> data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPAModelInstance

public JPAModelInstance(ExtConfig extConfig)

JPAModelInstance

public JPAModelInstance(ExtConfig extConfig,
                        Object entity)

JPAModelInstance

public JPAModelInstance(ExtConfig extConfig,
                        Object entity,
                        javax.persistence.EntityManager db)
Method Detail

getData

public Map<String,Object> getData()
Specified by:
getData in interface ORMModelInstance

getId

public Object getId()
Specified by:
getId in interface ORMModelInstance

update

public ORMModelInstance update(Map<String,Object> data)
Specified by:
update in interface ORMModelInstance

delete

public ORMModelInstance delete()
Specified by:
delete in interface ORMModelInstance


Copyright © 2012 Adaptrex, LLC. All Rights Reserved.