Deprecated API


Contents
Deprecated Fields
org.apache.openjpa.persistence.OpenJPAEntityManager.CALLBACK_FAIL_FAST
          use the CallbackMode enum instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.CALLBACK_IGNORE
          use the CallbackMode enum instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.CALLBACK_LOG
          use the CallbackMode enum instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.CALLBACK_RETHROW
          use the CallbackMode enum instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.CALLBACK_ROLLBACK
          use the CallbackMode enum instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.CLEAR_ALL
          use the AutoClearType enum instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.CLEAR_DATASTORE
          use the AutoClearType enum instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.CONN_RETAIN_ALWAYS
          use the ConnectionRetainMode enum instead. 
org.apache.openjpa.persistence.OpenJPAEntityManagerFactory.CONN_RETAIN_ALWAYS
          use ConnectionRetainMode enums instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.CONN_RETAIN_DEMAND
          use the ConnectionRetainMode enum instead. 
org.apache.openjpa.persistence.OpenJPAEntityManagerFactory.CONN_RETAIN_DEMAND
          use ConnectionRetainMode enums instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.CONN_RETAIN_TRANS
          use the ConnectionRetainMode enum instead. 
org.apache.openjpa.persistence.OpenJPAEntityManagerFactory.CONN_RETAIN_TRANS
          use ConnectionRetainMode enums instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.DETACH_ALL
          use the DetachStateType enum instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.DETACH_CLOSE
          use the AutoDetachType enum instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.DETACH_COMMIT
          use the AutoDetachType enum instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.DETACH_FETCH_GROUPS
          use the DetachStateType enum instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.DETACH_FGS
          use the DetachStateType enum instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.DETACH_LOADED
          use the DetachStateType enum instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.DETACH_NONTXREAD
          use the AutoDetachType enum instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.DETACH_ROLLBACK
          use the AutoDetachType enum instead. 
org.apache.openjpa.persistence.OpenJPAPersistence.EM_KEY
          use JPAFacadeHelper instead. This method pierces the published-API boundary, as does the JPAFacadeHelper utilization. 
org.apache.openjpa.persistence.OpenJPAPersistence.EMF_KEY
          use JPAFacadeHelper instead. This method pierces the published-API boundary, as does the JPAFacadeHelper utilization. 
org.apache.openjpa.persistence.OpenJPAQuery.FLUSH_FALSE
          use the FlushModeType enum instead. 
org.apache.openjpa.persistence.OpenJPAQuery.FLUSH_TRUE
          use the FlushModeType enum instead. 
org.apache.openjpa.persistence.OpenJPAQuery.FLUSH_WITH_CONNECTION
          use the FlushModeType enum instead. 
org.apache.openjpa.persistence.OpenJPAQuery.OP_DELETE
          use the QueryOperationType instead. 
org.apache.openjpa.persistence.OpenJPAQuery.OP_SELECT
          use the QueryOperationType instead. 
org.apache.openjpa.persistence.OpenJPAQuery.OP_UPDATE
          use the QueryOperationType instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.RESTORE_ALL
          use the RestoreStateType enum instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.RESTORE_IMMUTABLE
          use the RestoreStateType enum instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.RESTORE_NONE
          use the RestoreStateType enum instead. 
 

Deprecated Methods
org.apache.openjpa.persistence.OpenJPAQuery.addAggregateListener(AggregateListener)
          cast to QueryImpl instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.persistence.OpenJPAQuery.addFilterListener(FilterListener)
          cast to QueryImpl instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.persistence.OpenJPAEntityManager.addLifecycleListener(Object, Class...)
          cast to OpenJPAEntityManagerSPI instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.persistence.OpenJPAEntityManagerFactory.addLifecycleListener(Object, Class...)
          cast to OpenJPAEntityManagerFactorySPI instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.persistence.OpenJPAEntityManager.addTransactionListener(Object)
          cast to OpenJPAEntityManagerSPI instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.persistence.OpenJPAEntityManagerFactory.addTransactionListener(Object)
          cast to OpenJPAEntityManagerFactorySPI instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.persistence.OpenJPAEntityManager.begin()
          use EntityTransaction.begin() instead: em.getTransaction().begin() 
