package br.mp.mprj.portal.portlet.gestaomensagens.service.model.impl;

import br.mp.mprj.portal.portlet.gestaomensagens.service.model.GrupoDestinatario;
import br.mp.mprj.portal.portlet.gestaomensagens.service.service.GrupoDestinatarioLocalServiceUtil;

import com.liferay.portal.kernel.exception.SystemException;

/**
 * The extended model base implementation for the GrupoDestinatario service. Represents a row in the &quot;PRT_GESTMSG_GRP_DESTINATARIO&quot; database table, with each column mapped to a property of this class.
 *
 * <p>
 * This class exists only as a container for the default extended model level methods generated by ServiceBuilder. Helper methods and all application logic should be put in {@link GrupoDestinatarioImpl}.
 * </p>
 *
 * @author Henrique Simoes
 * @see GrupoDestinatarioImpl
 * @see br.mp.mprj.portal.portlet.gestaomensagens.service.model.GrupoDestinatario
 * @generated
 */
public abstract class GrupoDestinatarioBaseImpl
    extends GrupoDestinatarioModelImpl implements GrupoDestinatario {
    /*
     * NOTE FOR DEVELOPERS:
     *
     * Never modify or reference this class directly. All methods that expect a grupo destinatario model instance should use the {@link GrupoDestinatario} interface instead.
     */
    @Override
    public void persist() throws SystemException {
        if (this.isNew()) {
            GrupoDestinatarioLocalServiceUtil.addGrupoDestinatario(this);
        } else {
            GrupoDestinatarioLocalServiceUtil.updateGrupoDestinatario(this);
        }
    }
}
