Overview | Package | Class | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

## Deprecated API

Contents

- Deprecated Interfaces
- Deprecated Classes
- Deprecated Exceptions
- Deprecated Fields
- Deprecated Methods
- Deprecated Constructors

Deprecated Interfaces
org.apache.cayenne.access.util.DependencySorter In 1.2 replaced with `EntitySorter`
org.apache.cayenne.query.GenericSelectQuery Since 1.2 this interface obsolete. Query parameters are described via `QueryMetadata`.
org.apache.cayenne.access.trans.SelectQueryTranslator Unused since 1.2. This interface is useless for queries with more than one ResultSet, also a reponsibility of creating ResultDescriptors (RowDescriptors in 1.2) is moved to actions.

Deprecated Classes
org.apache.cayenne.gen.AbsFileResourceLoader since 1.2 as `ClassGeneratorResourceLoader` superceeds this class.
org.apache.cayenne.util.AbstractHandler since 1.2 - this is moved to a non-public class in conf package.
org.apache.cayenne.conf.BasicServletConfiguration Since 1.2 ServletUtil is used instead, as the actual file loading strategy is defined at the ResourceLocator elevel, and this class provides no value of its own.
org.apache.cayenne.access.util.BatchQueryUtils since 1.2 - this class is made non-public and moved to the access package.
org.apache.cayenne.exp.BinaryExpression since 1.2
org.apache.cayenne.access.util.ConnectionEventLogger Since 1.2 moved to the access package.
org.apache.cayenne.access.util.ContextCommitObserver Unused since 1.2
org.apache.cayenne.access.util.DataNodeCommitHelper Unused since 1.2.
org.apache.cayenne.access.DefaultResultIterator Since 1.2 replaced by JDBCResultIterator.
org.apache.cayenne.query.InsertQuery since 1.2 Object InsertQuery is not needed anymore. It shouldn't be used directly anyway, but in cases where one might want to have access to it, InsertBatchQuery is a reasonable substitute.
org.apache.cayenne.access.trans.InsertTranslator since 1.2 Object InsertQuery is not needed anymore. It shouldn't be used directly anyway, but in cases where one might want to have access to it, InsertBatchQuery is a reasonable substitute.
org.apache.cayenne.exp.ListExpression since 1.2, replaced by `ASTList`.
org.apache.cayenne.map.MapObject Since 1.2 this class is unused.
org.apache.cayenne.dba.oracle.OracleDataNode Since 1.2 DataNode customization is done entirely via DbAdapter.
org.apache.cayenne.access.util.PrefetchHelper Since 1.2. This class has a number of limitations and keeping it in Cayenne doesn't look like a wise idea.
org.apache.cayenne.access.util.PrimaryKeyHelper since 1.2 replaced with a non-public utility class.
org.apache.cayenne.util.PropertyComparator unused since 1.2. You may want to check PropertyUtils for quick property access methods.
org.apache.cayenne.access.util.QueryUtils In 1.2 Cayenne supports specialized queries such as `ObjectIdQuery` and `RelationshipQuery`, making this class redundant.
org.apache.cayenne.access.util.ResultDescriptor Since 1.2 replaced with RowDescriptor that provides clean and straightforward creation options instead of ResultDescriptor's obscure ways to index Cayenne attributes data.
org.apache.cayenne.access.util.SelectObserver since 1.2 SelectObserver is no longer used in Cayenne internally. Users should switch to QueryResult.
org.apache.cayenne.access.jdbc.SQLSelectStatement Unused since 1.2 as superclass can handle select queries.
org.apache.cayenne.TempObjectId since 1.2 superclass can represent both permanent and temporary id.
org.apache.cayenne.exp.TernaryExpression since 1.2
org.apache.cayenne.exp.UnaryExpression since 1.2
org.apache.cayenne.conf.WebApplicationContextProvider since 1.2. This class is deprecated to reduce confusion due to multiple redundant choices of web application configuration. `WebApplicationContextFilter` is the official configuration choice for Cayenne, however you can still use a custom listener similar to WebApplicationContextProvider if you want to.
org.apache.cayenne.conf.WebApplicationListener since 1.2. This class is deprecated to reduce confusion due to multiple redundant choices of web application configuration. `WebApplicationContextFilter` is the official configuration choice for Cayenne, however you can still use a custom listener similar to WebApplicationListener if you want to.

Deprecated Exceptions
org.apache.cayenne.map.DataMapException since 1.2 unused - CayenneRuntimeException is thrown in cases where this checked exception was used.
org.apache.cayenne.access.DeleteDenyException since 1.2 moved to org.apache.cayenne package.

