src/org/ohmage/query/impl/ObserverQueries.java
@Override
							public Stream mapRow(
									final ResultSet rs, 
									final int rowNum)
									throws SQLException {
								
								// Because the with_* values are optional and
								// may be null, they must be retrieve in this
								// special way.
								Boolean withId, withTimestamp, withLocation;
								withId = rs.getBoolean("with_id");
								if(rs.wasNull()) {
									withId = null;
								}
								withTimestamp =
									rs.getBoolean("with_timestamp");
								if(rs.wasNull()) {
									withTimestamp = null;
								}
								withLocation = rs.getBoolean("with_location");
								if(rs.wasNull()) {
									withLocation = null;
								}
								
								try {
									return new Observer.Stream(
										rs.getString("stream_id"), 
										rs.getLong("version"), 
										rs.getString("name"), 
										rs.getString("description"), 
										withId,
										withTimestamp, 
										withLocation, 
										rs.getString("stream_schema"));
								}
								catch(DomainException e) {
									throw new SQLException(e);
								}
							}
/**
							 * Maps the row of data to a new stream.
							 */
Maps the row of data to a new stream.
Maps the row of data to a new stream .
@Override
							public Stream mapRow(
									final ResultSet rs, 
									final int rowNum)
									throws SQLException {
								Boolean withId, withTimestamp, withLocation;
								withId = rs.getBoolean("with_id");
								if(rs.wasNull()) {
									withId = null;
								}
								withTimestamp =
									rs.getBoolean("with_timestamp");
								if(rs.wasNull()) {
									withTimestamp = null;
								}
								withLocation = rs.getBoolean("with_location");
								if(rs.wasNull()) {
									withLocation = null;
								}
								try {
									return new Observer.Stream(
										rs.getString("stream_id"), 
										rs.getLong("version"), 
										rs.getString("name"), 
										rs.getString("description"), 
										withId,
										withTimestamp, 
										withLocation, 
										rs.getString("stream_schema"));
								}
								catch(DomainException e) {
									throw new SQLException(e);
								}
							}
@ Override public Stream mapRow ( final ResultSet rs , final int rowNum ) throws SQLException { Boolean withId , withTimestamp , withLocation ; withId = rs . getBoolean ( "with_id" ) ; if ( rs . wasNull ( ) ) { withId = null ; } withTimestamp = rs . getBoolean ( "with_timestamp" ) ; if ( rs . wasNull ( ) ) { withTimestamp = null ; } withLocation = rs . getBoolean ( "with_location" ) ; if ( rs . wasNull ( ) ) { withLocation = null ; } try { return new Observer . Stream ( rs . getString ( "stream_id" ) , rs . getLong ( "version" ) , rs . getString ( "name" ) , rs . getString ( "description" ) , withId , withTimestamp , withLocation , rs . getString ( "stream_schema" ) ) ; } catch ( DomainException e ) { throw new SQLException ( e ) ; } }
Maps the row of data to a new stream.
Maps the row of data to a new stream .
// Because the with_* values are optional and // may be null, they must be retrieve in this // special way.