@Override protected Ticket removeImpl(Ticket ticket) throws SystemException { ticket = toUnwrappedModel(ticket); Session session = null; try { session = openSession(); BatchSessionUtil.delete(session, ticket); } catch (Exception e) { throw processException(e); } finally { closeSession(session); } FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST); TicketModelImpl ticketModelImpl = (TicketModelImpl) ticket; FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_KEY, new Object[] {ticketModelImpl.getKey()}); EntityCacheUtil.removeResult( TicketModelImpl.ENTITY_CACHE_ENABLED, TicketImpl.class, ticket.getPrimaryKey()); return ticket; }
@Override protected LayoutSet removeImpl(LayoutSet layoutSet) throws SystemException { layoutSet = toUnwrappedModel(layoutSet); Session session = null; try { session = openSession(); BatchSessionUtil.delete(session, layoutSet); } catch (Exception e) { throw processException(e); } finally { closeSession(session); } FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST); LayoutSetModelImpl layoutSetModelImpl = (LayoutSetModelImpl) layoutSet; FinderCacheUtil.removeResult( FINDER_PATH_FETCH_BY_G_P, new Object[] { Long.valueOf(layoutSetModelImpl.getGroupId()), Boolean.valueOf(layoutSetModelImpl.getPrivateLayout()) }); EntityCacheUtil.removeResult( LayoutSetModelImpl.ENTITY_CACHE_ENABLED, LayoutSetImpl.class, layoutSet.getPrimaryKey()); return layoutSet; }
@Override protected ClassName removeImpl(ClassName className) throws SystemException { className = toUnwrappedModel(className); Session session = null; try { session = openSession(); BatchSessionUtil.delete(session, className); } catch (Exception e) { throw processException(e); } finally { closeSession(session); } clearCache(className); return className; }
@Override protected WebDAVProps removeImpl(WebDAVProps webDAVProps) throws SystemException { webDAVProps = toUnwrappedModel(webDAVProps); Session session = null; try { session = openSession(); BatchSessionUtil.delete(session, webDAVProps); } catch (Exception e) { throw processException(e); } finally { closeSession(session); } clearCache(webDAVProps); return webDAVProps; }
@Override protected Ticket removeImpl(Ticket ticket) throws SystemException { ticket = toUnwrappedModel(ticket); Session session = null; try { session = openSession(); BatchSessionUtil.delete(session, ticket); } catch (Exception e) { throw processException(e); } finally { closeSession(session); } clearCache(ticket); return ticket; }