public class TableUtils extends Object
Constructor and Description |
---|
TableUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
dropTable(SDBConnection connection,
String tableName) |
static void |
dropTableSilent(SDBConnection connection,
String tableName) |
static void |
dump(Connection conn,
String tableName) |
static void |
dump(SDBConnection conn,
String tableName) |
static List<String> |
getTableNames(Connection connection)
Get the names of the application tables
|
static List<String> |
getTableNames(Connection connection,
String tableTypeName)
Get the names of the tables of a particular type
|
static long |
getTableSize(Connection connection,
String table)
Get the size of a table (usually called 'Triples')
|
static boolean |
hasTable(Connection connection,
String table,
String... types)
Does this table exist?
|
static boolean |
hasTable(SDBConnectionHolder holder,
String table,
String... types) |
public static void dump(SDBConnection conn, String tableName)
public static void dump(Connection conn, String tableName)
public static boolean hasTable(Connection connection, String table, String... types) throws SQLException
SQLException
public static boolean hasTable(SDBConnectionHolder holder, String table, String... types) throws SQLException
SQLException
public static List<String> getTableNames(Connection connection)
public static List<String> getTableNames(Connection connection, String tableTypeName)
public static long getTableSize(Connection connection, String table)
public static void dropTable(SDBConnection connection, String tableName)
public static void dropTableSilent(SDBConnection connection, String tableName)
Licenced under the Apache License, Version 2.0