Deprecated Fields
org.apache.cayenne.exp.Expression.ALL since 1.2
org.apache.cayenne.exp.Expression.ANY since 1.2
org.apache.cayenne.exp.Expression.AVG since 1.2
org.apache.cayenne.exp.Expression.COUNT since 1.2
org.apache.cayenne.access.DataNode.DEFAULT_ADAPTER_CLASS since 1.2 unused.
org.apache.cayenne.access.QueryLogger.DEFAULT_LOG_LEVEL unused since 1.2
org.apache.cayenne.access.util.DefaultOperationObserver.DEFAULT_LOG_LEVEL Unused since 1.2
org.apache.cayenne.access.QueryTranslator.engine Since 1.2 entityResolver property is used.
org.apache.cayenne.exp.Expression.EXISTS since 1.2
org.apache.cayenne.access.Transaction.logLevel since 1.2
org.apache.cayenne.exp.Expression.MAX since 1.2
org.apache.cayenne.exp.Expression.MIN since 1.2
org.apache.cayenne.dba.JdbcPkGenerator.NEXT_ID Since 1.2 unused.
org.apache.cayenne.dba.JdbcPkGenerator.objDesc Since 1.2 unused.
org.apache.cayenne.exp.Expression.POSITIVE since 1.2
org.apache.cayenne.access.jdbc.ColumnDescriptor.primaryKey since 1.2
org.apache.cayenne.conf.DBCPDataSourceFactory.PROPERTY_PREFIX since 2.0 - this information is now private.
org.apache.cayenne.conf.DBCPDataSourceFactory.PS_PROPERTY_PREFIX since 2.0 - this information is now private.
org.apache.cayenne.map.MapLoader.QUERY_RESULT_COLUMN_TAG since 1.2 unused
org.apache.cayenne.exp.Expression.RAW_SQL since 1.2
org.apache.cayenne.query.ProcedureQuery.resultClassName since 1.2 'resultEntityName' must be used.
org.apache.cayenne.dba.JdbcPkGenerator.resultDesc Since 1.2 unused.
org.apache.cayenne.map.QueryBuilder.selecting since 1.2 as "selecting" query property is no longer relevant.
org.apache.cayenne.query.SQLTemplate.selecting Since 1.2 this property is redundant.
org.apache.cayenne.query.ProcedureQuery.selecting since 1.2 as this information is no longer relavant to Cayenne
org.apache.cayenne.dba.db2.DB2PkGenerator.SEQUENCE_PREFIX since 2.0 - other generators do not expose the default prefix.
org.apache.cayenne.exp.Expression.SOME since 1.2
org.apache.cayenne.exp.Expression.SUBQUERY since 1.2
org.apache.cayenne.exp.Expression.SUM since 1.2
org.apache.cayenne.event.EventBridge.VM_ID unused since 1.2
org.apache.cayenne.event.EventBridge.VM_ID_PROPERRTY unused since 1.2

