Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionif you are using thread context, you can create your own ThreadLocalif you are using thread context, you can create your own ThreadLocalunused and unneededuse
DefaultDataRowStoreFactory.SNAPSHOT_CACHE_SIZE_DEFAULTunuseddoes nothingin favor ofOptimisticLockException.getStatement()unused; no SQL tree node appends a sub-range. Kept for binary compatibility, now delegating toSQLAppendable.append(String).in favor ofArrayUtil.appendTruncated(StringBuilder, byte[])unuseduseDataContextdirectlyusePersistentObjectdirectlyuseCommitLoginstead.in favor ofCoreModule.extend(Binder)APIin favor ofCoreModule.extend(Binder)APIin favor ofCoreModule.extend(Binder)APIin favor ofCoreModule.extend(Binder)APIin favor ofCoreModule.extend(Binder)APIin favor ofCoreModule.extend(Binder)APIin favor ofCoreModule.extend(Binder)APIin favor ofCoreModule.extend(Binder)APIin favor ofCoreModule.extend(Binder)APIin favor ofCoreModule.extend(Binder)APIin favor ofCoreModule.extend(Binder)APIin favor ofCoreModule.extend(Binder)APIuseCayenneRuntimeclass insteaduseCayenneRuntime.of()insteaduseCayenneRuntime.of(String)insteadusePersistentinterface directlyin favor ofCayenneDataSourcein favor ofCayenneDataSourcein favor ofDbAdapter.getEjbqlTranslator().in favor ofDbAdapter.getQuotingStrategy(DbEntity)logger should be taken from the DataNodein favor ofDbAdapter.preferredNativeColumnType(DbAttribute)in favor ofJdbcAdapter.setEjbqlTranslator(EJBQLTranslator).in favor ofJdbcAdapter.sizeAndScale(DbAdapter, DbAttribute)unused, it is trivial to create per-adapter classes without the common superclassunused by the framework that relies onPkGenerator.generatePk(DataNode, DbAttribute, Class)in favour ofCollectionProperty.containsValue(V)in favour ofCollectionProperty.containsValues(V...)in favour ofCollectionProperty.containsIds(Object...)in favour ofCollectionProperty.containsIdsCollection(Collection)in favour ofCollectionProperty.notContainsValue(V)in favour ofCollectionProperty.notContainsValues(V...)in favour ofCollectionProperty.notContainsIds(Object...)in favour ofEntityProperty.idsIn(Object...)in favour ofEntityProperty.idsInCollection(Collection)in favour ofEntityProperty.idsNotIn(Object...)in favour ofEntityProperty.idsNotInCollection(Collection)in favour ofMapProperty.containsValuesCollection(Collection)in favour ofMapProperty.containsValues(V...)in favour ofMapProperty.containsIds(Object...)in favour ofMapProperty.containsIdsCollection(Collection)in favour ofMapProperty.notContainsValuesCollection(Collection)in favour ofMapProperty.notContainsValues(V...)in favour ofMapProperty.notContainsIds(Object...)in favour ofMapProperty.notContainsIdsCollection(Collection)asTraversalHandlerhas default no-op implementations for all methodsin favor ofDataChannel.getParent()renamed toQueryRouter.nodeForDataMap(DataMap).renamed toQueryRouter.nodeForName(String).will throw UnsupportedOperationException on invocation, useClassDescriptor.getSubclassDescriptor(String)useCayenneRuntime.of()insteaduseCayenneRuntime.of(String)insteadin favor ofCayenneRuntime.getDataDomain()this is fairly useless. Modules are opaque.CayenneRuntime.getInjector()is the closest useful thing.unusedUseObjects.equals(Object, Object)orObjects.deepEquals(Object, Object)directly.useObjects.hash(Object...)or a manual31 * h + Objects.hashCode(x)loopunusedunusedusecs.chars().allMatch(Character::isDigit)or equivalentUseObjects.equals(Object, Object)for non-array types, orObjects.deepEquals(Object, Object)when the values may be arrays.unusedunusedunusedunusedunusedunuseduseIntStream.range(int, int)withCollectors.toMap(Function, Function)to build a map from parallel arraysunused
-
Deprecated Packages
-
Deprecated Interfaces
-
Deprecated ClassesClassDescriptionuse
DataContextdirectlyusePersistentObjectdirectlyuseCayenneRuntimeclass insteadin favor ofCayenneDataSourcein favor ofCayenneDataSourceunused, it is trivial to create per-adapter classes without the common superclassasTraversalHandlerhas default no-op implementations for all methodsunusedUseObjects.equals(Object, Object)orObjects.deepEquals(Object, Object)directly.useObjects.hash(Object...)or a manual31 * h + Objects.hashCode(x)loop
-
Deprecated Annotation Interfaces
-
Deprecated FieldsFieldDescriptionuse
DefaultDataRowStoreFactory.SNAPSHOT_CACHE_SIZE_DEFAULTunusedunusedsince 5.0 this property is ignored. The slow-query threshold warning was removed as part of the compact SQL logger redesign (CAY-2912).
-
Deprecated MethodsMethodDescriptionif you are using thread context, you can create your own ThreadLocalif you are using thread context, you can create your own ThreadLocalunused and unneededdoes nothingin favor of
OptimisticLockException.getStatement()unused; no SQL tree node appends a sub-range. Kept for binary compatibility, now delegating toSQLAppendable.append(String).in favor ofArrayUtil.appendTruncated(StringBuilder, byte[])use implementation specific methods to perform cache management tasks.in favor ofCoreModule.extend(Binder)APIin favor ofCoreModule.extend(Binder)APIin favor ofCoreModule.extend(Binder)APIin favor ofCoreModule.extend(Binder)APIin favor ofCoreModule.extend(Binder)APIin favor ofCoreModule.extend(Binder)APIin favor ofCoreModule.extend(Binder)APIin favor ofCoreModule.extend(Binder)APIin favor ofCoreModule.extend(Binder)APIin favor ofCoreModule.extend(Binder)APIin favor ofCoreModule.extend(Binder)APIin favor ofCoreModule.extend(Binder)APIuseCayenneRuntime.of()insteaduseCayenneRuntime.of(String)insteadin favor ofDbAdapter.getEjbqlTranslator().in favor ofDbAdapter.getQuotingStrategy(DbEntity)logger should be taken from the DataNodein favor ofDbAdapter.preferredNativeColumnType(DbAttribute)in favor ofJdbcAdapter.setEjbqlTranslator(EJBQLTranslator).in favor ofJdbcAdapter.sizeAndScale(DbAdapter, DbAttribute)unused by the framework that relies onPkGenerator.generatePk(DataNode, DbAttribute, Class)in favour ofCollectionProperty.containsValue(V)in favour ofCollectionProperty.containsValues(V...)in favour ofCollectionProperty.containsIds(Object...)in favour ofCollectionProperty.containsIdsCollection(Collection)in favour ofCollectionProperty.notContainsValue(V)in favour ofCollectionProperty.notContainsValues(V...)in favour ofCollectionProperty.notContainsIds(Object...)in favour ofEntityProperty.idsIn(Object...)in favour ofEntityProperty.idsInCollection(Collection)in favour ofEntityProperty.idsNotIn(Object...)in favour ofEntityProperty.idsNotInCollection(Collection)in favour ofMapProperty.containsValuesCollection(Collection)in favour ofMapProperty.containsValues(V...)in favour ofMapProperty.containsIds(Object...)in favour ofMapProperty.containsIdsCollection(Collection)in favour ofMapProperty.notContainsValuesCollection(Collection)in favour ofMapProperty.notContainsValues(V...)in favour ofMapProperty.notContainsIds(Object...)in favour ofMapProperty.notContainsIdsCollection(Collection)in favor ofDataChannel.getParent()renamed toQueryRouter.nodeForDataMap(DataMap).renamed toQueryRouter.nodeForName(String).will throw UnsupportedOperationException on invocation, useClassDescriptor.getSubclassDescriptor(String)useCayenneRuntime.of()insteaduseCayenneRuntime.of(String)insteadin favor ofCayenneRuntime.getDataDomain()this is fairly useless. Modules are opaque.CayenneRuntime.getInjector()is the closest useful thing.unusedthis method based on statically defined class loading algorithm is not going to work in environments like OSGi.AdhocObjectFactoryshould be used as it can provide the environment-specific class loading policy.unusedusecs.chars().allMatch(Character::isDigit)or equivalentsince 5.0 in favor of the JDK'sComparator.nullsFirst(java.util.Comparator)/Comparator.nullsLast(java.util.Comparator)combined withComparator.naturalOrder().UseObjects.equals(Object, Object)for non-array types, orObjects.deepEquals(Object, Object)when the values may be arrays.unusedunusedunusedunusedunusedunuseduseIntStream.range(int, int)withCollectors.toMap(Function, Function)to build a map from parallel arraysunused