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

## Deprecated API

Contents

- Deprecated Interfaces
- Deprecated Classes
- Deprecated Methods
- Deprecated Constructors

Deprecated Interfaces
org.apache.cayenne.dba.DbAdapterFactory since 3.1 in favor of `DbAdapterFactory` configured via dependency injection.
org.apache.cayenne.conf.ResourceFinder since 3.1 deprecated in favor of injectable org.apache.cayenne.resource.ResourceLocator.

Deprecated Classes
org.apache.cayenne.map.AshwoodEntitySorter since 3.1 moved to "org.apache.cayenne.ashwood" package.
org.apache.cayenne.DataObjectUtils since 3.1 `Cayenne` class is used instead
org.apache.cayenne.remote.hessian.service.HessianServlet since 3.1 use `ROPHessianServlet`.
org.apache.cayenne.access.QueryLogger since 3.1 replaced by injectable `JdbcEventLogger`.
org.apache.cayenne.util.ResourceLocator since 3.1 deprecated in favor of injectable org.apache.cayenne.resource.ResourceLocator.
org.apache.cayenne.conf.WebApplicationContextFilter since 3.0 `CayenneFilter` should be used.
org.apache.cayenne.util.ZipUtil since 3.1. This class is unused and will be removed in the future versions..

Deprecated Methods
org.apache.cayenne.dba.AutoAdapter.addFactory(DbAdapterFactory) since 3.1 in favor of `DbAdapterFactory` configured via dependency injection.
org.apache.cayenne.access.DataDomain.addMap(DataMap) since 3.1 use a more consistently named `DataDomain.addDataMap(DataMap)`.
org.apache.cayenne.util.Util.copy(File, File) since 3.1 this method is not used by Cayenne
org.apache.cayenne.util.Util.copy(URL, File) since 3.1 this method is not used by Cayenne.
org.apache.cayenne.util.Util.copyPipe(InputStream, OutputStream, int) since 3.1 this method is unused by Cayenne.
org.apache.cayenne.access.DataDomain.createDataContext() since 3.1 as context creation is done via `ObjectContextFactory` and injection.
org.apache.cayenne.access.DataDomain.createDataContext(boolean) since 3.1 as context creation is done via `ObjectContextFactory` and injection.
org.apache.cayenne.dba.AutoAdapter.createDefaultFactory() since 3.1 in favor of `DbAdapterFactory` configured via dependency injection.
org.apache.cayenne.map.MapLoader.createResourceFinder() since 3.1 as MapLoader should not bother itself with looking up resources.
org.apache.cayenne.util.Util.delete(String, boolean) since 3.1 this method is unused by Cayenne.
org.apache.cayenne.map.DataMap.encodeAsXML(PrintWriter) since 3.1, as `XMLSerializable` objects should only save XML segments. Saving full XML files is responsibilty of the callers.
org.apache.cayenne.ejbql.parser.JavaCharStream.getColumn()
org.apache.cayenne.exp.parser.JavaCharStream.getColumn()
org.apache.cayenne.dba.AutoAdapter.getDefaultFactory() since 3.1 in favor of `DbAdapterFactory` configured via dependency injection.
org.apache.cayenne.access.jdbc.ColumnDescriptor.getDefaultJavaClass(int, int) use TypesMapping.getJavaBySqlType(int type) instead
org.apache.cayenne.dba.TypesMapping.getJavaBySqlType(int, int, int) since 3.0. use getJavaBySqlType(int) instead. Not usable since "0" can mean "undefined", not really zero.
org.apache.cayenne.ejbql.parser.JavaCharStream.getLine()
org.apache.cayenne.exp.parser.JavaCharStream.getLine()
org.apache.cayenne.access.DataDomain.getMap(String) since 3.1 use a more consistently named `DataDomain.getDataMap(String)`.
org.apache.cayenne.PersistentObject.getObjEntity() since 3.1 `Cayenne.getObjEntity(Persistent)` is used
org.apache.cayenne.map.MapLoader.loadDataMap(String) since 3.1 `MapLoader.loadDataMap(InputSource)` should be used.
org.apache.cayenne.map.EntityResolver.lookupInheritanceTree(ObjEntity) since 3.1 use `EntityResolver.lookupInheritanceTree(String)`.
org.apache.cayenne.access.DataContext.objectFromDataRow(Class, DataRow, boolean) Use objectFromDataRow(Class objectClass, DataRow dataRow) instead.
org.apache.cayenne.access.DataContext.objectFromDataRow(String, DataRow, boolean) Use objectFromDataRow(String entityName, DataRow dataRow) instead.
org.apache.cayenne.access.DataDomain.removeMap(String) since 3.1 use a more consistently named `DataDomain.removeDataMap(String)`.
org.apache.cayenne.util.Util.stripLineBreaks(String, String) since 3.1 in favor of `Util.stripLineBreaks(String, char)`.

Deprecated Constructors
org.apache.cayenne.ashwood.AshwoodEntitySorter(Collection) since 3.1. Use `AshwoodEntitySorter.AshwoodEntitySorter()` constructor together with `AshwoodEntitySorter.setDataMaps(Collection)` instead.
org.apache.cayenne.dba.AutoAdapter(DataSource) since 3.1 as `DbAdapterFactory` parameter is required.
org.apache.cayenne.dba.AutoAdapter(DbAdapterFactory, DataSource) since 3.1 in favor of `DbAdapterFactory` configured via dependency injection.
org.apache.cayenne.remote.ClientChannel(ClientConnection) since 3.1 use `ClientChannel.ClientChannel(ClientConnection, boolean, EventManager, boolean)`
org.apache.cayenne.remote.ClientChannel(ClientConnection, boolean) since 3.1 use `ClientChannel.ClientChannel(ClientConnection, boolean, EventManager, boolean)`
org.apache.cayenne.remote.ClientChannel(ClientConnection, boolean, EventManager) since 3.1 use `ClientChannel.ClientChannel(ClientConnection, boolean, EventManager, boolean)`
org.apache.cayenne.access.ClientServerChannel(DataDomain) since 3.1 as context creation is now factory based.
org.apache.cayenne.access.jdbc.ColumnDescriptor(String, int, String) since 3.1 use ColumnDescriptor(String columnName, int jdbcType) instead
org.apache.cayenne.query.SQLTemplate(DataMap, String) since 3.1, use SQLTemplate(DataMap rootMap, String defaultTemplate, boolean isFetchingDataRows) instead

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

Copyright © 2001-2010 Apache Cayenne. All Rights Reserved.