db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Popescu Adrian <adr...@reea.net>
Subject How can I copy one criteria object into another?
Date Tue, 13 Apr 2004 09:57:12 GMT

	Hello!

		I need to reuse a Criteria object multiple times. This is what I want
to do:
	Criteria origCriteria;
	...
	...	
	Criteria newCriteria = origCriteria;
        //modify newCriteria
	...        
	...
	//do something with newCriteria
        ...
	...
	//reuse the origCriteria

		When I do this all changes that I make to "newCriteria" reflects to
"origCriteria" I tried also : 
	newCriteria = origCriteria.clone();
but it is not working. :(  How can I copy "origCriteria" to
"newCriteria" but leave the original criteria intact?


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message