public Criteria copy ( boolean includeGroupBy , boolean includeOrderBy , boolean includePrefetchedRelationships ) { Criteria copy = new Criteria ( ) ; copy . m_criteria = new Vector ( this . m_criteria ) ; copy . m_negative = this . m_negative ; if ( includeGroupBy ) { copy . groupby = this . groupby ; } if ( includeOrderBy ) { copy . orderby = this . orderby ; } if ( includePrefetchedRelationships ) { copy . prefetchedRelationships = this . prefetchedRelationships ; } return copy ; }
make a copy of the criteria