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.objectstyle.cayenne.access.util.DependencySorter In 1.2 replaced with `EntitySorter`
org.objectstyle.cayenne.query.GenericSelectQuery Since 1.2 this interface obsolete. Query parameters are described via `QueryMetadata`.
org.objectstyle.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.objectstyle.cayenne.gen.AbsFileResourceLoader since 1.2 as `ClassGeneratorResourceLoader` superceeds this class.
org.objectstyle.cayenne.util.AbstractHandler since 1.2 - this is moved to a non-public class in conf package.
org.objectstyle.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.objectstyle.cayenne.access.util.BatchQueryUtils since 1.2 - this class is made non-public and moved to the access package.
org.objectstyle.cayenne.exp.BinaryExpression since 1.2
org.objectstyle.cayenne.access.util.ConnectionEventLogger Since 1.2 moved to the access package.
org.objectstyle.cayenne.access.util.ContextCommitObserver Unused since 1.2
org.objectstyle.cayenne.access.util.DataNodeCommitHelper Unused since 1.2.
org.objectstyle.cayenne.access.DefaultResultIterator Since 1.2 replaced by JDBCResultIterator.
org.objectstyle.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.objectstyle.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.objectstyle.cayenne.exp.ListExpression since 1.2, replaced by `ASTList`.
org.objectstyle.cayenne.map.MapObject Since 1.2 this class is unused.
org.objectstyle.cayenne.dba.oracle.OracleDataNode Since 1.2 DataNode customization is done entirely via DbAdapter.
org.objectstyle.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.objectstyle.cayenne.access.util.PrimaryKeyHelper since 1.2 replaced with a non-public utility class.
org.objectstyle.cayenne.util.PropertyComparator unused since 1.2. You may want to check PropertyUtils for quick property access methods.
org.objectstyle.cayenne.access.util.QueryUtils In 1.2 Cayenne supports specialized queries such as `ObjectIdQuery` and `RelationshipQuery`, making this class redundant.
org.objectstyle.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.objectstyle.cayenne.access.util.SelectObserver since 1.2 SelectObserver is no longer used in Cayenne internally. Users should switch to QueryResult.
org.objectstyle.cayenne.access.jdbc.SQLSelectStatement Unused since 1.2 as superclass can handle select queries.
org.objectstyle.cayenne.TempObjectId since 1.2 superclass can represent both permanent and temporary id.
org.objectstyle.cayenne.exp.TernaryExpression since 1.2
org.objectstyle.cayenne.exp.UnaryExpression since 1.2
org.objectstyle.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.objectstyle.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.objectstyle.cayenne.map.DataMapException since 1.2 unused - CayenneRuntimeException is thrown in cases where this checked exception was used.
org.objectstyle.cayenne.access.DeleteDenyException since 1.2 moved to org.objectstyle.cayenne package.

Deprecated Fields
org.objectstyle.cayenne.exp.Expression.ALL since 1.2
org.objectstyle.cayenne.exp.Expression.ANY since 1.2
org.objectstyle.cayenne.exp.Expression.AVG since 1.2
org.objectstyle.cayenne.exp.Expression.COUNT since 1.2
org.objectstyle.cayenne.access.DataNode.DEFAULT_ADAPTER_CLASS since 1.2 unused.
org.objectstyle.cayenne.access.QueryLogger.DEFAULT_LOG_LEVEL unused since 1.2
org.objectstyle.cayenne.access.util.DefaultOperationObserver.DEFAULT_LOG_LEVEL Unused since 1.2
org.objectstyle.cayenne.access.QueryTranslator.engine Since 1.2 entityResolver property is used.
org.objectstyle.cayenne.exp.Expression.EXISTS since 1.2
org.objectstyle.cayenne.access.Transaction.logLevel since 1.2
org.objectstyle.cayenne.exp.Expression.MAX since 1.2
org.objectstyle.cayenne.exp.Expression.MIN since 1.2
org.objectstyle.cayenne.dba.JdbcPkGenerator.NEXT_ID Since 1.2 unused.
org.objectstyle.cayenne.dba.JdbcPkGenerator.objDesc Since 1.2 unused.
org.objectstyle.cayenne.exp.Expression.POSITIVE since 1.2
org.objectstyle.cayenne.access.jdbc.ColumnDescriptor.primaryKey since 1.2
org.objectstyle.cayenne.map.MapLoader.QUERY_RESULT_COLUMN_TAG since 1.2 unused
org.objectstyle.cayenne.exp.Expression.RAW_SQL since 1.2
org.objectstyle.cayenne.query.ProcedureQuery.resultClassName since 1.2 'resultEntityName' must be used.
org.objectstyle.cayenne.dba.JdbcPkGenerator.resultDesc Since 1.2 unused.
org.objectstyle.cayenne.map.QueryBuilder.selecting since 1.2 as "selecting" query property is no longer relevant.
org.objectstyle.cayenne.query.SQLTemplate.selecting Since 1.2 this property is redundant.
org.objectstyle.cayenne.query.ProcedureQuery.selecting since 1.2 as this information is no longer relavant to Cayenne
org.objectstyle.cayenne.exp.Expression.SOME since 1.2
org.objectstyle.cayenne.exp.Expression.SUBQUERY since 1.2
org.objectstyle.cayenne.exp.Expression.SUM since 1.2
org.objectstyle.cayenne.event.EventBridge.VM_ID unused since 1.2
org.objectstyle.cayenne.event.EventBridge.VM_ID_PROPERRTY unused since 1.2

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

Deprecated Constructors
org.objectstyle.cayenne.gen.ClassGenerator(String) Since 1.2 use ClassGenerator(String template, String versionString) instead.
org.objectstyle.cayenne.access.jdbc.ColumnDescriptor(ObjAttribute, DbAttribute) since 1.2 use constructor with column alias parameter.
org.objectstyle.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.objectstyle.cayenne.gen.DefaultClassGenerator(List) Use DefaultClassGenerator(DataMap, List) to provide support for v1.2 templates.
org.objectstyle.cayenne.gen.MapClassGenerator(List) Since 1.2 use MapClassGenerator(DataMap, List) to provide support for v1.2 templates.
org.objectstyle.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.objectstyle.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.objectstyle.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.objectstyle.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.objectstyle.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.objectstyle.cayenne.conf.RuntimeLoadDelegate(Configuration, ConfigStatus, Level) since 1.2
org.objectstyle.cayenne.access.util.SelectObserver(Level) since 1.2
org.objectstyle.cayenne.access.event.SnapshotEvent(Object, Object, Map, Collection, Collection) since 1.2
org.objectstyle.cayenne.query.SQLTemplate(boolean) Since 1.2 'selecting' property is redundant.
org.objectstyle.cayenne.query.SQLTemplate(Class, String, boolean) Since 1.2 'selecting' property is redundant.
org.objectstyle.cayenne.query.SQLTemplate(DataMap, String, boolean) Since 1.2 'selecting' property is redundant.
org.objectstyle.cayenne.query.SQLTemplate(DbEntity, String, boolean) Since 1.2 'selecting' property is redundant.
org.objectstyle.cayenne.query.SQLTemplate(ObjEntity, String, boolean) Since 1.2 'selecting' property is redundant.
org.objectstyle.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 ObjectStyle.org All Rights Reserved.