John McNally wrote:

>>4.  Makes SqlEnum a public class so that people can pass different 
>>comparators into Peer objects.
>>    
>>
>
>All the SqlEnum comparators are available through Criteria, are they
>not?  
>
They are, but you have to declare the SqlEnum in any method call.

>Why does it need to be public, this just causes confusion about
>which constants should be used.
>
It needs to be public so I can have a method like this

SearchInterface.find(String p_string, SqlEnum p_match_type)

If SqlEnum isn't public trying to compile the above method throws an 
exception.  

You can access things like Criteria.EQUAL from within a XXXPeer, but you 
can't pass the actual SqlEnum through a method call - or at least that 
has been my experience

CHEERS> SAM


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to