How do i can to execute a object query inside Custom Code ??

I was trying with the Sybase Bookonline examples, but didn't
work.

public static com.sybase.collections.GenericList<Balance>
findByClient(int idClient);
com.sybase.collections.GenericList<Balance> totalComms =
Balance.findByClient(kIdClient);

Somebody can explain me a tested way to do that ?

e.g. - something like that MBOObject.findByIdClient(int
idClient);
I need to load a listview with the resultset of the query.

Thanks in advance!
Ivan