db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thoralf Rickert" <thoralf.rick...@cadooz.de>
Subject View a Criteria
Date Fri, 21 Oct 2005 07:39:36 GMT

In BasePeer is a method called createQueryString(Criteria) that we used
to debug our Criteria objects. Then we saw that this method changes the
Criteria object if it contains a limit and the database has native limit
support. So the createQueryString(Criteria) method isn't useful for

Today I saw that there is another method in BasePeer called
createQueryDisplayString(Criteria). But I cannot call it from outside
the BasePeer package (org.apache.torque.util) because it's package
private and not public or protected. Is there a way to create a debug
message with a Criteria object without using the toString() method?
Would it be a problem to make the createQueryDisplayString(Criteria)
method protected, so that is accessable from outside the package?


View raw message