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