]> source.dussan.org Git - jackcess.git/commitdiff
add toString
authorJames Ahlborn <jtahlborn@yahoo.com>
Wed, 12 Mar 2008 01:28:07 +0000 (01:28 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Wed, 12 Mar 2008 01:28:07 +0000 (01:28 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@267 f203690c-595d-4dc9-a70b-905162fa7fd2

src/java/com/healthmarketscience/jackcess/Relationship.java

index 580fca3eddc3bda80ad0c86faa743c76f09e483f..7d089c4eb0e08b25d169319f306ce9c903b32ced 100644 (file)
@@ -106,4 +106,17 @@ public class Relationship {
     return((getFlags() & flagMask) != 0);
   }
 
+  @Override
+  public String toString() {
+    StringBuilder rtn = new StringBuilder();
+    rtn.append("\tName: " + _name);
+    rtn.append("\n\tFromTable: " + _fromTable.getName());
+    rtn.append("\n\tFromColumns: " + _fromColumns);
+    rtn.append("\n\tToTable: " + _toTable.getName());
+    rtn.append("\n\tToColumns: " + _toColumns);
+    rtn.append("\n\tFlags: " + Integer.toHexString(_flags));
+    rtn.append("\n\n");
+    return rtn.toString();
+  }
+  
 }