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

com.liferay.change.tracking.model.CTSchemaVersionWrapper Maven / Gradle / Ivy

There is a newer version: 24.3.0
Show newest version
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */

package com.liferay.change.tracking.model;

import com.liferay.portal.kernel.model.ModelWrapper;
import com.liferay.portal.kernel.model.wrapper.BaseModelWrapper;

import java.io.Serializable;

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

/**
 * 

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

* * @author Brian Wing Shun Chan * @see CTSchemaVersion * @generated */ public class CTSchemaVersionWrapper extends BaseModelWrapper implements CTSchemaVersion, ModelWrapper { public CTSchemaVersionWrapper(CTSchemaVersion ctSchemaVersion) { super(ctSchemaVersion); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("mvccVersion", getMvccVersion()); attributes.put("schemaVersionId", getSchemaVersionId()); attributes.put("companyId", getCompanyId()); attributes.put("schemaContext", getSchemaContext()); return attributes; } @Override public void setModelAttributes(Map attributes) { Long mvccVersion = (Long)attributes.get("mvccVersion"); if (mvccVersion != null) { setMvccVersion(mvccVersion); } Long schemaVersionId = (Long)attributes.get("schemaVersionId"); if (schemaVersionId != null) { setSchemaVersionId(schemaVersionId); } Long companyId = (Long)attributes.get("companyId"); if (companyId != null) { setCompanyId(companyId); } Map schemaContext = (Map)attributes.get("schemaContext"); if (schemaContext != null) { setSchemaContext(schemaContext); } } @Override public CTSchemaVersion cloneWithOriginalValues() { return wrap(model.cloneWithOriginalValues()); } /** * Returns the company ID of this ct schema version. * * @return the company ID of this ct schema version */ @Override public long getCompanyId() { return model.getCompanyId(); } /** * Returns the mvcc version of this ct schema version. * * @return the mvcc version of this ct schema version */ @Override public long getMvccVersion() { return model.getMvccVersion(); } /** * Returns the primary key of this ct schema version. * * @return the primary key of this ct schema version */ @Override public long getPrimaryKey() { return model.getPrimaryKey(); } /** * Returns the schema context of this ct schema version. * * @return the schema context of this ct schema version */ @Override public Map getSchemaContext() { return model.getSchemaContext(); } /** * Returns the schema version ID of this ct schema version. * * @return the schema version ID of this ct schema version */ @Override public long getSchemaVersionId() { return model.getSchemaVersionId(); } @Override public void persist() { model.persist(); } /** * Sets the company ID of this ct schema version. * * @param companyId the company ID of this ct schema version */ @Override public void setCompanyId(long companyId) { model.setCompanyId(companyId); } /** * Sets the mvcc version of this ct schema version. * * @param mvccVersion the mvcc version of this ct schema version */ @Override public void setMvccVersion(long mvccVersion) { model.setMvccVersion(mvccVersion); } /** * Sets the primary key of this ct schema version. * * @param primaryKey the primary key of this ct schema version */ @Override public void setPrimaryKey(long primaryKey) { model.setPrimaryKey(primaryKey); } /** * Sets the schema context of this ct schema version. * * @param schemaContext the schema context of this ct schema version */ @Override public void setSchemaContext(Map schemaContext) { model.setSchemaContext(schemaContext); } /** * Sets the schema version ID of this ct schema version. * * @param schemaVersionId the schema version ID of this ct schema version */ @Override public void setSchemaVersionId(long schemaVersionId) { model.setSchemaVersionId(schemaVersionId); } @Override public String toXmlString() { return model.toXmlString(); } @Override protected CTSchemaVersionWrapper wrap(CTSchemaVersion ctSchemaVersion) { return new CTSchemaVersionWrapper(ctSchemaVersion); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy