Author: mes
Date: 2011-04-29 10:47:32 -0700 (Fri, 29 Apr 2011)
New Revision: 24854

Modified:
   
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableImpl.java
Log:
added rowExists method to CyTable

Modified: 
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableImpl.java
===================================================================
--- 
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableImpl.java
     2011-04-29 17:47:18 UTC (rev 24853)
+++ 
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableImpl.java
     2011-04-29 17:47:32 UTC (rev 24854)
@@ -392,6 +392,11 @@
                return row;
        }
 
+       @Override
+       synchronized public boolean rowExists(final Object primaryKey) {
+               return (primaryKey != null && rows.containsKey(primaryKey));    
+       }
+
        private boolean rowIsEmpty(final Object key) {
                for (final String columnName : attributes.keySet()) {
                        if (!attributes.get(columnName).isEmpty())

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to