throws SystemException {
lfPlayerScopeRule = toUnwrappedModel(lfPlayerScopeRule);
boolean isNew = lfPlayerScopeRule.isNew();
LFPlayerScopeRuleModelImpl lfPlayerScopeRuleModelImpl = (LFPlayerScopeRuleModelImpl) lfPlayerScopeRule;
Session session = null;
try {
session = openSession();
if (lfPlayerScopeRule.isNew()) {
session.save(lfPlayerScopeRule);
lfPlayerScopeRule.setNew(false);
} else {
session.merge(lfPlayerScopeRule);
}
} catch (Exception e) {
throw processException(e);
} finally {
closeSession(session);
}
FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
if (isNew || !LFPlayerScopeRuleModelImpl.COLUMN_BITMASK_ENABLED) {
FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
}
else {
if ((lfPlayerScopeRuleModelImpl.getColumnBitmask() &
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PLAYERID.getColumnBitmask()) != 0) {
Object[] args = new Object[] {
lfPlayerScopeRuleModelImpl.getOriginalPlayerID()
};
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_PLAYERID, args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PLAYERID,
args);
args = new Object[] { lfPlayerScopeRuleModelImpl.getPlayerID() };
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_PLAYERID, args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PLAYERID,
args);
}