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

import br.mp.mprj.portal.portlet.gestaomensagens.service.model.Template;
import br.mp.mprj.portal.portlet.gestaomensagens.service.service.TemplateLocalServiceUtil;

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

/**
 * The extended model base implementation for the Template service. Represents a row in the &quot;PRT_GESTMSG_TEMPLATE&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 TemplateImpl}.
 * </p>
 *
 * @author Henrique Simoes
 * @see TemplateImpl
 * @see br.mp.mprj.portal.portlet.gestaomensagens.service.model.Template
 * @generated
 */
public abstract class TemplateBaseImpl extends TemplateModelImpl
    implements Template {
    /*
     * NOTE FOR DEVELOPERS:
     *
     * Never modify or reference this class directly. All methods that expect a template model instance should use the {@link Template} interface instead.
     */
    @Override
    public void persist() throws SystemException {
        if (this.isNew()) {
            TemplateLocalServiceUtil.addTemplate(this);
        } else {
            TemplateLocalServiceUtil.updateTemplate(this);
        }
    }
}
