Author: clopes
Date: 2012-07-23 10:22:37 -0700 (Mon, 23 Jul 2012)
New Revision: 29956
Modified:
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/CyColumnImpl.java
Log:
Minor change: just adds toString() to CyColumnImpl
Modified:
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/CyColumnImpl.java
===================================================================
---
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/CyColumnImpl.java
2012-07-22 08:03:47 UTC (rev 29955)
+++
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/CyColumnImpl.java
2012-07-23 17:22:37 UTC (rev 29956)
@@ -81,12 +81,9 @@
if (isImmutable)
throw new IllegalArgumentException("can't rename an
immutable column.");
-
final String oldName = columnName;
table.updateColumnName(oldName, newName);
columnName = newName;
-
-
}
/** @return the data type of the column. */
@@ -120,7 +117,14 @@
return virtualInfo;
}
+ @Override
public Object getDefaultValue() {
return defaultValue;
}
+
+ @Override
+ public String toString() {
+ return "CyColumn{ " + (isPrimaryKey ? "[PK] " : "") +
columnName + " (" + columnType.getSimpleName() + ")"
+ + (isImmutable ? " IMMUTABLE" : "") + " }";
+ }
}
--
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.