public class TableUtilities extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
caseIdentifier(TableLocation requestedTable,
String tableName,
boolean isH2)
Return the table identifier in the best fit depending on database type
|
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 - Suffixpublic static String caseIdentifier(TableLocation requestedTable, String tableName, boolean isH2)
requestedTable - Catalog and schema usedtableName - Table without quotesisH2 - True if H2, false if PostGRESCopyright © 2019 CNRS. All rights reserved.