Added toString().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@570 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -14,6 +14,8 @@ import java.util.*;
|
||||
import java.sql.*;
|
||||
import java.lang.reflect.*;
|
||||
|
||||
import com.samskivert.util.StringUtil;
|
||||
|
||||
/** Table class is used to establish mapping between corteges of database
|
||||
* tables and Java classes. This class is responsible for constructing
|
||||
* SQL statements for extracting, updating and deleting records of the
|
||||
@@ -523,6 +525,16 @@ public class Table {
|
||||
return nDeleted;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates a string representation of this table.
|
||||
*/
|
||||
public String toString ()
|
||||
{
|
||||
return "[isAbstract=" + isAbstract + ", derived=" + derived +
|
||||
", nDerived=" + nDerived + ", name=" + name +
|
||||
", primaryKeys=" + StringUtil.toString(primaryKeys) + "]";
|
||||
}
|
||||
|
||||
/** Spearator of name components of compound field. For example, if Java
|
||||
* class constains component "location" of Point class, which
|
||||
* has two components "x" and "y", then database table should
|
||||
|
||||
Reference in New Issue
Block a user