org.apache.openjpa.persistence.OpenJPAEntityManager.commit()
          use EntityTransaction.commit() instead: em.getTransaction().commit() 
org.apache.openjpa.persistence.OpenJPAEntityManager.commitAndResume()
          use OpenJPAEntityTransaction.commitAndResume() instead: em.getTransaction().commitAndResume() 
org.apache.openjpa.persistence.OpenJPAPersistence.fromOpenJPAObjectId(Object)
          use JPAFacadeHelper instead. This method pierces the published-API boundary, as does the JPAFacadeHelper utilization. 
org.apache.openjpa.persistence.OpenJPAPersistence.fromOpenJPAObjectIdClass(Class)
          use JPAFacadeHelper instead. This method pierces the published-API boundary, as does the JPAFacadeHelper utilization. 
org.apache.openjpa.persistence.OpenJPAEntityManager.getConfiguration()
          cast to OpenJPAEntityManagerSPI instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.persistence.OpenJPAEntityManagerFactory.getConfiguration()
          cast to OpenJPAEntityManagerFactorySPI instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.persistence.Extent.getDelegate()
          cast to ExtentImpl instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.persistence.FetchPlan.getDelegate()
          cast to FetchPlanImpl instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.persistence.Generator.getDelegate()
          cast to GeneratorImpl instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.persistence.StoreCache.getDelegate()
          cast to StoreCacheImpl instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.persistence.QueryResultCache.getDelegate()
          cast to QueryResultCacheImpl instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.persistence.OpenJPAEntityManager.getLifecycleListenerCallbackMode()
          cast to OpenJPAEntityManagerSPI instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.persistence.OpenJPAPersistence.getMetaData(EntityManager, Class)
          use JPAFacadeHelper instead. This method pierces the published-API boundary, as does the JPAFacadeHelper utilization. 
org.apache.openjpa.persistence.OpenJPAPersistence.getMetaData(EntityManagerFactory, Class)
          use JPAFacadeHelper instead. This method pierces the published-API boundary, as does the JPAFacadeHelper utilization. 
org.apache.openjpa.persistence.OpenJPAPersistence.getMetaData(Object)
          use JPAFacadeHelper instead. This method pierces the published-API boundary, as does the JPAFacadeHelper utilization. 
org.apache.openjpa.persistence.FetchPlan.getQueryResultCache()
          use FetchPlan.getQueryResultCacheEnabled() instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.getRollbackCause()
          use OpenJPAEntityTransaction.getRollbackCause() instead: em.getTransaction().getRollbackCause() 
org.apache.openjpa.persistence.OpenJPAEntityManager.getRollbackOnly()
          use EntityTransaction.getRollbackOnly() instead: em.getTransaction().getRollbackOnly() 
org.apache.openjpa.persistence.OpenJPAEntityManager.getTransactionListenerCallbackMode()
          cast to OpenJPAEntityManagerSPI instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.persistence.OpenJPAEntityManager.isActive()
          use EntityTransaction.isActive() instead: em.getTransaction().isActive() 
org.apache.openjpa.persistence.OpenJPAEntityManager.isLargeTransaction()
          use OpenJPAEntityManager.isTrackChangesByType() instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.isManaged()
          use OpenJPAEntityManager.isTransactionManaged() instead to interrogate whether or not this EntityManager's transaction is managed. To determine if a given entity instance is managed, use EntityManager.contains(java.lang.Object). 
