throws SystemException {
lfTincanActor = toUnwrappedModel(lfTincanActor);
boolean isNew = lfTincanActor.isNew();
LFTincanActorModelImpl lfTincanActorModelImpl = (LFTincanActorModelImpl) lfTincanActor;
Session session = null;
try {
session = openSession();
if (lfTincanActor.isNew()) {
session.save(lfTincanActor);
lfTincanActor.setNew(false);
} else {
session.merge(lfTincanActor);
}
} catch (Exception e) {
throw processException(e);
} finally {
closeSession(session);
}
FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
if (isNew || !LFTincanActorModelImpl.COLUMN_BITMASK_ENABLED) {
FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
}
else {
if ((lfTincanActorModelImpl.getColumnBitmask() &
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_MEMBEROF.getColumnBitmask()) != 0) {
Object[] args = new Object[] {
lfTincanActorModelImpl.getOriginalMemberOf()
};
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_MEMBEROF, args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_MEMBEROF,
args);
args = new Object[] { lfTincanActorModelImpl.getMemberOf() };
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_MEMBEROF, args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_MEMBEROF,
args);
}
if ((lfTincanActorModelImpl.getColumnBitmask() &
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_AGENT.getColumnBitmask()) != 0) {
Object[] args = new Object[] {
lfTincanActorModelImpl.getOriginalObjectType(),
lfTincanActorModelImpl.getOriginalMbox(),
lfTincanActorModelImpl.getOriginalMbox_sha1sum(),
lfTincanActorModelImpl.getOriginalOpenid(),
lfTincanActorModelImpl.getOriginalAccount()
};
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_AGENT, args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_AGENT,
args);
args = new Object[] {
lfTincanActorModelImpl.getObjectType(),
lfTincanActorModelImpl.getMbox(),
lfTincanActorModelImpl.getMbox_sha1sum(),
lfTincanActorModelImpl.getOpenid(),
lfTincanActorModelImpl.getAccount()
};
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_AGENT, args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_AGENT,
args);