Factored out code that is used to generate Join Code. This code comes
from BasePeer and is put here to reduce complexity in the BasePeer class.
You should not use the methods here directly!
author: Thomas Fischer author: Henning P. Schmiedehausen version: $Id: JoinBuilder.java 535615 2007-05-06 14:11:05Z tv $
adds the Joins from the criteria to the query
Parameters: criteria - the criteria from which the Joins are taken Parameters: query - the query to which the Joins should be added throws: TorqueException - if the Joins can not be processed