java.util.list.size()
for the wxample as below:List rs = q.list();if(rs.size() == 1){SpInventory inv = (SpInventory)rs.get(0);inv.setQtyOnOrder(qty);ses.update(inv);}may i know what is the '1' means in rs.size() ==1?
[259 byte] By [
moonnya] at [2007-10-3 8:22:59]

From the API docs:
public int size()
/*
Returns the number of elements in this list.
If this list contains more than Integer.MAX_VALUE elements,
returns Integer.MAX_VALUE.
*/