From 340c3dc831ebc40e6ddd6eab089f72ffadd9e3da Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Wed, 12 Mar 2008 01:28:07 +0000 Subject: [PATCH] add toString git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@267 f203690c-595d-4dc9-a70b-905162fa7fd2 --- .../healthmarketscience/jackcess/Relationship.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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(); + } + } -- 2.39.5