Deprecated API


Contents
Deprecated Classes
org.apache.openjpa.jdbc.kernel.exps.JDBCStringContains
          Use matches() instead. 
org.apache.openjpa.jdbc.kernel.exps.JDBCWildcardMatch
          Use matches() instead. 
org.apache.openjpa.jdbc.kernel.exps.SQLExpression
          Use SQLEmbed directly 
org.apache.openjpa.jdbc.kernel.exps.SQLValue
          Use SQLEmbed directly 
org.apache.openjpa.kernel.exps.StringContains
          Use matches() instead. 
org.apache.openjpa.kernel.exps.WildcardMatch
          Use matches() instead. 
 

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.OpenJPAEntityManagerFactory.CONN_RETAIN_ALWAYS
          use ConnectionRetainMode enums instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.CONN_RETAIN_ALWAYS
          use the ConnectionRetainMode enum instead. 
org.apache.openjpa.persistence.OpenJPAEntityManagerFactory.CONN_RETAIN_DEMAND
          use ConnectionRetainMode enums instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.CONN_RETAIN_DEMAND
          use the ConnectionRetainMode enum instead. 
org.apache.openjpa.persistence.OpenJPAEntityManagerFactory.CONN_RETAIN_TRANS
          use ConnectionRetainMode enums instead. 
org.apache.openjpa.persistence.OpenJPAEntityManager.CONN_RETAIN_TRANS
          use the ConnectionRetainMode enum 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.kernel.DetachState.DETACH_FGS
            
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.jdbc.JDBCFetchPlan.EAGER_JOIN
          use the FetchMode enum instead. 
org.apache.openjpa.persistence.jdbc.JDBCFetchPlan.EAGER_NONE
          use the FetchMode enum instead. 
org.apache.openjpa.persistence.jdbc.JDBCFetchPlan.EAGER_PARALLEL
          use the FetchMode 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. 
org.apache.openjpa.persistence.jdbc.JDBCFetchPlan.SIZE_LAST
          use the LRSSizeAlgorithm enum instead. 
org.apache.openjpa.persistence.jdbc.JDBCFetchPlan.SIZE_QUERY
          use the LRSSizeAlgorithm enum instead. 
org.apache.openjpa.persistence.jdbc.JDBCFetchPlan.SIZE_UNKNOWN
          use the LRSSizeAlgorithm enum instead. 
org.apache.openjpa.persistence.jdbc.JDBCFetchPlan.SYNTAX_DATABASE
          use the JoinSyntax enum instead. 
org.apache.openjpa.persistence.jdbc.JDBCFetchPlan.SYNTAX_SQL92
          use the JoinSyntax enum instead. 
org.apache.openjpa.persistence.jdbc.JDBCFetchPlan.SYNTAX_TRADITIONAL
          use the JoinSyntax 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.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.addLifecycleListener(Object, Class...)
          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.addTransactionListener(Object)
          cast to OpenJPAEntityManagerSPI 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.OpenJPAEntityManagerFactory.getConfiguration()
          cast to OpenJPAEntityManagerFactorySPI instead. This method pierces the published-API boundary, as does the SPI cast. 
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.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.Generator.getDelegate()
          cast to GeneratorImpl 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.Extent.getDelegate()
          cast to ExtentImpl instead. This method pierces the published-API boundary, as does the SPI cast. 
org.apache.openjpa.meta.FieldMetaData.getFullName()
          Use getFullName(boolean) instead. 
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.jdbc.JDBCFetchPlan.getLRSSize()
          use JDBCFetchPlan.getLRSSizeAlgorithm() instead. 
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.OpenJPAEntityManagerFactory.removeLifecycleListener(Object)
          cast to OpenJPAEntityManagerFactorySPI 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.removeTransactionListener(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.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.jdbc.JDBCFetchPlan.setEagerFetchMode(int)
          use JDBCFetchPlan.setEagerFetchMode(FetchMode) instead. 
org.apache.openjpa.persistence.jdbc.JDBCFetchPlan.setFetchDirection(int)
          use JDBCFetchPlan.setFetchDirection(FetchDirection) instead. 
org.apache.openjpa.jdbc.schema.FileSchemaFactory.setFileName(String)
          Use FileSchemaFactory.setFile(java.lang.String). Retained for backwards-compatible auto-configuration. 
org.apache.openjpa.jdbc.kernel.NativeJDBCSeq.setFormat(String)
          Retained for backwards-compatibility for auto-configuration. 
org.apache.openjpa.jdbc.kernel.ClassTableJDBCSeq.setIgnoreVirtual(boolean)
          Use ClassTableJDBCSeq.setIgnoreUnmapped(boolean). Retained for backwards-compatibility for auto-configuration. 
org.apache.openjpa.jdbc.kernel.TableJDBCSeq.setIncrement(int)
          Use TableJDBCSeq.setAllocate(int). Retained for backwards compatibility of auto-configuration. 
org.apache.openjpa.persistence.jdbc.JDBCFetchPlan.setJoinSyntax(int)
          use JDBCFetchPlan.setJoinSyntax(JoinSyntax) 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.jdbc.JDBCFetchPlan.setLRSSize(int)
          use JDBCFetchPlan.setLRSSizeAlgorithm(LRSSizeAlgorithm) instead. 
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.jdbc.JDBCFetchPlan.setResultSetType(int)
          use JDBCFetchPlan.setResultSetType(ResultSetType) 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.jdbc.kernel.NativeJDBCSeq.setSequenceName(String)
          Use NativeJDBCSeq.setSequence(java.lang.String). Retained for backwards-compatibility for auto-configuration. 
org.apache.openjpa.persistence.jdbc.JDBCFetchPlan.setSubclassFetchMode(int)
          use JDBCFetchPlan.setSubclassFetchMode(FetchMode) instead. 
org.apache.openjpa.jdbc.kernel.TableJDBCSeq.setTableName(String)
          Use TableJDBCSeq.setTable(java.lang.String). Retained for backwards-compatibility with auto-configuration. 
org.apache.openjpa.jdbc.kernel.NativeJDBCSeq.setTableName(String)
          Retained for backwards-compatibility for auto-configuration. 
org.apache.openjpa.jdbc.schema.TableSchemaFactory.setTableName(String)
          Use TableSchemaFactory.setTable(java.lang.String). Retained for backwards-compatible auto-configuration. 
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.util.CacheMap(boolean, int, int, float)
          use CacheMap.CacheMap(boolean, int, int, float, int) instead. 
org.apache.openjpa.conf.MetaDataCacheMaintenance(BrokerFactory, boolean, boolean)
          logging is routed to the logging system now. 
org.apache.openjpa.enhance.PCEnhancer(OpenJPAConfiguration, BCClass, MetaDataRepository)
          use PCEnhancer.PCEnhancer(OpenJPAConfiguration, BCClass, MetaDataRepository, ClassLoader) instead. 
 



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