throws SystemException {
lfTincanActProfile = toUnwrappedModel(lfTincanActProfile);
boolean isNew = lfTincanActProfile.isNew();
LFTincanActProfileModelImpl lfTincanActProfileModelImpl = (LFTincanActProfileModelImpl) lfTincanActProfile;
Session session = null;
try {
session = openSession();
if (lfTincanActProfile.isNew()) {
session.save(lfTincanActProfile);
lfTincanActProfile.setNew(false);
} else {
session.merge(lfTincanActProfile);
}
} catch (Exception e) {
throw processException(e);
} finally {
closeSession(session);
}
FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
if (isNew || !LFTincanActProfileModelImpl.COLUMN_BITMASK_ENABLED) {
FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
}
else {
if ((lfTincanActProfileModelImpl.getColumnBitmask() &
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYID.getColumnBitmask()) != 0) {
Object[] args = new Object[] {
lfTincanActProfileModelImpl.getOriginalActivityId()
};
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIVITYID,
args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYID,
args);
args = new Object[] { lfTincanActProfileModelImpl.getActivityId() };
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIVITYID,
args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYID,
args);