You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2010/02/20 23:59:23 UTC
svn commit: r912247 -
/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelEntity.java
Author: lektran
Date: Sat Feb 20 22:59:22 2010
New Revision: 912247
URL: http://svn.apache.org/viewvc?rev=912247&view=rev
Log:
The following deprecated classes, constructors or methods have been removed:
org.ofbiz.entity.model.ModelEntity.getPk(int)
- Use ModelEntity.getPksIterator() instead
org.ofbiz.entity.model.ModelEntity.getPksCopy()
- Use ModelEntity.getPkFieldsUnmodifiable() instead
org.ofbiz.entity.model.ModelEntity.getNopk(int)
- Use ModelEntity.getNopksIterator() instead
org.ofbiz.entity.model.ModelEntity.getField(int)
- Use ModelEntity.getFieldsIterator() instead
org.ofbiz.entity.model.ModelEntity.getFieldsCopy()
- Use ModelEntity.getFieldsUnmodifiable() instead
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelEntity.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelEntity.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelEntity.java?rev=912247&r1=912246&r2=912247&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelEntity.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelEntity.java Sat Feb 20 22:59:22 2010
@@ -465,14 +465,6 @@
return this.pks.size();
}
- /**
- * @deprecated
- */
- @Deprecated
- public ModelField getPk(int index) {
- return this.pks.get(index);
- }
-
public ModelField getOnlyPk() {
if (this.pks.size() == 1) {
return this.pks.get(0);
@@ -485,16 +477,6 @@
return this.pks.iterator();
}
- /**
- * @deprecated Use getPkFieldsUnmodifiable instead.
- */
- @Deprecated
- public List<ModelField> getPksCopy() {
- List<ModelField> newList = FastList.newInstance();
- newList.addAll(this.pks);
- return newList;
- }
-
public List<ModelField> getPkFieldsUnmodifiable() {
return Collections.unmodifiableList(this.pks);
}
@@ -512,14 +494,6 @@
return this.nopks.size();
}
- /**
- * @deprecated
- */
- @Deprecated
- public ModelField getNopk(int index) {
- return this.nopks.get(index);
- }
-
public Iterator<ModelField> getNopksIterator() {
return this.nopks.iterator();
}
@@ -534,28 +508,10 @@
return this.fields.size();
}
- /**
- * @deprecated
- */
- @Deprecated
- public ModelField getField(int index) {
- return this.fields.get(index);
- }
-
public Iterator<ModelField> getFieldsIterator() {
return this.fields.iterator();
}
- /**
- * @deprecated Use getFieldsUnmodifiable instead.
- */
- @Deprecated
- public List<ModelField> getFieldsCopy() {
- List<ModelField> newList = FastList.newInstance();
- newList.addAll(this.fields);
- return newList;
- }
-
public List<ModelField> getFieldsUnmodifiable() {
return Collections.unmodifiableList(this.fields);
}