public void clear() { super.clear(); hasTxSynchronization = false; valid = false; readOnly = false; key = null; persistenceCtx = null; ejbObject = null; ejbLocalObject = null; txAssociation = GlobalTxEntityMap.NONE; passivateAfterCommit = false; }
/** * At undeployment we want to free completely the pool. */ private void freeAll() { LinkedList clone = (LinkedList)pool.clone(); for (int i = 0; i < clone.size(); i++) { EnterpriseContext ec = (EnterpriseContext)clone.get(i); // Clear TX so that still TX entity pools get killed as well ec.clear(); discard(ec); } pool.clear(); }