org.springframework.orm.jpa.persistenceunit
Class Jpa2PersistenceUnitInfoDecorator
java.lang.Object
org.springframework.orm.jpa.persistenceunit.Jpa2PersistenceUnitInfoDecorator
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler
public class Jpa2PersistenceUnitInfoDecorator
- extends java.lang.Object
- implements java.lang.reflect.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.
|
Method Summary |
javax.persistence.spi.PersistenceUnitInfo |
getTarget()
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
| 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 java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- Specified by:
invoke in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
Copyright © 2012. All Rights Reserved.