You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/03/28 03:37:32 UTC

DO NOT REPLY [Bug 27993] - modify BasicRowProcessor to use the column label

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27993>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27993

modify BasicRowProcessor to use the column label





------- Additional Comments From dgraham@apache.org  2004-03-28 01:37 -------
The javadoc for getColumnLabel() is rather vague:
"Gets the designated column's suggested title for use in printouts and displays."

This doesn't mention aliasing which leads me to believe that drivers may
implement this differently.  Besides, getColumnName() returns the aliased name
on the drivers I've used (DB2, Postgres) so it's not really an issue there. 
What driver are you using?  If it doesn't return the aliased name, you can
always override BeanProcessor.mapColumnsToProperties() to use getColumnLabel()
instead.  You'll need a nightly build for that because BeanProcessor was added
after DbUtils 1.0.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org