db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r589569 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/CollectionDescriptor.java
Date Mon, 29 Oct 2007 10:13:23 GMT
Author: arminw
Date: Mon Oct 29 03:13:19 2007
New Revision: 589569

URL: http://svn.apache.org/viewvc?rev=589569&view=rev
Log:
add new method

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/CollectionDescriptor.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/CollectionDescriptor.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/CollectionDescriptor.java?rev=589569&r1=589568&r2=589569&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/CollectionDescriptor.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/CollectionDescriptor.java
Mon Oct 29 03:13:19 2007
@@ -373,4 +373,15 @@
         }
         return result;
     }
+
+    /**
+     * Returns <em>true</em> if the field represented by this descriptor is
+     * an array. Else <em>false</em> is returned.
+     *
+     * @return Whether or not this "collection field" is an array.
+     */
+    public boolean isArrayType()
+    {
+        return getPersistentField().getType().isArray();
+    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message