Here you can find the source of getTableList(Connection connection)
public static ArrayList<String> getTableList(Connection connection) throws SQLException
//package com.java2s; //License from project: Open Source License import java.sql.*; import java.util.ArrayList; public class Main { public static ArrayList<String> getTableList(Connection connection) throws SQLException { String request = "SELECT * FROM sqlite_master;"; Statement stmt = connection.createStatement(); ResultSet results = stmt.executeQuery(request); ResultSetMetaData resultsMtdt = results.getMetaData(); ArrayList<String> tables = new ArrayList<>(); while (results.next()) { Object obj = results.getObject(1); if (obj != null && obj instanceof String) { String type = obj.toString(); if (type.indexOf("table") != -1) { tables.add(results.getObject(2).toString()); }/* w w w.ja v a 2 s.c om*/ } } return tables; } }