/** * Deletes the centro from the database. Also notifies the appropriate model listeners. * * @param centro the centro * @return the centro that was removed * @throws SystemException if a system exception occurred */ @Indexable(type = IndexableType.DELETE) @Override public Centro deleteCentro(Centro centro) throws SystemException { return centroPersistence.remove(centro); }
/** * Deletes the centro with the primary key from the database. Also notifies the appropriate model * listeners. * * @param id_centro the primary key of the centro * @return the centro that was removed * @throws PortalException if a centro with the primary key could not be found * @throws SystemException if a system exception occurred */ @Indexable(type = IndexableType.DELETE) @Override public Centro deleteCentro(long id_centro) throws PortalException, SystemException { return centroPersistence.remove(id_centro); }