arminw 2005/09/29 10:23:23
Modified: src/java/org/apache/ojb/broker/metadata Tag: OJB_1_0_RELEASE
ClassDescriptor.java
Log:
Remove a critical method (no longer needed). The removed method doesn't
handle composed PK, no exception, no warning.
Revision Changes Path
No revision
No revision
1.88.2.19 +1 -16
db-ojb/src/java/org/apache/ojb/broker/metadata/ClassDescriptor.java
Index: ClassDescriptor.java
===================================================================
RCS file:
/home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/ClassDescriptor.java,v
retrieving revision 1.88.2.18
retrieving revision 1.88.2.19
diff -u -r1.88.2.18 -r1.88.2.19
--- ClassDescriptor.java 14 Aug 2005 16:00:33 -0000 1.88.2.18
+++ ClassDescriptor.java 29 Sep 2005 17:23:22 -0000 1.88.2.19
@@ -1124,21 +1124,6 @@
}
/**
- * convenience function to get the first primary key
- * <p>
- * useful when there is only one
- */
- public FieldDescriptor getPrimaryKey()
- {
- FieldDescriptor[] fds = getPkFields();
- if (fds != null && fds.length > 0)
- {
- return fds[0];
- }
- return null;
- }
-
- /**
* return an array of FieldDescription for optimistic locking sorted
ascending
* according to the field-descriptions getOrder() property
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]