org.springframework.orm.jpa.persistenceunit
Class Jpa2PersistenceUnitInfoDecorator

java.lang.Object
  extended by org.springframework.orm.jpa.persistenceunit.Jpa2PersistenceUnitInfoDecorator
All Implemented Interfaces:
InvocationHandler

public class Jpa2PersistenceUnitInfoDecorator
extends Object
implements InvocationHandler

Decorator that exposes a JPA 2.0 compliant PersistenceUnitInfo interface for a JPA 1.0 based SpringPersistenceUnitInfo object, adapting the getSharedCacheMode and getValidationMode methods from String names to enum return values.


Constructor Summary
Jpa2PersistenceUnitInfoDecorator(javax.persistence.spi.PersistenceUnitInfo target)
           
 
Method Summary
 javax.persistence.spi.PersistenceUnitInfo getTarget()
           
 Object invoke(Object proxy, Method method, Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jpa2PersistenceUnitInfoDecorator

public Jpa2PersistenceUnitInfoDecorator(javax.persistence.spi.PersistenceUnitInfo target)
Method Detail

getTarget

public final javax.persistence.spi.PersistenceUnitInfo getTarget()

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2012. All Rights Reserved.