public class TableUtilities extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
copyFields(Connection connection,
org.h2.tools.SimpleResultSet rs,
TableLocation tableLocation)
Copy fields from table into a
SimpleResultSet |
static boolean |
isColumnListConnection(Connection connection)
Return true if this connection only wants the list of columns.
|
static TableLocation |
parseInputTable(Connection connection,
String inputTable)
Convert an input table String to a TableLocation
|
static TableLocation |
suffixTableLocation(TableLocation inputTable,
String suffix)
Suffix a TableLocation
|
public static void copyFields(Connection connection, org.h2.tools.SimpleResultSet rs, TableLocation tableLocation) throws SQLException
SimpleResultSetconnection - Active connectionrs - Result set that will receive columnstableLocation - Import columns from this tableSQLException - Errorpublic static boolean isColumnListConnection(Connection connection) throws SQLException
connection - ConnectionSQLExceptionpublic static TableLocation parseInputTable(Connection connection, String inputTable) throws SQLException
connection - ConnectioninputTable - Input tableSQLExceptionpublic static TableLocation suffixTableLocation(TableLocation inputTable, String suffix)
inputTable - Input tablesuffix - SuffixCopyright © 2016 CNRS. All rights reserved.