org.springframework.orm.jpa.persistenceunit
Class Jpa2PersistenceUnitInfoDecorator
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Jpa2PersistenceUnitInfoDecorator
public Jpa2PersistenceUnitInfoDecorator(javax.persistence.spi.PersistenceUnitInfo target)
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.