std::string sosicon::ConverterSosi2psql::
buildInsertStatements( std::string dbSchema,
                       std::string dbTable ) {

    std::string sql;
    sql  = buildInsertStatement( wkt_point,
                                 dbSchema,
                                 dbTable );

    sql += buildInsertStatement( wkt_linestring,
                                 dbSchema,
                                 dbTable );

    sql += buildInsertStatement( wkt_polygon,
                                 dbSchema,
                                 dbTable );
    return sql;
}
/**
 * Adds a new Device
 * @param device An intance of class Device
 * @return 0 on success, otherwise the database error code
 */
int DeviceCassandraController::addDevice(boost::shared_ptr<Device> &device) {
  string queryString = buildInsertStatement(device);
  LOG(DEBUG) << queryString.c_str();
  boost::shared_future<cql::cql_future_result_t> results =
      databaseDriver->executeQuery(queryString);
  if (results.get().error.is_err()) {
    LOG(ERROR) << results.get().error.message.c_str();
    return results.get().error.code;
  }
  return 0;
}