org.h2gis.h2spatial
Class TableFunctionUtil

java.lang.Object
  extended by org.h2gis.h2spatial.TableFunctionUtil

public class TableFunctionUtil
extends Object

Utility in order to simplify table function usage

Author:
Nicolas Fortin, Adam Gouge

Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copyFields

public static void copyFields(Connection connection,
                              org.h2.tools.SimpleResultSet rs,
                              TableLocation tableLocation)
                       throws SQLException
Copy fields from table into a SimpleResultSet

Parameters:
connection - Active connection
rs - Result set that will receive columns
tableLocation - Import columns from this table
Throws:
SQLException - Error

isColumnListConnection

public static boolean isColumnListConnection(Connection connection)
                                      throws SQLException
Return true if this connection only wants the list of columns. This is a hack. See: https://groups.google.com/forum/#!topic/h2-database/NHH0rDeU258

Parameters:
connection - Connection
Returns:
True if this connection only wants the list of columns
Throws:
SQLException


Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.