View Full Version : How can I print a large table?

08-19-2002, 03:23 AM
I have run the demo for several times,it's really a good tool
to generate report.While ,there is still one thing that makes
me fell confused.This tool uses TableModel to store data,
this is very convenient,but if I have a table that is stored
in a database, such as SQL Server,how should I do?Can
I convert this table to a TableModel?If I could do so,then
can i convert a large table to a TableModel?
I do not know much about TableModel,but as I guess,it should
store its data in the memory,then if the data volume is too big,
can TableModel is still available??
welcome to reply.

08-19-2002, 02:12 PM

if your JDBC-Driver supports scrollable ResultSets, you may use the ResultSetTableModelFactory in com.jrefinery.report.util to support real huge resultsets. If your driver does not support scrollable ResultSets, all the Query-Results are copied into a DefaultTableModel, so that your RAM will act as limiting barrier.

TableModel is a generic DataAccess-interface which does not imply to use the Default-implementation of Swing. TableModel does not regulate how you store your data, it simply defines how to display and access the data contained in the model.

I'll construct an example on how to use TableModels in a environment which uses BusinessObjects to display customers and invoices.... stay tuned :)

Have more fun,
said Thomas

08-19-2002, 08:49 PM
thank you very much !
I will be waiting :)