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.portal.model.impl; 016 017 import com.liferay.portal.kernel.exception.SystemException; 018 import com.liferay.portal.model.Group; 019 import com.liferay.portal.service.GroupLocalServiceUtil; 020 021 /** 022 * The extended model base implementation for the Group service. Represents a row in the "Group_" database table, with each column mapped to a property of this class. 023 * 024 * <p> 025 * 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 GroupImpl}. 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see GroupImpl 030 * @see com.liferay.portal.model.Group 031 * @generated 032 */ 033 public abstract class GroupBaseImpl extends GroupModelImpl implements Group { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this class directly. All methods that expect a group model instance should use the {@link Group} interface instead. 038 */ 039 public void persist() throws SystemException { 040 if (this.isNew()) { 041 GroupLocalServiceUtil.addGroup(this); 042 } 043 else { 044 GroupLocalServiceUtil.updateGroup(this); 045 } 046 } 047 }