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

com.liferay.object.model.ObjectFieldWrapper Maven / Gradle / Ivy

There is a newer version: 93.0.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.object.model;

import com.liferay.exportimport.kernel.lar.StagedModelType;
import com.liferay.portal.kernel.model.ModelWrapper;
import com.liferay.portal.kernel.model.wrapper.BaseModelWrapper;

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

/**
 * 

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

* * @author Marco Leo * @see ObjectField * @generated */ public class ObjectFieldWrapper extends BaseModelWrapper implements ModelWrapper, ObjectField { public ObjectFieldWrapper(ObjectField objectField) { super(objectField); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("mvccVersion", getMvccVersion()); attributes.put("uuid", getUuid()); attributes.put("externalReferenceCode", getExternalReferenceCode()); attributes.put("objectFieldId", getObjectFieldId()); attributes.put("companyId", getCompanyId()); attributes.put("userId", getUserId()); attributes.put("userName", getUserName()); attributes.put("createDate", getCreateDate()); attributes.put("modifiedDate", getModifiedDate()); attributes.put("listTypeDefinitionId", getListTypeDefinitionId()); attributes.put("objectDefinitionId", getObjectDefinitionId()); attributes.put("businessType", getBusinessType()); attributes.put("dbColumnName", getDBColumnName()); attributes.put("dbTableName", getDBTableName()); attributes.put("dbType", getDBType()); attributes.put("indexed", isIndexed()); attributes.put("indexedAsKeyword", isIndexedAsKeyword()); attributes.put("indexedLanguageId", getIndexedLanguageId()); attributes.put("label", getLabel()); attributes.put("localized", isLocalized()); attributes.put("name", getName()); attributes.put("readOnly", getReadOnly()); attributes.put( "readOnlyConditionExpression", getReadOnlyConditionExpression()); attributes.put("relationshipType", getRelationshipType()); attributes.put("required", isRequired()); attributes.put("state", isState()); attributes.put("system", isSystem()); return attributes; } @Override public void setModelAttributes(Map attributes) { Long mvccVersion = (Long)attributes.get("mvccVersion"); if (mvccVersion != null) { setMvccVersion(mvccVersion); } String uuid = (String)attributes.get("uuid"); if (uuid != null) { setUuid(uuid); } String externalReferenceCode = (String)attributes.get( "externalReferenceCode"); if (externalReferenceCode != null) { setExternalReferenceCode(externalReferenceCode); } Long objectFieldId = (Long)attributes.get("objectFieldId"); if (objectFieldId != null) { setObjectFieldId(objectFieldId); } Long companyId = (Long)attributes.get("companyId"); if (companyId != null) { setCompanyId(companyId); } Long userId = (Long)attributes.get("userId"); if (userId != null) { setUserId(userId); } String userName = (String)attributes.get("userName"); if (userName != null) { setUserName(userName); } Date createDate = (Date)attributes.get("createDate"); if (createDate != null) { setCreateDate(createDate); } Date modifiedDate = (Date)attributes.get("modifiedDate"); if (modifiedDate != null) { setModifiedDate(modifiedDate); } Long listTypeDefinitionId = (Long)attributes.get( "listTypeDefinitionId"); if (listTypeDefinitionId != null) { setListTypeDefinitionId(listTypeDefinitionId); } Long objectDefinitionId = (Long)attributes.get("objectDefinitionId"); if (objectDefinitionId != null) { setObjectDefinitionId(objectDefinitionId); } String businessType = (String)attributes.get("businessType"); if (businessType != null) { setBusinessType(businessType); } String dbColumnName = (String)attributes.get("dbColumnName"); if (dbColumnName != null) { setDBColumnName(dbColumnName); } String dbTableName = (String)attributes.get("dbTableName"); if (dbTableName != null) { setDBTableName(dbTableName); } String dbType = (String)attributes.get("dbType"); if (dbType != null) { setDBType(dbType); } Boolean indexed = (Boolean)attributes.get("indexed"); if (indexed != null) { setIndexed(indexed); } Boolean indexedAsKeyword = (Boolean)attributes.get("indexedAsKeyword"); if (indexedAsKeyword != null) { setIndexedAsKeyword(indexedAsKeyword); } String indexedLanguageId = (String)attributes.get("indexedLanguageId"); if (indexedLanguageId != null) { setIndexedLanguageId(indexedLanguageId); } String label = (String)attributes.get("label"); if (label != null) { setLabel(label); } Boolean localized = (Boolean)attributes.get("localized"); if (localized != null) { setLocalized(localized); } String name = (String)attributes.get("name"); if (name != null) { setName(name); } String readOnly = (String)attributes.get("readOnly"); if (readOnly != null) { setReadOnly(readOnly); } String readOnlyConditionExpression = (String)attributes.get( "readOnlyConditionExpression"); if (readOnlyConditionExpression != null) { setReadOnlyConditionExpression(readOnlyConditionExpression); } String relationshipType = (String)attributes.get("relationshipType"); if (relationshipType != null) { setRelationshipType(relationshipType); } Boolean required = (Boolean)attributes.get("required"); if (required != null) { setRequired(required); } Boolean state = (Boolean)attributes.get("state"); if (state != null) { setState(state); } Boolean system = (Boolean)attributes.get("system"); if (system != null) { setSystem(system); } } @Override public ObjectField cloneWithOriginalValues() { return wrap(model.cloneWithOriginalValues()); } @Override public boolean compareBusinessType(String businessType) { return model.compareBusinessType(businessType); } @Override public String[] getAvailableLanguageIds() { return model.getAvailableLanguageIds(); } /** * Returns the business type of this object field. * * @return the business type of this object field */ @Override public String getBusinessType() { return model.getBusinessType(); } /** * Returns the company ID of this object field. * * @return the company ID of this object field */ @Override public long getCompanyId() { return model.getCompanyId(); } /** * Returns the create date of this object field. * * @return the create date of this object field */ @Override public Date getCreateDate() { return model.getCreateDate(); } /** * Returns the db column name of this object field. * * @return the db column name of this object field */ @Override public String getDBColumnName() { return model.getDBColumnName(); } /** * Returns the db table name of this object field. * * @return the db table name of this object field */ @Override public String getDBTableName() { return model.getDBTableName(); } /** * Returns the db type of this object field. * * @return the db type of this object field */ @Override public String getDBType() { return model.getDBType(); } @Override public String getDefaultLanguageId() { return model.getDefaultLanguageId(); } /** * Returns the external reference code of this object field. * * @return the external reference code of this object field */ @Override public String getExternalReferenceCode() { return model.getExternalReferenceCode(); } @Override public String getI18nObjectFieldName() { return model.getI18nObjectFieldName(); } /** * Returns the indexed of this object field. * * @return the indexed of this object field */ @Override public boolean getIndexed() { return model.getIndexed(); } /** * Returns the indexed as keyword of this object field. * * @return the indexed as keyword of this object field */ @Override public boolean getIndexedAsKeyword() { return model.getIndexedAsKeyword(); } /** * Returns the indexed language ID of this object field. * * @return the indexed language ID of this object field */ @Override public String getIndexedLanguageId() { return model.getIndexedLanguageId(); } /** * Returns the label of this object field. * * @return the label of this object field */ @Override public String getLabel() { return model.getLabel(); } /** * Returns the localized label of this object field in the language. Uses the default language if no localization exists for the requested language. * * @param locale the locale of the language * @return the localized label of this object field */ @Override public String getLabel(java.util.Locale locale) { return model.getLabel(locale); } /** * Returns the localized label of this object field in the language, optionally using the default language if no localization exists for the requested language. * * @param locale the local of the language * @param useDefault whether to use the default language if no localization exists for the requested language * @return the localized label of this object field. If useDefault is false and no localization exists for the requested language, an empty string will be returned. */ @Override public String getLabel(java.util.Locale locale, boolean useDefault) { return model.getLabel(locale, useDefault); } /** * Returns the localized label of this object field in the language. Uses the default language if no localization exists for the requested language. * * @param languageId the ID of the language * @return the localized label of this object field */ @Override public String getLabel(String languageId) { return model.getLabel(languageId); } /** * Returns the localized label of this object field in the language, optionally using the default language if no localization exists for the requested language. * * @param languageId the ID of the language * @param useDefault whether to use the default language if no localization exists for the requested language * @return the localized label of this object field */ @Override public String getLabel(String languageId, boolean useDefault) { return model.getLabel(languageId, useDefault); } @Override public String getLabelCurrentLanguageId() { return model.getLabelCurrentLanguageId(); } @Override public String getLabelCurrentValue() { return model.getLabelCurrentValue(); } /** * Returns a map of the locales and localized labels of this object field. * * @return the locales and localized labels of this object field */ @Override public Map getLabelMap() { return model.getLabelMap(); } /** * Returns the list type definition ID of this object field. * * @return the list type definition ID of this object field */ @Override public long getListTypeDefinitionId() { return model.getListTypeDefinitionId(); } /** * Returns the localized of this object field. * * @return the localized of this object field */ @Override public boolean getLocalized() { return model.getLocalized(); } /** * Returns the modified date of this object field. * * @return the modified date of this object field */ @Override public Date getModifiedDate() { return model.getModifiedDate(); } /** * Returns the mvcc version of this object field. * * @return the mvcc version of this object field */ @Override public long getMvccVersion() { return model.getMvccVersion(); } /** * Returns the name of this object field. * * @return the name of this object field */ @Override public String getName() { return model.getName(); } @Override public ObjectDefinition getObjectDefinition() throws com.liferay.portal.kernel.exception.PortalException { return model.getObjectDefinition(); } /** * Returns the object definition ID of this object field. * * @return the object definition ID of this object field */ @Override public long getObjectDefinitionId() { return model.getObjectDefinitionId(); } /** * Returns the object field ID of this object field. * * @return the object field ID of this object field */ @Override public long getObjectFieldId() { return model.getObjectFieldId(); } @Override public java.util.List getObjectFieldSettings() { return model.getObjectFieldSettings(); } /** * Returns the primary key of this object field. * * @return the primary key of this object field */ @Override public long getPrimaryKey() { return model.getPrimaryKey(); } /** * Returns the read only of this object field. * * @return the read only of this object field */ @Override public String getReadOnly() { return model.getReadOnly(); } /** * Returns the read only condition expression of this object field. * * @return the read only condition expression of this object field */ @Override public String getReadOnlyConditionExpression() { return model.getReadOnlyConditionExpression(); } /** * Returns the relationship type of this object field. * * @return the relationship type of this object field */ @Override public String getRelationshipType() { return model.getRelationshipType(); } /** * Returns the required of this object field. * * @return the required of this object field */ @Override public boolean getRequired() { return model.getRequired(); } @Override public String getSortableDBColumnName() { return model.getSortableDBColumnName(); } /** * Returns the state of this object field. * * @return the state of this object field */ @Override public boolean getState() { return model.getState(); } /** * Returns the system of this object field. * * @return the system of this object field */ @Override public boolean getSystem() { return model.getSystem(); } /** * Returns the user ID of this object field. * * @return the user ID of this object field */ @Override public long getUserId() { return model.getUserId(); } /** * Returns the user name of this object field. * * @return the user name of this object field */ @Override public String getUserName() { return model.getUserName(); } /** * Returns the user uuid of this object field. * * @return the user uuid of this object field */ @Override public String getUserUuid() { return model.getUserUuid(); } /** * Returns the uuid of this object field. * * @return the uuid of this object field */ @Override public String getUuid() { return model.getUuid(); } @Override public boolean hasInsertValues() { return model.hasInsertValues(); } @Override public boolean hasUniqueValues() { return model.hasUniqueValues(); } @Override public boolean hasUpdateValues() { return model.hasUpdateValues(); } @Override public boolean isDeletionAllowed() throws com.liferay.portal.kernel.exception.PortalException { return model.isDeletionAllowed(); } /** * Returns true if this object field is indexed. * * @return true if this object field is indexed; false otherwise */ @Override public boolean isIndexed() { return model.isIndexed(); } /** * Returns true if this object field is indexed as keyword. * * @return true if this object field is indexed as keyword; false otherwise */ @Override public boolean isIndexedAsKeyword() { return model.isIndexedAsKeyword(); } /** * Returns true if this object field is localized. * * @return true if this object field is localized; false otherwise */ @Override public boolean isLocalized() { return model.isLocalized(); } @Override public boolean isMetadata() { return model.isMetadata(); } /** * Returns true if this object field is required. * * @return true if this object field is required; false otherwise */ @Override public boolean isRequired() { return model.isRequired(); } /** * Returns true if this object field is state. * * @return true if this object field is state; false otherwise */ @Override public boolean isState() { return model.isState(); } /** * Returns true if this object field is system. * * @return true if this object field is system; false otherwise */ @Override public boolean isSystem() { return model.isSystem(); } @Override public void persist() { model.persist(); } @Override public void prepareLocalizedFieldsForImport() throws com.liferay.portal.kernel.exception.LocaleException { model.prepareLocalizedFieldsForImport(); } @Override public void prepareLocalizedFieldsForImport( java.util.Locale defaultImportLocale) throws com.liferay.portal.kernel.exception.LocaleException { model.prepareLocalizedFieldsForImport(defaultImportLocale); } /** * Sets the business type of this object field. * * @param businessType the business type of this object field */ @Override public void setBusinessType(String businessType) { model.setBusinessType(businessType); } /** * Sets the company ID of this object field. * * @param companyId the company ID of this object field */ @Override public void setCompanyId(long companyId) { model.setCompanyId(companyId); } /** * Sets the create date of this object field. * * @param createDate the create date of this object field */ @Override public void setCreateDate(Date createDate) { model.setCreateDate(createDate); } /** * Sets the db column name of this object field. * * @param dbColumnName the db column name of this object field */ @Override public void setDBColumnName(String dbColumnName) { model.setDBColumnName(dbColumnName); } /** * Sets the db table name of this object field. * * @param dbTableName the db table name of this object field */ @Override public void setDBTableName(String dbTableName) { model.setDBTableName(dbTableName); } /** * Sets the db type of this object field. * * @param dbType the db type of this object field */ @Override public void setDBType(String dbType) { model.setDBType(dbType); } /** * Sets the external reference code of this object field. * * @param externalReferenceCode the external reference code of this object field */ @Override public void setExternalReferenceCode(String externalReferenceCode) { model.setExternalReferenceCode(externalReferenceCode); } /** * Sets whether this object field is indexed. * * @param indexed the indexed of this object field */ @Override public void setIndexed(boolean indexed) { model.setIndexed(indexed); } /** * Sets whether this object field is indexed as keyword. * * @param indexedAsKeyword the indexed as keyword of this object field */ @Override public void setIndexedAsKeyword(boolean indexedAsKeyword) { model.setIndexedAsKeyword(indexedAsKeyword); } /** * Sets the indexed language ID of this object field. * * @param indexedLanguageId the indexed language ID of this object field */ @Override public void setIndexedLanguageId(String indexedLanguageId) { model.setIndexedLanguageId(indexedLanguageId); } /** * Sets the label of this object field. * * @param label the label of this object field */ @Override public void setLabel(String label) { model.setLabel(label); } /** * Sets the localized label of this object field in the language. * * @param label the localized label of this object field * @param locale the locale of the language */ @Override public void setLabel(String label, java.util.Locale locale) { model.setLabel(label, locale); } /** * Sets the localized label of this object field in the language, and sets the default locale. * * @param label the localized label of this object field * @param locale the locale of the language * @param defaultLocale the default locale */ @Override public void setLabel( String label, java.util.Locale locale, java.util.Locale defaultLocale) { model.setLabel(label, locale, defaultLocale); } @Override public void setLabelCurrentLanguageId(String languageId) { model.setLabelCurrentLanguageId(languageId); } /** * Sets the localized labels of this object field from the map of locales and localized labels. * * @param labelMap the locales and localized labels of this object field */ @Override public void setLabelMap(Map labelMap) { model.setLabelMap(labelMap); } /** * Sets the localized labels of this object field from the map of locales and localized labels, and sets the default locale. * * @param labelMap the locales and localized labels of this object field * @param defaultLocale the default locale */ @Override public void setLabelMap( Map labelMap, java.util.Locale defaultLocale) { model.setLabelMap(labelMap, defaultLocale); } /** * Sets the list type definition ID of this object field. * * @param listTypeDefinitionId the list type definition ID of this object field */ @Override public void setListTypeDefinitionId(long listTypeDefinitionId) { model.setListTypeDefinitionId(listTypeDefinitionId); } /** * Sets whether this object field is localized. * * @param localized the localized of this object field */ @Override public void setLocalized(boolean localized) { model.setLocalized(localized); } /** * Sets the modified date of this object field. * * @param modifiedDate the modified date of this object field */ @Override public void setModifiedDate(Date modifiedDate) { model.setModifiedDate(modifiedDate); } /** * Sets the mvcc version of this object field. * * @param mvccVersion the mvcc version of this object field */ @Override public void setMvccVersion(long mvccVersion) { model.setMvccVersion(mvccVersion); } /** * Sets the name of this object field. * * @param name the name of this object field */ @Override public void setName(String name) { model.setName(name); } /** * Sets the object definition ID of this object field. * * @param objectDefinitionId the object definition ID of this object field */ @Override public void setObjectDefinitionId(long objectDefinitionId) { model.setObjectDefinitionId(objectDefinitionId); } /** * Sets the object field ID of this object field. * * @param objectFieldId the object field ID of this object field */ @Override public void setObjectFieldId(long objectFieldId) { model.setObjectFieldId(objectFieldId); } @Override public void setObjectFieldSettings( java.util.List objectFieldSettings) { model.setObjectFieldSettings(objectFieldSettings); } /** * Sets the primary key of this object field. * * @param primaryKey the primary key of this object field */ @Override public void setPrimaryKey(long primaryKey) { model.setPrimaryKey(primaryKey); } /** * Sets the read only of this object field. * * @param readOnly the read only of this object field */ @Override public void setReadOnly(String readOnly) { model.setReadOnly(readOnly); } /** * Sets the read only condition expression of this object field. * * @param readOnlyConditionExpression the read only condition expression of this object field */ @Override public void setReadOnlyConditionExpression( String readOnlyConditionExpression) { model.setReadOnlyConditionExpression(readOnlyConditionExpression); } /** * Sets the relationship type of this object field. * * @param relationshipType the relationship type of this object field */ @Override public void setRelationshipType(String relationshipType) { model.setRelationshipType(relationshipType); } /** * Sets whether this object field is required. * * @param required the required of this object field */ @Override public void setRequired(boolean required) { model.setRequired(required); } /** * Sets whether this object field is state. * * @param state the state of this object field */ @Override public void setState(boolean state) { model.setState(state); } /** * Sets whether this object field is system. * * @param system the system of this object field */ @Override public void setSystem(boolean system) { model.setSystem(system); } /** * Sets the user ID of this object field. * * @param userId the user ID of this object field */ @Override public void setUserId(long userId) { model.setUserId(userId); } /** * Sets the user name of this object field. * * @param userName the user name of this object field */ @Override public void setUserName(String userName) { model.setUserName(userName); } /** * Sets the user uuid of this object field. * * @param userUuid the user uuid of this object field */ @Override public void setUserUuid(String userUuid) { model.setUserUuid(userUuid); } /** * Sets the uuid of this object field. * * @param uuid the uuid of this object field */ @Override public void setUuid(String uuid) { model.setUuid(uuid); } @Override public String toXmlString() { return model.toXmlString(); } @Override public StagedModelType getStagedModelType() { return model.getStagedModelType(); } @Override protected ObjectFieldWrapper wrap(ObjectField objectField) { return new ObjectFieldWrapper(objectField); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy