public static PreparedStatement prepareInformationSchemaStatement(Connection connection,String catalog,
                                                                      String schema, String table,
                                                                      String informationSchemaTable, String endQuery)
            throws SQLException {
        return prepareInformationSchemaStatement(connection,catalog, schema, table, informationSchemaTable, endQuery,
                "f_table_catalog","f_table_schema","f_table_name");
    }
public static PreparedStatement prepareInformationSchemaStatement ( Connection connection , String catalog , String schema , String table , String informationSchemaTable , String endQuery ) throws SQLException { return prepareInformationSchemaStatement ( connection , catalog , schema , table , informationSchemaTable , endQuery , "f_table_catalog" , "f_table_schema" , "f_table_name" ) ; }
For table containing catalog, schema and table name, this function create a prepared statement with a filter on
this combination. Use "f_table_catalog","f_table_schema","f_table_name" as field names.

@param connection Active connection
@param catalog Table catalog, may be empty
@param schema Table schema, may be empty
@param table Table name
@param informationSchemaTable Information table location
@param endQuery Additional where statement

@return Prepared statement

@throws SQLException