001    /**
002     * Copyright (c) 2000-present 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.calendar.model.impl;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portlet.calendar.model.CalEvent;
020    import com.liferay.portlet.calendar.service.CalEventLocalServiceUtil;
021    
022    /**
023     * The extended model base implementation for the CalEvent service. Represents a row in the "CalEvent" 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 CalEventImpl}.
027     * </p>
028     *
029     * @author Brian Wing Shun Chan
030     * @see CalEventImpl
031     * @see CalEvent
032     * @deprecated As of 7.0.0, with no direct replacement
033     * @generated
034     */
035    @Deprecated
036    @ProviderType
037    public abstract class CalEventBaseImpl extends CalEventModelImpl
038            implements CalEvent {
039            /*
040             * NOTE FOR DEVELOPERS:
041             *
042             * Never modify or reference this class directly. All methods that expect a cal event model instance should use the {@link CalEvent} interface instead.
043             */
044            @Override
045            public void persist() {
046                    if (this.isNew()) {
047                            CalEventLocalServiceUtil.addCalEvent(this);
048                    }
049                    else {
050                            CalEventLocalServiceUtil.updateCalEvent(this);
051                    }
052            }
053    }