org.apache.openjpa.persistence.OpenJPAQuery.removeAggregateListener(AggregateListener)
          cast to QueryImpl instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.persistence.OpenJPAQuery.removeFilterListener(FilterListener)
          cast to QueryImpl instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.persistence.OpenJPAEntityManager.removeLifecycleListener(Object)
          cast to OpenJPAEntityManagerSPI instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.persistence.OpenJPAEntityManagerFactory.removeLifecycleListener(Object)
          cast to OpenJPAEntityManagerFactorySPI instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.persistence.OpenJPAEntityManager.removeTransactionListener(Object)
          cast to OpenJPAEntityManagerSPI instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.persistence.OpenJPAEntityManagerFactory.removeTransactionListener(Object)
          cast to OpenJPAEntityManagerFactorySPI instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.persistence.OpenJPAEntityManager.rollback()
          use EntityTransaction.rollback() instead: em.getTransaction().rollback() 
org.apache.openjpa.persistence.OpenJPAEntityManager.rollbackAndResume()
          use OpenJPAEntityTransaction.rollbackAndResume() instead: em.getTransaction().rollbackAndResume() 
org.apache.openjpa.persistence.OpenJPAEntityManager.setAutoClear(int)
          use OpenJPAEntityManager.setAutoClear(AutoClearType) instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.setAutoDetach(int)
          use OpenJPAEntityManager.setAutoDetach(AutoDetachType) or OpenJPAEntityManager.setAutoDetach(java.util.EnumSet) instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.setAutoDetach(int, boolean)
          use OpenJPAEntityManager.setAutoDetach(AutoDetachType, boolean) instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.setDetachState(int)
          use OpenJPAEntityManager.setDetachState(DetachStateType) instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.setLargeTransaction(boolean)
          use OpenJPAEntityManager.setTrackChangesByType(boolean) instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.setLifecycleListenerCallbackMode(int)
          cast to OpenJPAEntityManagerSPI instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.persistence.FetchPlan.setQueryResultCache(boolean)
          use FetchPlan.setQueryResultCacheEnabled(boolean) instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.setRestoreState(int)
          use OpenJPAEntityManager.setRestoreState(RestoreStateType) instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.setRollbackOnly()
          use EntityTransaction.setRollbackOnly() instead: em.getTransaction().setRollbackOnly() 
org.apache.openjpa.persistence.OpenJPAEntityManager.setRollbackOnly(Throwable)
          use OpenJPAEntityTransaction.setRollbackOnly(java.lang.Throwable) instead: em.getTransaction().setRollbackOnly() 
org.apache.openjpa.persistence.OpenJPAEntityManager.setTransactionListenerCallbackMode(int)
          cast to OpenJPAEntityManagerSPI instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.persistence.OpenJPAPersistence.toBroker(EntityManager)
          use JPAFacadeHelper instead. This method pierces the published-API boundary, as does the JPAFacadeHelper utilization. 
org.apache.openjpa.persistence.OpenJPAPersistence.toBrokerFactory(EntityManagerFactory)
          use JPAFacadeHelper instead. This method pierces the published-API boundary, as does the JPAFacadeHelper utilization. 
org.apache.openjpa.persistence.OpenJPAPersistence.toEntityManager(Broker)
          use JPAFacadeHelper instead. This method pierces the published-API boundary, as does the JPAFacadeHelper utilization. 
org.apache.openjpa.persistence.OpenJPAPersistence.toEntityManagerFactory(BrokerFactory)
          use JPAFacadeHelper instead. This method pierces the published-API boundary, as does the JPAFacadeHelper utilization. 
org.apache.openjpa.persistence.OpenJPAPersistence.toOpenJPAObjectId(ClassMetaData, Object)
          use JPAFacadeHelper instead. This method pierces the published-API boundary, as does the JPAFacadeHelper utilization. 
org.apache.openjpa.persistence.OpenJPAPersistence.toOpenJPAObjectIds(ClassMetaData, Collection)
          use JPAFacadeHelper instead. This method pierces the published-API boundary, as does the JPAFacadeHelper utilization. 
org.apache.openjpa.persistence.OpenJPAPersistence.toOpenJPAObjectIds(ClassMetaData, Object...)
          use JPAFacadeHelper instead. This method pierces the published-API boundary, as does the JPAFacadeHelper utilization. 
 

Deprecated Constructors
org.apache.openjpa.persistence.QueryImpl(EntityManagerImpl, Query)
            
 



Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.