aspose file tools
The moose likes Object Relational Mapping and the fly likes using session.clear and session.evict Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "using session.clear and session.evict" Watch "using session.clear and session.evict" New topic

using session.clear and session.evict

RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528


what is the difference in clearing the cache using session.evict and session.clear ??

please suggest your ideas

If you want something you never had do something which you had never done
Reehan Lalkhanwar
Ranch Hand

Joined: Jun 16, 2007
Posts: 106
session.clear(): Completely clear the session.
session.evict(Object object): Remove this instance from the session cache. i.e. the object that's passed.

Thank you,
It is sorta covered in the JavaRanch Style Guide.
subject: using session.clear and session.evict