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