I have worker for fill the jtable from resultset like below;
public class WorkerFillTable extends SwingWorker {
JDBCAdapter, which extends AbstractTableModel, illustrates a typical mapping between relational database and Java data types. It may be seen here, and a complete example may be found in samples/demo/jfc/TableExample, found among the Java SE Development Kit 8u25 Demos and Samples Downloads. In outline,
Override getColumnClass().
Get the column's data type from ResultSetMetaData.
Use switch(type) to return the correct type-token.
Also consider a SwingWorker for finer granularity in publish()/process().