001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.dynamicdatamapping.model.impl; 016 017 import com.liferay.portal.kernel.exception.SystemException; 018 019 import com.liferay.portlet.dynamicdatamapping.model.DDMStructure; 020 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalServiceUtil; 021 022 /** 023 * The extended model base implementation for the DDMStructure service. Represents a row in the "DDMStructure" database table, with each column mapped to a property of this class. 024 * 025 * <p> 026 * 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 DDMStructureImpl}. 027 * </p> 028 * 029 * @author Brian Wing Shun Chan 030 * @see DDMStructureImpl 031 * @see com.liferay.portlet.dynamicdatamapping.model.DDMStructure 032 * @generated 033 */ 034 public abstract class DDMStructureBaseImpl extends DDMStructureModelImpl 035 implements DDMStructure { 036 /* 037 * NOTE FOR DEVELOPERS: 038 * 039 * Never modify or reference this class directly. All methods that expect a d d m structure model instance should use the {@link DDMStructure} interface instead. 040 */ 041 public void persist() throws SystemException { 042 if (this.isNew()) { 043 DDMStructureLocalServiceUtil.addDDMStructure(this); 044 } 045 else { 046 DDMStructureLocalServiceUtil.updateDDMStructure(this); 047 } 048 } 049 }