throws SystemException {
lfObjective = toUnwrappedModel(lfObjective);
boolean isNew = lfObjective.isNew();
LFObjectiveModelImpl lfObjectiveModelImpl = (LFObjectiveModelImpl) lfObjective;
Session session = null;
try {
session = openSession();
if (lfObjective.isNew()) {
session.save(lfObjective);
lfObjective.setNew(false);
} else {
session.merge(lfObjective);
}
} catch (Exception e) {
throw processException(e);
} finally {
closeSession(session);
}
FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
if (isNew || !LFObjectiveModelImpl.COLUMN_BITMASK_ENABLED) {
FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
}
else {
if ((lfObjectiveModelImpl.getColumnBitmask() &
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_SEQUENCINGIDANDISPRIMARY.getColumnBitmask()) != 0) {
Object[] args = new Object[] {
lfObjectiveModelImpl.getOriginalSequencingID(),
lfObjectiveModelImpl.getOriginalIsPrimary()
};
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_SEQUENCINGIDANDISPRIMARY,
args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_SEQUENCINGIDANDISPRIMARY,
args);
args = new Object[] {
lfObjectiveModelImpl.getSequencingID(),
lfObjectiveModelImpl.getIsPrimary()
};
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_SEQUENCINGIDANDISPRIMARY,
args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_SEQUENCINGIDANDISPRIMARY,
args);
}
if ((lfObjectiveModelImpl.getColumnBitmask() &
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_SEQUENCINGIDISPRIMARYIDENTIFIER.getColumnBitmask()) != 0) {
Object[] args = new Object[] {
lfObjectiveModelImpl.getOriginalSequencingID(),
lfObjectiveModelImpl.getOriginalIsPrimary(),
lfObjectiveModelImpl.getOriginalIdentifier()
};
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_SEQUENCINGIDISPRIMARYIDENTIFIER,
args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_SEQUENCINGIDISPRIMARYIDENTIFIER,
args);
args = new Object[] {
lfObjectiveModelImpl.getSequencingID(),
lfObjectiveModelImpl.getIsPrimary(),
lfObjectiveModelImpl.getIdentifier()
};
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_SEQUENCINGIDISPRIMARYIDENTIFIER,
args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_SEQUENCINGIDISPRIMARYIDENTIFIER,