java/webservice/src/main/java/be/bosa/dt/best/webservice/Repository.java
/**
	 * Find a street by ID
	 * 
	 * @param id full street id
	 * @return street or null
	 */
Find a street by ID

@param id full street id
@return street or null
Find a street by ID @param id full street id @return street or null
public Uni<Street> findStreetById(String id) {
		Tuple tuple = Tuple.of(NsConverter.streetEncode(id));
		SqlStreet qry = new SqlStreet();
		qry.where("s.identifier =");
		return uni(
			pg.preparedQuery(qry.build()).execute(tuple)
		).transform(row -> row.hasNext() ? Street.from(row.next()) : null);
	}
public Uni < Street > findStreetById ( String id ) { Tuple tuple = Tuple . of ( NsConverter . streetEncode ( id ) ) ; SqlStreet qry = new SqlStreet ( ) ; qry . where ( "s.identifier =" ) ; return uni ( pg . preparedQuery ( qry . build ( ) ) . execute ( tuple ) ) . transform ( row -> row . hasNext ( ) ? Street . from ( row . next ( ) ) : null ) ; }
Find a street by ID
Find a street by ID