# HG changeset patch # User František Kučera # Date 1439640047 -7200 # Node ID 42880d38ad3e3c4fcbc589c63f654e2039dad98a # Parent 1fb3c7953d8aecb2f317a8da9b34514ee1a02616 --list-formatter-properties: added column declared_in diff -r 1fb3c7953d8a -r 42880d38ad3e java/sql-dk/src/info/globalcode/sql/dk/InfoLister.java --- a/java/sql-dk/src/info/globalcode/sql/dk/InfoLister.java Sat Aug 15 13:58:43 2015 +0200 +++ b/java/sql-dk/src/info/globalcode/sql/dk/InfoLister.java Sat Aug 15 14:00:47 2015 +0200 @@ -207,7 +207,8 @@ new HeaderField("name", SQLType.VARCHAR), new HeaderField("type", SQLType.VARCHAR), new HeaderField("default", SQLType.VARCHAR), - new HeaderField("description", SQLType.VARCHAR) + new HeaderField("description", SQLType.VARCHAR), + new HeaderField("declared_in", SQLType.VARCHAR) ); Map data = new HashMap<>(); @@ -216,7 +217,7 @@ Collections.reverse(hierarchy); hierarchy.stream().forEach((c) -> { for (PropertyDeclaration p : getPropertyDeclarations(c)) { - data.put(p.name(), propertyDeclarationToRow(p)); + data.put(p.name(), propertyDeclarationToRow(p, c)); } }); @@ -229,12 +230,13 @@ } } - private static Object[] propertyDeclarationToRow(PropertyDeclaration p) { + private static Object[] propertyDeclarationToRow(PropertyDeclaration p, Class formatterClass) { return new Object[]{ p.name(), CommonProperties.getSimpleTypeName(p.type()), p.defaultValue(), - p.description() + p.description(), + formatterClass.getName() }; }