Deprecated Methods
org.apache.cayenne.access.Transaction.addConnection(Connection) since 1.2 use `Transaction.addConnection(String, Connection)`.
org.apache.cayenne.access.ObjectStore.addObject(DataObject) since 1.2 as a different change tracking algorithm is used.
org.apache.cayenne.query.SelectQuery.addPrefetches(Collection) since 1.2
org.apache.cayenne.map.QueryBuilder.addResultColumn(String, String, String) since 1.2 unused.
org.apache.cayenne.access.QueryLogger.appendFormattedByte(StringBuffer, byte) since 1.2 use a namesake method from IDUtil.
org.apache.cayenne.access.trans.BatchQueryBuilder.bindParameters(PreparedStatement, BatchQuery, List) since 1.1 use 'bindParameters' without dbAttributes argument.
org.apache.cayenne.conf.Configuration.bootstrapSharedConfiguration(Class) since 1.2. Use Thread.currentThread().setContextClassLoader() instead.
org.apache.cayenne.gen.ClassGenerator.bootstrapVelocity(Class) since 1.2, as now Cayenne uses thread ClassLoader.
org.apache.cayenne.access.util.BatchQueryUtils.buildSnapshotForInsert(ObjEntity, DataObject, DbRelationship) since 1.2
org.apache.cayenne.access.util.BatchQueryUtils.buildSnapshotForUpdate(DataObject) since 1.2 - unused.
org.apache.cayenne.access.util.BatchQueryUtils.buildSnapshotForUpdate(ObjEntity, DataObject, DbRelationship) since 1.2 - unused.
org.apache.cayenne.gen.ClassGenerator.capitalized(String) Since 1.2 use getClassGenerationInfo().capitalized(String)
org.apache.cayenne.gen.ClassGenerator.capitalizedAsConstant(String) Since 1.2 use getClassGenerationInfo().capitalizedAsConstant(String)
org.apache.cayenne.access.DataContext.commitChanges(Level) Since 1.2, use `DataContext.commitChanges()` instead.
org.apache.cayenne.dba.DbAdapter.createDataNode(String) since 1.2 this method is not used as node behavior customization is done via SQLActionVisitor.
org.apache.cayenne.dba.AutoAdapter.createDataNode(String) since 1.2 this method is deprecated in DbAdapter interface.
org.apache.cayenne.dba.JdbcAdapter.createDataNode(String) since 1.2 this method is not used as node behavior customization is done via SQLActionVisitor.
org.apache.cayenne.event.JMSBridgeFactory.createEventBridge(EventSubject, Map) since 1.2, as we now need to support multiple subjects.
org.apache.cayenne.event.XMPPBridgeFactory.createEventBridge(EventSubject, Map) since 1.2, as we now need to support multiple subjects.
org.apache.cayenne.event.JavaGroupsBridgeFactory.createEventBridge(EventSubject, Map) since 1.2, as we now need to support multiple subjects.
org.apache.cayenne.event.EventBridgeFactory.createEventBridge(EventSubject, Map) since 1.2 EventBridge must support multiple subjects.
org.apache.cayenne.DataRow.createObjectId(Class, DbEntity) since 1.2, as new portable ObjectIds can't store Java Class and store entity name instead. Now this method relies on default CayenneModeler naming convention to figure out entity name from class name. This may not work if the classes where mapped differently.
org.apache.cayenne.access.QueryTranslator.createStatement(Level) since 1.2
org.apache.cayenne.DataRow.createTargetObjectId(Class, DbRelationship) since 1.2, as new portable ObjectIds can't store Java Class and store entity name instead. Now this method relies on default CayenneModeler naming convention to figure out entity name from class name. This may not work if the classes where mapped differently.
org.apache.cayenne.gen.ClassGenerator.formatJavaType(String) use getClassGenerationInfo().formatJavaType(String)
org.apache.cayenne.gen.ClassGenerator.formatVariableName(String) Since 1.2 use getClassGenerationInfo().formatVariableName(String)
org.apache.cayenne.dba.PkGenerator.generatePkForDbEntityString(DbEntity) Since 1.2. This method is not used.
org.apache.cayenne.dba.JdbcPkGenerator.generatePkForDbEntityString(DbEntity) Since 1.2 corresponding interface method is deprecated.
org.apache.cayenne.dba.openbase.OpenBasePkGenerator.generatePkForDbEntityString(DbEntity) Since 1.2 corresponding interface method is unused and deprecated.
org.apache.cayenne.gen.MapClassGenerator.generateSingleClasses(String) Use generateSingleClasses(String classTemplate, String superPrefix) instead.
org.apache.cayenne.gen.ClassGenerator.getCappedProp() Since 1.2 use getClassGenerationInfo().getCappedProp()
org.apache.cayenne.gen.ClassGenerator.getClassName() Since 1.2 use getClassGenerationInfo().getClassName()
org.apache.cayenne.wocompat.parser.SimpleCharStream.getColumn()
org.apache.cayenne.access.trans.SelectTranslator.getColumns() since 1.2 - contents of this list are now ColumnDescriptors, not DbAttributes. Anyway, use getResultColumns() instead to reduce confusion.
org.apache.cayenne.access.QueryTranslator.getCon() Since 1.2 use getConnection().
org.apache.cayenne.access.QueryEngine.getDataMaps() since 1.2. Use 'getEntityResolver().getDataMaps()' instead.
org.apache.cayenne.access.DataContext.getDataMaps() since 1.2. Use 'getEntityResolver().getDataMaps()' instead.
org.apache.cayenne.conf.DBCPDataSourceFactory.getDataSource(String, Level) since 1.2
org.apache.cayenne.conf.DriverDataSourceFactory.getDataSource(String, Level) since 1.2
org.apache.cayenne.conf.JNDIDataSourceFactory.getDataSource(String, Level) since 1.2
org.apache.cayenne.conf.DataSourceFactory.getDataSource(String, Level) since 1.2 use and implement "getDataSource(String)" instead.
org.apache.cayenne.access.QueryTranslator.getEngine() Since 1.2 use "getEntityResolver()"
org.apache.cayenne.gen.ClassGenerator.getEntity() Since 1.2 use getClassGenerationInfo().getEntity()
org.apache.cayenne.map.ProcedureParameter.getEntity() since 1.2 use getProcedure() instead.
org.apache.cayenne.wocompat.EOObjEntity.getHasSuperClass() since 2.0 use isSubclass()
org.apache.cayenne.wocompat.EOObjEntity.getIsAbstractEntity() since 2.0 use isAbstractEntity()
org.apache.cayenne.wocompat.EOObjEntity.getIsClientEntity() since 2.0 use !isServerOnly()
org.apache.cayenne.map.ObjEntity.getJavaClass(ClassLoader) since 1.2 thread ClassLoader is used.
org.apache.cayenne.wocompat.parser.SimpleCharStream.getLine()
org.apache.cayenne.event.EventBridge.getLocalSubject() since 1.2 EventBridge supports multiple local subjects, so use 'getLocalSubjects()' instead. This method returns the first subject from the subject array for backwards compatibility.
org.apache.cayenne.access.OperationHints.getLoggingLevel() Unused since 1.2
org.apache.cayenne.access.DataDomainLegacyQueryAction.getLoggingLevel() since 1.2, as corresponding interface method is deprecated too.
org.apache.cayenne.access.util.DefaultOperationObserver.getLoggingLevel() since 1.2
org.apache.cayenne.conf.Configuration.getLoggingLevel() since 1.2 unused
org.apache.cayenne.access.Transaction.getLogLevel() since 1.2 unused
org.apache.cayenne.conf.RuntimeLoadDelegate.getLogLevel() since 1.2
org.apache.cayenne.query.BatchQuery.getObject(int) Since 1.2 renamed to "getValue()"
org.apache.cayenne.access.ObjectStore.getObject(ObjectId) since 1.2 a GraphManager `ObjectStore.getNode(Object)` method should be used.
org.apache.cayenne.access.ObjectStore.getObjects() since 1.2 use GraphManager method `ObjectStore.registeredNodes()`.
org.apache.cayenne.map.DataMap.getObjEntities(boolean) since 1.2 use getObjEntities().
org.apache.cayenne.gen.ClassGenerator.getPackageName() Since 1.2 use getClassGenerationInfo().getPackageName()
org.apache.cayenne.access.DataContext.getParent() since 1.2. Use 'getParentDataDomain()' or 'getChannel()' instead.
org.apache.cayenne.query.SelectQuery.getPrefetches() since 1.2 use 'getPrefetchTree' to explore prefetches.
org.apache.cayenne.access.DataDomain.getPrimaryKeyHelper() unused since 1.2
org.apache.cayenne.access.trans.ProcedureTranslator.getProcedureResultDescriptor() Since 1.2 is unused. Instead OUTParametersReader is created inside a SQLAction.
org.apache.cayenne.gen.ClassGenerator.getProp() Since 1.2 use getClassGenerationInfo().getProp()
org.apache.cayenne.gen.ClassGenerator.getPropAsConstantName() Since 1.2 use getClassGenerationInfo().getPropAsConstantName()
org.apache.cayenne.dba.DbAdapter.getQueryTranslator(Query) since 1.2 this method is unneeded as customizations are done via custom SQLActions.
org.apache.cayenne.dba.AutoAdapter.getQueryTranslator(Query) since 1.2 this method is deprecated in DbAdapter interface.
org.apache.cayenne.dba.JdbcAdapter.getQueryTranslator(Query) since 1.2 this method is unneeded as customizations are done via custom SQLActions.
org.apache.cayenne.wocompat.EOObjAttribute.getReadOnly() since 2.0 use isReadOnly().
org.apache.cayenne.ObjectId.getReplacementId() Since 1.2 replacement id is built by appending to replacementIdMap.
org.apache.cayenne.conf.Configuration.getResourceLoader() since 1.2 use Thread.currentThread().getContextClassLoader(). This is what Cayenne uses internally.
org.apache.cayenne.query.ProcedureQuery.getResultClass(ClassLoader) since 1.2
org.apache.cayenne.query.ProcedureQuery.getResultClassName() since 1.2 use `ProcedureQuery.getResultEntityName()`
org.apache.cayenne.access.util.SelectObserver.getResultsAsObjects(DataContext, Query) since 1.2. Note that this implementation no longer resolves prefetches properly.
org.apache.cayenne.query.IndirectQuery.getRoot() since 1.2
org.apache.cayenne.query.ObjectIdQuery.getRoot() since 1.2
org.apache.cayenne.query.QueryChain.getRoot() since 1.2
org.apache.cayenne.query.BatchQuery.getRoot() since 1.2 as the corresponding interface method is also deprecated.
org.apache.cayenne.query.Query.getRoot() since 1.2. Query "root" is now accessed via `Query.getMetaData(EntityResolver)`.
org.apache.cayenne.access.DataRowStore.getSnapshot(ObjectId, QueryEngine) since 1.2 unused, as DataRowStore no longer performs queries on its own.
org.apache.cayenne.access.ObjectStore.getSnapshot(ObjectId, QueryEngine) since 1.2. Use `ObjectStore.getSnapshot(ObjectId)` instead.
org.apache.cayenne.access.ToManyList.getSource() since 1.2 use 'getRelationshipOwner()'
org.apache.cayenne.gen.ClassGenerator.getSuperClassName() Since 1.2 use getClassGenerationInfo().getSuperClassName()
org.apache.cayenne.gen.ClassGenerator.getSuperPackageName() Since 1.2 use getClassGenerationInfo().getSuperPackageName()
org.apache.cayenne.gen.ClassGenerator.getSuperPrefix() Since 1.2 use getClassGenerationInfo().getSuperPrefix()
org.apache.cayenne.ObjectId.getValueForAttribute(String) since 1.2. This method is redundant. Use `getIdSnapshot().get(attrName)` instead.
org.apache.cayenne.query.BatchQuery.getValuesForUpdateParameters(boolean) Since 1.2 use BatchQueryBuilder.getParameterValues(), as this allows better control over which attributes are logged.
org.apache.cayenne.map.AshwoodEntitySorter.indexSorter(QueryEngine) since 1.2 - unused.
org.apache.cayenne.access.ToManyList.invalidateObjectList() since 1.2 use `ToManyList.invalidate()`
org.apache.cayenne.gen.ClassGenerator.isContainingListProperties() Since 1.2 use getClassGenerationInfo().isContainingListProperties()
org.apache.cayenne.access.QueryLogger.isLoggable(Level) since 1.2
org.apache.cayenne.access.jdbc.ColumnDescriptor.isPrimaryKey() since 1.2
org.apache.cayenne.access.jdbc.SQLTemplateAction.isRemovingLineBreaks() since 3.0
org.apache.cayenne.query.SQLTemplate.isSelecting() Since 1.2 'selecting' property is redundant.
org.apache.cayenne.query.ProcedureQuery.isSelecting() since 1.2 as this information is no longer relavant to Cayenne
org.apache.cayenne.project.Project.isUpgradeNeeded() since 2.0 use 'getUpgradeStatus'.
org.apache.cayenne.gen.ClassGenerator.isUsingPackage() Since 1.2 use getClassGenerationInfo().isUsingPackage()
org.apache.cayenne.gen.ClassGenerator.isUsingSuperPackage() Since 1.2 use getClassGenerationInfo().isUsingSuperPackage()
org.apache.cayenne.project.ApplicationProject.loadProject(File) since 1.2
org.apache.cayenne.access.DataContext.localObjects(List) since 1.2 - use `DataContext.localObject(ObjectId, Persistent)` to specify how each local object should be handled.
org.apache.cayenne.access.QueryLogger.logBeginTransaction(Level, String) since 1.2
org.apache.cayenne.access.QueryLogger.logCommitTransaction(Level, String) since 1.2
org.apache.cayenne.access.QueryLogger.logConnect(Level, String) since 1.2
org.apache.cayenne.access.QueryLogger.logConnect(Level, String, String, String) since 1.2
org.apache.cayenne.access.QueryLogger.logConnectFailure(Level, Throwable) since 1.2
org.apache.cayenne.access.QueryLogger.logConnectSuccess(Level) since 1.2
org.apache.cayenne.access.QueryLogger.logPoolCreated(Level, DataSourceInfo) since 1.2
org.apache.cayenne.access.QueryLogger.logQuery(Level, String, List) since 1.2
org.apache.cayenne.access.QueryLogger.logQuery(Level, String, List, long) since 1.2
org.apache.cayenne.access.QueryLogger.logQueryError(Level, Throwable) since 1.2
org.apache.cayenne.access.QueryLogger.logQueryParameters(Level, String, List) since 1.2
org.apache.cayenne.access.QueryLogger.logQueryStart(Level, int) since 1.2
org.apache.cayenne.access.QueryLogger.logRollbackTransaction(Level, String) since 1.2
org.apache.cayenne.access.QueryLogger.logSelectCount(Level, int) since 1.2
org.apache.cayenne.access.QueryLogger.logSelectCount(Level, int, long) since 1.2
org.apache.cayenne.access.QueryLogger.logUpdateCount(Level, int) since 1.2
org.apache.cayenne.map.EntityResolver.lookupDataMap(Query) since 1.2 use 'Query.getMetaData(EntityResolver).getDataMap()'.
org.apache.cayenne.access.QueryEngine.lookupDataNode(DataMap) since 1.2 not a part of the interface. Only DataDomain has meaningful implementation.
org.apache.cayenne.access.DataContext.lookupDataNode(DataMap) since 1.2 DataContext's QueryEngine implementation is replaced by DataChannel. Use "getParentDataDomain().lookupDataNode(..)".
org.apache.cayenne.map.EntityResolver.lookupDbEntity(Query) since 1.2 use 'Query.getMetaData(EntityResolver).getDbEntity()'
org.apache.cayenne.map.EntityResolver.lookupObjEntity(Query) since 1.2 use 'Query.getMetaData(EntityResolver).getObjEntity()'.
org.apache.cayenne.map.ObjAttribute.mapsToDependentDbEntity() Since 1.2 unused.
org.apache.cayenne.access.ToManyList.needsFetch() since 1.2 - use 'isFault'
org.apache.cayenne.conf.WebApplicationListener.newConfiguration(ServletContext) since 1.2
org.apache.cayenne.access.ObjectStore.objectRelationshipSet(DataObject, DataObject, ObjRelationship, boolean) since 1.2 use `ObjectStore.recordArcCreated(Persistent, ObjectId, String)`.
org.apache.cayenne.access.ObjectStore.objectRelationshipUnset(DataObject, DataObject, ObjRelationship, boolean) since 1.2 use `ObjectStore.recordArcDeleted(Persistent, ObjectId, String)`.
org.apache.cayenne.access.ObjectStore.objectsCommitted() since 1.2 unused.
org.apache.cayenne.event.EventBridge.onLocalEvent(CayenneEvent) Unused since 1.2, as event dispatch is done via internal listeners.
org.apache.cayenne.access.DataContext.performQueries(Collection, OperationObserver) since 1.2 DataContext's QueryEngine implementation is replaced by DataChannel.
org.apache.cayenne.access.DataNode.performQueries(Collection, OperationObserver, Transaction) since 1.2 as the corresponding interface method is deprecated.
org.apache.cayenne.access.DataDomain.performQueries(Collection, OperationObserver, Transaction) since 1.2, as the corresponding interface method is deprecated.
org.apache.cayenne.access.QueryEngine.performQueries(Collection, OperationObserver, Transaction) since 1.2 as thread-bound transactions are used.
org.apache.cayenne.access.DataContext.performQueries(Collection, OperationObserver, Transaction) since 1.2. Use Transaction.bindThreadTransaction(..) to provide custom transactions, besides DataContext's QueryEngine implementation is replaced by DataChannel.
org.apache.cayenne.access.Transaction.performQueries(QueryEngine, Collection, OperationObserver) since 1.2 this method is not used in Cayenne and is deprecated. Thread-bound transactions should be used instead.
org.apache.cayenne.access.DataContext.prefetchRelationships(SelectQuery, List) Since 1.2. This is a utility method that handles a very specific case. It shouldn't be in DataContext.
org.apache.cayenne.access.DataRowStore.processSnapshotChanges(Object, Map, Collection, Collection)
org.apache.cayenne.dba.JdbcAdapter.queryTranslatorClass(Query) since 1.2 this method is unneeded as customizations are done via custom SQLActions.
org.apache.cayenne.dba.oracle.OracleAdapter.queryTranslatorClass(Query) Since 1.2 this is done via custom SQLActions.
org.apache.cayenne.access.DataNode.readResultSet(ResultSet, ResultDescriptor, GenericSelectQuery, OperationObserver) Since 1.2 this logic is moved to SQLAction.
org.apache.cayenne.access.DataNode.readStoredProcedureOutParameters(CallableStatement, ResultDescriptor, Query, OperationObserver) Since 1.2 this logic is moved to SQLAction.
org.apache.cayenne.access.DataContext.registeredObject(ObjectId) since 1.2 use 'localObject(id, null)'
org.apache.cayenne.CayenneDataObject.resolveFault() since 1.2 use 'getObjectContext().prepareForAccess(object)'
org.apache.cayenne.DataObject.resolveFault() since 1.2 use 'getObjectContext().prepareForAccess(object)'
org.apache.cayenne.access.DataNode.runBatchUpdate(Connection, BatchQuery, OperationObserver) since 1.2
org.apache.cayenne.access.DataNode.runBatchUpdateAsBatch(Connection, BatchQuery, BatchQueryBuilder, OperationObserver) since 1.2 SQLActions are used.
org.apache.cayenne.access.DataNode.runBatchUpdateAsIndividualQueries(Connection, BatchQuery, BatchQueryBuilder, OperationObserver) since 1.2 SQLActions are used.
org.apache.cayenne.access.DataNode.runSelect(Connection, Query, OperationObserver) since 1.2
org.apache.cayenne.access.DataNode.runStoredProcedure(Connection, Query, OperationObserver) since 1.2
org.apache.cayenne.access.DataNode.runUpdate(Connection, Query, OperationObserver) since 1.2
org.apache.cayenne.gen.ClassGenerator.setClassName(String) Since 1.2 use getClassGenerationInfo().setClassName()
org.apache.cayenne.access.QueryTranslator.setCon(Connection) since 1.2 use setConnection().
org.apache.cayenne.access.QueryTranslator.setEngine(QueryEngine) Since 1.2 use "setEntityResolver()"
org.apache.cayenne.wocompat.EOObjEntity.setHasSuperClass(boolean) since 2.0 use setSubclass()
org.apache.cayenne.ObjectId.setIdKeys(Map) since 1.2
org.apache.cayenne.wocompat.EOObjEntity.setIsAbstractEntity(boolean) since 2.0 use setAbstractEntity()
org.apache.cayenne.wocompat.EOObjEntity.setIsClientEntity(boolean) since 2.0 use setServerOnly()
org.apache.cayenne.access.util.DefaultOperationObserver.setLoggingLevel(Level) since 1.2
org.apache.cayenne.conf.Configuration.setLoggingLevel(Level) since 1.2 unused.
org.apache.cayenne.access.Transaction.setLogLevel(Level) since 1.2 unused
org.apache.cayenne.conf.RuntimeLoadDelegate.setLogLevel(Level) since 1.2
org.apache.cayenne.query.Query.setName(String) since 1.2
org.apache.cayenne.gen.ClassGenerator.setPackageName(String) Since 1.2 use getClassGenerationInfo().setPackageName()
org.apache.cayenne.access.DataContext.setParent(QueryEngine) since 1.2, use setChannel instead.
org.apache.cayenne.access.jdbc.ColumnDescriptor.setPrimaryKey(boolean) since 1.2
org.apache.cayenne.gen.ClassGenerator.setProp(String) Since 1.2 use getClassGenerationInfo().setProp(String)
org.apache.cayenne.access.jdbc.SQLTemplateAction.setRemovingLineBreaks(boolean) since 3.0 - does nothing
org.apache.cayenne.ObjectId.setReplacementId(ObjectId) Since 1.2 replacement id is built by appending to replacementIdMap.
org.apache.cayenne.query.ProcedureQuery.setResultClassName(String) since 1.2 use `ProcedureQuery.setResultEntityName(String)`
org.apache.cayenne.map.QueryBuilder.setResultType(String) since 1.2
org.apache.cayenne.query.IndirectQuery.setRoot(Object) since 1.2
org.apache.cayenne.query.QueryChain.setRoot(Object) since 1.2
org.apache.cayenne.query.BatchQuery.setRoot(Object) since 1.2
org.apache.cayenne.query.Query.setRoot(Object) since 1.2. Query "root" is now accessed via `Query.getMetaData(EntityResolver)`.
org.apache.cayenne.query.SQLTemplate.setSelecting(boolean) Since 1.2 'selecting' property is redundant.
org.apache.cayenne.query.ProcedureQuery.setSelecting(boolean) since 1.2 as this information is no longer relavant to Cayenne
org.apache.cayenne.map.QueryBuilder.setSelecting(String) since 1.2 as "selecting" query property is no longer relevant.
org.apache.cayenne.gen.ClassGenerator.setSuperClassName(String) Since 1.2 use getClassGenerationInfo().setSuperClassName()
org.apache.cayenne.gen.ClassGenerator.setSuperPackageName(String) Since 1.2 use getClassGenerationInfo().setSuperPackageName()
org.apache.cayenne.gen.ClassGenerator.setSuperPrefix(String) Since 1.2 use getClassGenerationInfo().setSuperPrefix()
org.apache.cayenne.gen.DefaultClassGenerator.setSuperTemplate(File) since 1.2 use `DefaultClassGenerator.setSuperTemplate(String)` as custom template can also be looked up in CLASSPATH.
org.apache.cayenne.gen.DefaultClassGenerator.setTemplate(File) since 1.2 use `DefaultClassGenerator.setTemplate(String)` as custom template can also be looked up in CLASSPATH.
org.apache.cayenne.dba.DbAdapter.shouldRunBatchQuery(DataNode, Connection, BatchQuery, OperationObserver) Since 1.2 this method is obsolete and is ignored across Cayenne.
org.apache.cayenne.dba.AutoAdapter.shouldRunBatchQuery(DataNode, Connection, BatchQuery, OperationObserver) since 1.2 this method is deprecated in DbAdapter interface.
org.apache.cayenne.dba.JdbcAdapter.shouldRunBatchQuery(DataNode, Connection, BatchQuery, OperationObserver) Since 1.2 this method is obsolete and is ignored across Cayenne.
org.apache.cayenne.dba.oracle.OracleAdapter.shouldRunBatchQuery(DataNode, Connection, BatchQuery, OperationObserver) Since 1.2
org.apache.cayenne.util.Util.sqlPatternToRegex(String, boolean) since 1.2 use "sqlPatternToPattern".
org.apache.cayenne.util.NameConverter.undescoredToJava(String, boolean) since 1.2 replaced with `NameConverter.underscoredToJava(String, boolean)`, fixing the naming typo.
org.apache.cayenne.access.util.BatchQueryUtils.updatesLOBColumns(BatchQuery) since 1.2
org.apache.cayenne.map.ObjAttribute.validate() Since 1.2 unused.
org.apache.cayenne.project.validator.SQLTemplateValidator.validateResultType(SQLTemplate, ProjectPath, Validator) unused since 1.2
org.apache.cayenne.access.ObjectStore.validateUncommittedObjects() since 1.2 - This method is no longer used in Cayenne internally.
org.apache.cayenne.access.DataContextDelegate.willPerformSelect(DataContext, GenericSelectQuery) since 1.2 implement either `DataContextDelegate.willPerformQuery(DataContext, Query)` or `DataContextDelegate.willPerformGenericQuery(DataContext, Query)`.

