summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2008-03-12 01:28:07 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2008-03-12 01:28:07 +0000
commit340c3dc831ebc40e6ddd6eab089f72ffadd9e3da (patch)
tree66db3c913da5113cd86fb5a30f4609d382cdec7c
parent379669147b0118a39d432568c6a3b6cb6c454e6d (diff)
downloadjackcess-340c3dc831ebc40e6ddd6eab089f72ffadd9e3da.tar.gz
jackcess-340c3dc831ebc40e6ddd6eab089f72ffadd9e3da.zip
add toString
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@267 f203690c-595d-4dc9-a70b-905162fa7fd2
-rw-r--r--src/java/com/healthmarketscience/jackcess/Relationship.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/Relationship.java b/src/java/com/healthmarketscience/jackcess/Relationship.java
index 580fca3..7d089c4 100644
--- a/src/java/com/healthmarketscience/jackcess/Relationship.java
+++ b/src/java/com/healthmarketscience/jackcess/Relationship.java
@@ -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();
+ }
+
}