After finding the *Examples-Criteria a very nice feature,  but thinking now 
about performance:

List find(String likename)
{
          EmployeeExample example = new EmployeeExample();
          example.createCriteria()
            .andNameLike( likename );
        
          ...and maybe more criterias
          ....
}


Question I think about:
Is that a approbiate way  if this gets always constructed new especially if 
often called. 
Couldnt that not be done better or should I then use better a manual SQLMap 
config instead ?  
(Maybe it is the same as with a PreparedStatement  setting the "?"-Parameters,  
 but think that a preparedStatement or whatever is a step afterwards 
constructing the criteria, 
so question remains)

This can maybe also be seen as a general question,  how performance is best 
practised with iBatis.
I think generation of new objects should be kept as minimal as possible.
(Is there a benchmark  compared to jdbc, hibernate,...  available)







Reply via email to