throws SystemException {
lfActivityDataMap = toUnwrappedModel(lfActivityDataMap);
boolean isNew = lfActivityDataMap.isNew();
LFActivityDataMapModelImpl lfActivityDataMapModelImpl = (LFActivityDataMapModelImpl) lfActivityDataMap;
Session session = null;
try {
session = openSession();
if (lfActivityDataMap.isNew()) {
session.save(lfActivityDataMap);
lfActivityDataMap.setNew(false);
} else {
session.merge(lfActivityDataMap);
}
} catch (Exception e) {
throw processException(e);
} finally {
closeSession(session);
}
FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
if (isNew || !LFActivityDataMapModelImpl.COLUMN_BITMASK_ENABLED) {
FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
}
else {
if ((lfActivityDataMapModelImpl.getColumnBitmask() &
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PACKAGEIDANDACTIVITYID.getColumnBitmask()) != 0) {
Object[] args = new Object[] {
lfActivityDataMapModelImpl.getOriginalPackageID(),
lfActivityDataMapModelImpl.getOriginalActivityID()
};
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_PACKAGEIDANDACTIVITYID,
args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PACKAGEIDANDACTIVITYID,
args);
args = new Object[] {
lfActivityDataMapModelImpl.getPackageID(),
lfActivityDataMapModelImpl.getActivityID()
};
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_PACKAGEIDANDACTIVITYID,
args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PACKAGEIDANDACTIVITYID,