All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.document.library.sync.model.DLSyncEventWrapper Maven / Gradle / Ivy

There is a newer version: 7.4.3.112-ga112
Show newest version
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.liferay.document.library.sync.model;

import aQute.bnd.annotation.ProviderType;

import com.liferay.expando.kernel.model.ExpandoBridge;
import com.liferay.portal.kernel.model.ModelWrapper;
import com.liferay.portal.kernel.service.ServiceContext;

import java.io.Serializable;

import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

/**
 * 

* This class is a wrapper for {@link DLSyncEvent}. *

* * @author Brian Wing Shun Chan * @see DLSyncEvent * @generated */ @ProviderType public class DLSyncEventWrapper implements DLSyncEvent, ModelWrapper { public DLSyncEventWrapper(DLSyncEvent dlSyncEvent) { _dlSyncEvent = dlSyncEvent; } @Override public Class getModelClass() { return DLSyncEvent.class; } @Override public String getModelClassName() { return DLSyncEvent.class.getName(); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("syncEventId", getSyncEventId()); attributes.put("companyId", getCompanyId()); attributes.put("modifiedTime", getModifiedTime()); attributes.put("event", getEvent()); attributes.put("type", getType()); attributes.put("typePK", getTypePK()); return attributes; } @Override public void setModelAttributes(Map attributes) { Long syncEventId = (Long)attributes.get("syncEventId"); if (syncEventId != null) { setSyncEventId(syncEventId); } Long companyId = (Long)attributes.get("companyId"); if (companyId != null) { setCompanyId(companyId); } Long modifiedTime = (Long)attributes.get("modifiedTime"); if (modifiedTime != null) { setModifiedTime(modifiedTime); } String event = (String)attributes.get("event"); if (event != null) { setEvent(event); } String type = (String)attributes.get("type"); if (type != null) { setType(type); } Long typePK = (Long)attributes.get("typePK"); if (typePK != null) { setTypePK(typePK); } } @Override public Object clone() { return new DLSyncEventWrapper((DLSyncEvent)_dlSyncEvent.clone()); } @Override public int compareTo(DLSyncEvent dlSyncEvent) { return _dlSyncEvent.compareTo(dlSyncEvent); } /** * Returns the company ID of this dl sync event. * * @return the company ID of this dl sync event */ @Override public long getCompanyId() { return _dlSyncEvent.getCompanyId(); } /** * Returns the event of this dl sync event. * * @return the event of this dl sync event */ @Override public String getEvent() { return _dlSyncEvent.getEvent(); } @Override public ExpandoBridge getExpandoBridge() { return _dlSyncEvent.getExpandoBridge(); } /** * Returns the modified time of this dl sync event. * * @return the modified time of this dl sync event */ @Override public long getModifiedTime() { return _dlSyncEvent.getModifiedTime(); } /** * Returns the primary key of this dl sync event. * * @return the primary key of this dl sync event */ @Override public long getPrimaryKey() { return _dlSyncEvent.getPrimaryKey(); } @Override public Serializable getPrimaryKeyObj() { return _dlSyncEvent.getPrimaryKeyObj(); } /** * Returns the sync event ID of this dl sync event. * * @return the sync event ID of this dl sync event */ @Override public long getSyncEventId() { return _dlSyncEvent.getSyncEventId(); } /** * Returns the type of this dl sync event. * * @return the type of this dl sync event */ @Override public String getType() { return _dlSyncEvent.getType(); } /** * Returns the type pk of this dl sync event. * * @return the type pk of this dl sync event */ @Override public long getTypePK() { return _dlSyncEvent.getTypePK(); } @Override public int hashCode() { return _dlSyncEvent.hashCode(); } @Override public boolean isCachedModel() { return _dlSyncEvent.isCachedModel(); } @Override public boolean isEscapedModel() { return _dlSyncEvent.isEscapedModel(); } @Override public boolean isNew() { return _dlSyncEvent.isNew(); } @Override public void persist() { _dlSyncEvent.persist(); } @Override public void setCachedModel(boolean cachedModel) { _dlSyncEvent.setCachedModel(cachedModel); } /** * Sets the company ID of this dl sync event. * * @param companyId the company ID of this dl sync event */ @Override public void setCompanyId(long companyId) { _dlSyncEvent.setCompanyId(companyId); } /** * Sets the event of this dl sync event. * * @param event the event of this dl sync event */ @Override public void setEvent(String event) { _dlSyncEvent.setEvent(event); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.kernel.model.BaseModel baseModel) { _dlSyncEvent.setExpandoBridgeAttributes(baseModel); } @Override public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) { _dlSyncEvent.setExpandoBridgeAttributes(expandoBridge); } @Override public void setExpandoBridgeAttributes(ServiceContext serviceContext) { _dlSyncEvent.setExpandoBridgeAttributes(serviceContext); } /** * Sets the modified time of this dl sync event. * * @param modifiedTime the modified time of this dl sync event */ @Override public void setModifiedTime(long modifiedTime) { _dlSyncEvent.setModifiedTime(modifiedTime); } @Override public void setNew(boolean n) { _dlSyncEvent.setNew(n); } /** * Sets the primary key of this dl sync event. * * @param primaryKey the primary key of this dl sync event */ @Override public void setPrimaryKey(long primaryKey) { _dlSyncEvent.setPrimaryKey(primaryKey); } @Override public void setPrimaryKeyObj(Serializable primaryKeyObj) { _dlSyncEvent.setPrimaryKeyObj(primaryKeyObj); } /** * Sets the sync event ID of this dl sync event. * * @param syncEventId the sync event ID of this dl sync event */ @Override public void setSyncEventId(long syncEventId) { _dlSyncEvent.setSyncEventId(syncEventId); } /** * Sets the type of this dl sync event. * * @param type the type of this dl sync event */ @Override public void setType(String type) { _dlSyncEvent.setType(type); } /** * Sets the type pk of this dl sync event. * * @param typePK the type pk of this dl sync event */ @Override public void setTypePK(long typePK) { _dlSyncEvent.setTypePK(typePK); } @Override public com.liferay.portal.kernel.model.CacheModel toCacheModel() { return _dlSyncEvent.toCacheModel(); } @Override public DLSyncEvent toEscapedModel() { return new DLSyncEventWrapper(_dlSyncEvent.toEscapedModel()); } @Override public String toString() { return _dlSyncEvent.toString(); } @Override public DLSyncEvent toUnescapedModel() { return new DLSyncEventWrapper(_dlSyncEvent.toUnescapedModel()); } @Override public String toXmlString() { return _dlSyncEvent.toXmlString(); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof DLSyncEventWrapper)) { return false; } DLSyncEventWrapper dlSyncEventWrapper = (DLSyncEventWrapper)obj; if (Objects.equals(_dlSyncEvent, dlSyncEventWrapper._dlSyncEvent)) { return true; } return false; } @Override public DLSyncEvent getWrappedModel() { return _dlSyncEvent; } @Override public boolean isEntityCacheEnabled() { return _dlSyncEvent.isEntityCacheEnabled(); } @Override public boolean isFinderCacheEnabled() { return _dlSyncEvent.isFinderCacheEnabled(); } @Override public void resetOriginalValues() { _dlSyncEvent.resetOriginalValues(); } private final DLSyncEvent _dlSyncEvent; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy