boolean merge) throws SystemException {
warrantUserEmailLog = toUnwrappedModel(warrantUserEmailLog);
boolean isNew = warrantUserEmailLog.isNew();
WarrantUserEmailLogModelImpl warrantUserEmailLogModelImpl = (WarrantUserEmailLogModelImpl)warrantUserEmailLog;
Session session = null;
try {
session = openSession();
BatchSessionUtil.update(session, warrantUserEmailLog, merge);
warrantUserEmailLog.setNew(false);
}
catch (Exception e) {
throw processException(e);
}
finally {
closeSession(session);
}
FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
if (isNew || !WarrantUserEmailLogModelImpl.COLUMN_BITMASK_ENABLED) {
FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
}
EntityCacheUtil.putResult(WarrantUserEmailLogModelImpl.ENTITY_CACHE_ENABLED,
WarrantUserEmailLogImpl.class, warrantUserEmailLog.getPrimaryKey(),
warrantUserEmailLog);
if (isNew) {
FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_USERID,
new Object[] { Long.valueOf(warrantUserEmailLog.getUserId()) },
warrantUserEmailLog);
}
else {
if ((warrantUserEmailLogModelImpl.getColumnBitmask() &
FINDER_PATH_FETCH_BY_USERID.getColumnBitmask()) != 0) {
Object[] args = new Object[] {
Long.valueOf(warrantUserEmailLogModelImpl.getOriginalUserId())
};
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_USERID, args);
FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_USERID, args);