Deprecated Constructors
org.apache.cayenne.gen.ClassGenerator(String) Since 1.2 use ClassGenerator(String template, String versionString) instead.
org.apache.cayenne.access.jdbc.ColumnDescriptor(ObjAttribute, DbAttribute) since 1.2 use constructor with column alias parameter.
org.apache.cayenne.access.DataContext(QueryEngine, ObjectStore) since 1.2 - use `DataContext.DataContext(DataChannel, ObjectStore)` constructor instead. Note that DataDomain is both a DataChannel and a QueryEngine, so you may need to do a cast: `new DataContext((DataChannel) domain, objectStore)`.
org.apache.cayenne.gen.DefaultClassGenerator(List) Use DefaultClassGenerator(DataMap, List) to provide support for v1.2 templates.
org.apache.cayenne.gen.MapClassGenerator(List) Since 1.2 use MapClassGenerator(DataMap, List) to provide support for v1.2 templates.
org.apache.cayenne.ObjectId(Class) since 1.2, as new portable ObjectIds can't store Java Class and store entity name instead. This constructor relies on default CayenneModeler naming convention to figure out entity name from class name. This may not work if the classes where mapped differently.
org.apache.cayenne.ObjectId(Class, Map) since 1.2, as new portable ObjectIds can't store Java Class and store entity name instead. This constructor relies on default CayenneModeler naming convention to figure out entity name from class name. This may not work if the classes where mapped differently.
org.apache.cayenne.ObjectId(Class, String, int) since 1.2, as new portable ObjectIds can't store Java Class and store entity name instead. This constructor relies on default CayenneModeler naming convention to figure out entity name from class name. This may not work if the classes where mapped differently.
org.apache.cayenne.ObjectId(Class, String, Object) since 1.2, as new portable ObjectIds can't store Java Class and store entity name instead. This constructor relies on default CayenneModeler naming convention to figure out entity name from class name. This may not work if the classes where mapped differently.
org.apache.cayenne.query.PrefetchSelectQuery(EntityResolver, SelectQuery, String) since 1.2 - passing EntityResolver in constructor is no longer needed, as prefetch query configuration alogrithm is moved out of this class. In fact this constructor will not correctly configure query to handle flattened prefetches.
org.apache.cayenne.conf.RuntimeLoadDelegate(Configuration, ConfigStatus, Level) since 1.2
org.apache.cayenne.access.util.SelectObserver(Level) since 1.2
org.apache.cayenne.access.event.SnapshotEvent(Object, Object, Map, Collection, Collection) since 1.2
org.apache.cayenne.query.SQLTemplate(boolean) Since 1.2 'selecting' property is redundant.
org.apache.cayenne.query.SQLTemplate(Class, String, boolean) Since 1.2 'selecting' property is redundant.
org.apache.cayenne.query.SQLTemplate(DataMap, String, boolean) Since 1.2 'selecting' property is redundant.
org.apache.cayenne.query.SQLTemplate(DbEntity, String, boolean) Since 1.2 'selecting' property is redundant.
org.apache.cayenne.query.SQLTemplate(ObjEntity, String, boolean) Since 1.2 'selecting' property is redundant.
org.apache.cayenne.query.SQLTemplate(String, String, boolean) Since 1.2 'selecting' property is redundant.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

Copyright © 2001-2006 Apache.org All Rights Reserved.