throws SystemException {
lfCertificateActivity = toUnwrappedModel(lfCertificateActivity);
boolean isNew = lfCertificateActivity.isNew();
LFCertificateActivityModelImpl lfCertificateActivityModelImpl = (LFCertificateActivityModelImpl) lfCertificateActivity;
Session session = null;
try {
session = openSession();
if (lfCertificateActivity.isNew()) {
session.save(lfCertificateActivity);
lfCertificateActivity.setNew(false);
} else {
session.merge(lfCertificateActivity);
}
} catch (Exception e) {
throw processException(e);
} finally {
closeSession(session);
}
FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
if (isNew || !LFCertificateActivityModelImpl.COLUMN_BITMASK_ENABLED) {
FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
}
else {
if ((lfCertificateActivityModelImpl.getColumnBitmask() &
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CERTIFICATEID.getColumnBitmask()) != 0) {
Object[] args = new Object[] {
lfCertificateActivityModelImpl.getOriginalCertificateID()
};
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_CERTIFICATEID,
args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CERTIFICATEID,
args);
args = new Object[] {
lfCertificateActivityModelImpl.getCertificateID()
};
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_CERTIFICATEID,
args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CERTIFICATEID,
args);
}
if ((lfCertificateActivityModelImpl.getColumnBitmask() &
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYNAME.getColumnBitmask()) != 0) {
Object[] args = new Object[] {
lfCertificateActivityModelImpl.getOriginalActivityName()
};
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIVITYNAME,
args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYNAME,
args);
args = new Object[] {
lfCertificateActivityModelImpl.getActivityName()
};
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIVITYNAME,
args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYNAME,