return false;
}
private ArrayList<BookListing> getListings( HttpServletRequest request ) {
ArrayList<BookListing> listings = new ArrayList<BookListing>();
ShoppingCartEntry entry;
String[] fields = { "l.*", "b.*", "u.*" };
String where = "e.userId = " + bzb.getAuthenticatedUser( request ).getUserId();
String[] join = { "INNER JOIN bzb.booklisting l ON l.listId = e.listId",
"INNER JOIN bzb.book b ON b.isbn = l.isbn",
"INNER JOIN bzb.user u ON u.userId = l.userId" };
ResultSet result = bzb.getDriver().select( "shoppingcartentry e", fields, where, join, null, null, null, 0, 0 );
try {
while( result.next() ) {
entry = new ShoppingCartEntry();
entry.init( bzb.getDriver() );
entry.populate( result );
listings.add( entry.getListing() );
}
} catch( SQLException e ) {
}