throws SystemException {
lfTincanLrsStatement = toUnwrappedModel(lfTincanLrsStatement);
boolean isNew = lfTincanLrsStatement.isNew();
LFTincanLrsStatementModelImpl lfTincanLrsStatementModelImpl = (LFTincanLrsStatementModelImpl) lfTincanLrsStatement;
Session session = null;
try {
session = openSession();
if (lfTincanLrsStatement.isNew()) {
session.save(lfTincanLrsStatement);
lfTincanLrsStatement.setNew(false);
} else {
session.merge(lfTincanLrsStatement);
}
} catch (Exception e) {
throw processException(e);
} finally {
closeSession(session);
}
FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
if (isNew || !LFTincanLrsStatementModelImpl.COLUMN_BITMASK_ENABLED) {
FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
}
else {
if ((lfTincanLrsStatementModelImpl.getColumnBitmask() &
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_OBJTYPEANDOBJID.getColumnBitmask()) != 0) {
Object[] args = new Object[] {
lfTincanLrsStatementModelImpl.getOriginalObjType(),
lfTincanLrsStatementModelImpl.getOriginalObjID()
};
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OBJTYPEANDOBJID,
args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_OBJTYPEANDOBJID,
args);
args = new Object[] {
lfTincanLrsStatementModelImpl.getObjType(),
lfTincanLrsStatementModelImpl.getObjID()
};
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OBJTYPEANDOBJID,
args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_OBJTYPEANDOBJID,
args);
}
if ((lfTincanLrsStatementModelImpl.getColumnBitmask() &
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTORID.getColumnBitmask()) != 0) {
Object[] args = new Object[] {
lfTincanLrsStatementModelImpl.getOriginalActorID()
};
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTORID, args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTORID,
args);
args = new Object[] { lfTincanLrsStatementModelImpl.getActorID() };
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTORID, args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTORID,
args);
}
if ((lfTincanLrsStatementModelImpl.getColumnBitmask() &
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VERBID.getColumnBitmask()) != 0) {
Object[] args = new Object[] {
lfTincanLrsStatementModelImpl.getOriginalVerbID()
};
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_VERBID, args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VERBID,
args);
args = new Object[] { lfTincanLrsStatementModelImpl.getVerbID() };
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_VERBID, args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VERBID,
args);
}