I have a huge dao which is talking to a database.I want to check if the id exists but the .length() method is the problem as the id (type long) cannot be deferenced
I dunno, its hard to understand what you are trying to do. What it looks like you might be trying to do is see if a value has been assigned to orderId and if it has been return 0. Is that right?