Class ObjectRelationshipWrapper

java.lang.Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<ObjectRelationship>
com.liferay.object.model.ObjectRelationshipWrapper
All Implemented Interfaces:
ObjectRelationship, ObjectRelationshipModel, com.liferay.portal.kernel.model.AuditedModel, com.liferay.portal.kernel.model.BaseModel<ObjectRelationship>, com.liferay.portal.kernel.model.ClassedModel, com.liferay.portal.kernel.model.ExternalReferenceCodeModel, com.liferay.portal.kernel.model.LocalizedModel, com.liferay.portal.kernel.model.ModelWrapper<ObjectRelationship>, com.liferay.portal.kernel.model.MVCCModel, com.liferay.portal.kernel.model.PersistedModel, com.liferay.portal.kernel.model.ShardedModel, com.liferay.portal.kernel.model.StagedAuditedModel, com.liferay.portal.kernel.model.StagedModel, Serializable, Cloneable, Comparable<ObjectRelationship>

public class ObjectRelationshipWrapper extends com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<ObjectRelationship> implements com.liferay.portal.kernel.model.ModelWrapper<ObjectRelationship>, ObjectRelationship

This class is a wrapper for ObjectRelationship.

See Also:
Generated:
  • Constructor Details

    • ObjectRelationshipWrapper

      public ObjectRelationshipWrapper(ObjectRelationship objectRelationship)
  • Method Details

    • getModelAttributes

      public Map<String,Object> getModelAttributes()
      Specified by:
      getModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<ObjectRelationship>
    • setModelAttributes

      public void setModelAttributes(Map<String,Object> attributes)
      Specified by:
      setModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<ObjectRelationship>
    • cloneWithOriginalValues

      public ObjectRelationship cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<ObjectRelationship>
      Specified by:
      cloneWithOriginalValues in interface ObjectRelationshipModel
    • compareType

      public boolean compareType(String type)
      Specified by:
      compareType in interface ObjectRelationship
    • getAvailableLanguageIds

      public String[] getAvailableLanguageIds()
      Specified by:
      getAvailableLanguageIds in interface com.liferay.portal.kernel.model.LocalizedModel
      Specified by:
      getAvailableLanguageIds in interface ObjectRelationshipModel
    • getCompanyId

      public long getCompanyId()
      Returns the company ID of this object relationship.
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCompanyId in interface ObjectRelationshipModel
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the company ID of this object relationship
    • getCreateDate

      public Date getCreateDate()
      Returns the create date of this object relationship.
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCreateDate in interface ObjectRelationshipModel
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the create date of this object relationship
    • getDBTableName

      public String getDBTableName()
      Returns the db table name of this object relationship.
      Specified by:
      getDBTableName in interface ObjectRelationshipModel
      Returns:
      the db table name of this object relationship
    • getDefaultLanguageId

      public String getDefaultLanguageId()
      Specified by:
      getDefaultLanguageId in interface com.liferay.portal.kernel.model.LocalizedModel
      Specified by:
      getDefaultLanguageId in interface ObjectRelationshipModel
    • getDeletionType

      public String getDeletionType()
      Returns the deletion type of this object relationship.
      Specified by:
      getDeletionType in interface ObjectRelationshipModel
      Returns:
      the deletion type of this object relationship
    • getEdge

      public boolean getEdge()
      Returns the edge of this object relationship.
      Specified by:
      getEdge in interface ObjectRelationshipModel
      Returns:
      the edge of this object relationship
    • getExternalReferenceCode

      public String getExternalReferenceCode()
      Returns the external reference code of this object relationship.
      Specified by:
      getExternalReferenceCode in interface com.liferay.portal.kernel.model.ExternalReferenceCodeModel
      Specified by:
      getExternalReferenceCode in interface ObjectRelationshipModel
      Returns:
      the external reference code of this object relationship
    • getLabel

      public String getLabel()
      Returns the label of this object relationship.
      Specified by:
      getLabel in interface ObjectRelationshipModel
      Returns:
      the label of this object relationship
    • getLabel

      public String getLabel(Locale locale)
      Returns the localized label of this object relationship in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getLabel in interface ObjectRelationshipModel
      Parameters:
      locale - the locale of the language
      Returns:
      the localized label of this object relationship
    • getLabel

      public String getLabel(Locale locale, boolean useDefault)
      Returns the localized label of this object relationship in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getLabel in interface ObjectRelationshipModel
      Parameters:
      locale - the local of the language
      useDefault - whether to use the default language if no localization exists for the requested language
      Returns:
      the localized label of this object relationship. If useDefault is false and no localization exists for the requested language, an empty string will be returned.
    • getLabel

      public String getLabel(String languageId)
      Returns the localized label of this object relationship in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getLabel in interface ObjectRelationshipModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized label of this object relationship
    • getLabel

      public String getLabel(String languageId, boolean useDefault)
      Returns the localized label of this object relationship in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getLabel in interface ObjectRelationshipModel
      Parameters:
      languageId - the ID of the language
      useDefault - whether to use the default language if no localization exists for the requested language
      Returns:
      the localized label of this object relationship
    • getLabelCurrentLanguageId

      public String getLabelCurrentLanguageId()
      Specified by:
      getLabelCurrentLanguageId in interface ObjectRelationshipModel
    • getLabelCurrentValue

      public String getLabelCurrentValue()
      Specified by:
      getLabelCurrentValue in interface ObjectRelationshipModel
    • getLabelMap

      public Map<Locale,String> getLabelMap()
      Returns a map of the locales and localized labels of this object relationship.
      Specified by:
      getLabelMap in interface ObjectRelationshipModel
      Returns:
      the locales and localized labels of this object relationship
    • getModifiedDate

      public Date getModifiedDate()
      Returns the modified date of this object relationship.
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getModifiedDate in interface ObjectRelationshipModel
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the modified date of this object relationship
    • getMvccVersion

      public long getMvccVersion()
      Returns the mvcc version of this object relationship.
      Specified by:
      getMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Specified by:
      getMvccVersion in interface ObjectRelationshipModel
      Returns:
      the mvcc version of this object relationship
    • getName

      public String getName()
      Returns the name of this object relationship.
      Specified by:
      getName in interface ObjectRelationshipModel
      Returns:
      the name of this object relationship
    • getObjectDefinitionId1

      public long getObjectDefinitionId1()
      Returns the object definition id1 of this object relationship.
      Specified by:
      getObjectDefinitionId1 in interface ObjectRelationshipModel
      Returns:
      the object definition id1 of this object relationship
    • getObjectDefinitionId2

      public long getObjectDefinitionId2()
      Returns the object definition id2 of this object relationship.
      Specified by:
      getObjectDefinitionId2 in interface ObjectRelationshipModel
      Returns:
      the object definition id2 of this object relationship
    • getObjectFieldId2

      public long getObjectFieldId2()
      Returns the object field id2 of this object relationship.
      Specified by:
      getObjectFieldId2 in interface ObjectRelationshipModel
      Returns:
      the object field id2 of this object relationship
    • getObjectRelationshipId

      public long getObjectRelationshipId()
      Returns the object relationship ID of this object relationship.
      Specified by:
      getObjectRelationshipId in interface ObjectRelationshipModel
      Returns:
      the object relationship ID of this object relationship
    • getParameterObjectFieldId

      public long getParameterObjectFieldId()
      Returns the parameter object field ID of this object relationship.
      Specified by:
      getParameterObjectFieldId in interface ObjectRelationshipModel
      Returns:
      the parameter object field ID of this object relationship
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this object relationship.
      Specified by:
      getPrimaryKey in interface ObjectRelationshipModel
      Returns:
      the primary key of this object relationship
    • getReverse

      public boolean getReverse()
      Returns the reverse of this object relationship.
      Specified by:
      getReverse in interface ObjectRelationshipModel
      Returns:
      the reverse of this object relationship
    • getSystem

      public boolean getSystem()
      Returns the system of this object relationship.
      Specified by:
      getSystem in interface ObjectRelationshipModel
      Returns:
      the system of this object relationship
    • getType

      public String getType()
      Returns the type of this object relationship.
      Specified by:
      getType in interface ObjectRelationshipModel
      Returns:
      the type of this object relationship
    • getUserId

      public long getUserId()
      Returns the user ID of this object relationship.
      Specified by:
      getUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserId in interface ObjectRelationshipModel
      Returns:
      the user ID of this object relationship
    • getUserName

      public String getUserName()
      Returns the user name of this object relationship.
      Specified by:
      getUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserName in interface ObjectRelationshipModel
      Returns:
      the user name of this object relationship
    • getUserUuid

      public String getUserUuid()
      Returns the user uuid of this object relationship.
      Specified by:
      getUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserUuid in interface ObjectRelationshipModel
      Returns:
      the user uuid of this object relationship
    • getUuid

      public String getUuid()
      Returns the uuid of this object relationship.
      Specified by:
      getUuid in interface ObjectRelationshipModel
      Specified by:
      getUuid in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the uuid of this object relationship
    • isAllowedObjectRelationshipType

      public boolean isAllowedObjectRelationshipType(String type)
      Specified by:
      isAllowedObjectRelationshipType in interface ObjectRelationship
    • isEdge

      public boolean isEdge()
      Returns true if this object relationship is edge.
      Specified by:
      isEdge in interface ObjectRelationshipModel
      Returns:
      true if this object relationship is edge; false otherwise
    • isEdgeCandidate

      public boolean isEdgeCandidate() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      isEdgeCandidate in interface ObjectRelationship
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • isReverse

      public boolean isReverse()
      Returns true if this object relationship is reverse.
      Specified by:
      isReverse in interface ObjectRelationshipModel
      Returns:
      true if this object relationship is reverse; false otherwise
    • isSelf

      public boolean isSelf()
      Specified by:
      isSelf in interface ObjectRelationship
    • isSystem

      public boolean isSystem()
      Returns true if this object relationship is system.
      Specified by:
      isSystem in interface ObjectRelationshipModel
      Returns:
      true if this object relationship is system; false otherwise
    • persist

      public void persist()
      Specified by:
      persist in interface com.liferay.portal.kernel.model.PersistedModel
    • prepareLocalizedFieldsForImport

      public void prepareLocalizedFieldsForImport() throws com.liferay.portal.kernel.exception.LocaleException
      Specified by:
      prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModel
      Specified by:
      prepareLocalizedFieldsForImport in interface ObjectRelationshipModel
      Throws:
      com.liferay.portal.kernel.exception.LocaleException
    • prepareLocalizedFieldsForImport

      public void prepareLocalizedFieldsForImport(Locale defaultImportLocale) throws com.liferay.portal.kernel.exception.LocaleException
      Specified by:
      prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModel
      Specified by:
      prepareLocalizedFieldsForImport in interface ObjectRelationshipModel
      Throws:
      com.liferay.portal.kernel.exception.LocaleException
    • setCompanyId

      public void setCompanyId(long companyId)
      Sets the company ID of this object relationship.
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCompanyId in interface ObjectRelationshipModel
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      companyId - the company ID of this object relationship
    • setCreateDate

      public void setCreateDate(Date createDate)
      Sets the create date of this object relationship.
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCreateDate in interface ObjectRelationshipModel
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      createDate - the create date of this object relationship
    • setDBTableName

      public void setDBTableName(String dbTableName)
      Sets the db table name of this object relationship.
      Specified by:
      setDBTableName in interface ObjectRelationshipModel
      Parameters:
      dbTableName - the db table name of this object relationship
    • setDeletionType

      public void setDeletionType(String deletionType)
      Sets the deletion type of this object relationship.
      Specified by:
      setDeletionType in interface ObjectRelationshipModel
      Parameters:
      deletionType - the deletion type of this object relationship
    • setEdge

      public void setEdge(boolean edge)
      Sets whether this object relationship is edge.
      Specified by:
      setEdge in interface ObjectRelationshipModel
      Parameters:
      edge - the edge of this object relationship
    • setExternalReferenceCode

      public void setExternalReferenceCode(String externalReferenceCode)
      Sets the external reference code of this object relationship.
      Specified by:
      setExternalReferenceCode in interface com.liferay.portal.kernel.model.ExternalReferenceCodeModel
      Specified by:
      setExternalReferenceCode in interface ObjectRelationshipModel
      Parameters:
      externalReferenceCode - the external reference code of this object relationship
    • setLabel

      public void setLabel(String label)
      Sets the label of this object relationship.
      Specified by:
      setLabel in interface ObjectRelationshipModel
      Parameters:
      label - the label of this object relationship
    • setLabel

      public void setLabel(String label, Locale locale)
      Sets the localized label of this object relationship in the language.
      Specified by:
      setLabel in interface ObjectRelationshipModel
      Parameters:
      label - the localized label of this object relationship
      locale - the locale of the language
    • setLabel

      public void setLabel(String label, Locale locale, Locale defaultLocale)
      Sets the localized label of this object relationship in the language, and sets the default locale.
      Specified by:
      setLabel in interface ObjectRelationshipModel
      Parameters:
      label - the localized label of this object relationship
      locale - the locale of the language
      defaultLocale - the default locale
    • setLabelCurrentLanguageId

      public void setLabelCurrentLanguageId(String languageId)
      Specified by:
      setLabelCurrentLanguageId in interface ObjectRelationshipModel
    • setLabelMap

      public void setLabelMap(Map<Locale,String> labelMap)
      Sets the localized labels of this object relationship from the map of locales and localized labels.
      Specified by:
      setLabelMap in interface ObjectRelationshipModel
      Parameters:
      labelMap - the locales and localized labels of this object relationship
    • setLabelMap

      public void setLabelMap(Map<Locale,String> labelMap, Locale defaultLocale)
      Sets the localized labels of this object relationship from the map of locales and localized labels, and sets the default locale.
      Specified by:
      setLabelMap in interface ObjectRelationshipModel
      Parameters:
      labelMap - the locales and localized labels of this object relationship
      defaultLocale - the default locale
    • setModifiedDate

      public void setModifiedDate(Date modifiedDate)
      Sets the modified date of this object relationship.
      Specified by:
      setModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setModifiedDate in interface ObjectRelationshipModel
      Specified by:
      setModifiedDate in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      modifiedDate - the modified date of this object relationship
    • setMvccVersion

      public void setMvccVersion(long mvccVersion)
      Sets the mvcc version of this object relationship.
      Specified by:
      setMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Specified by:
      setMvccVersion in interface ObjectRelationshipModel
      Parameters:
      mvccVersion - the mvcc version of this object relationship
    • setName

      public void setName(String name)
      Sets the name of this object relationship.
      Specified by:
      setName in interface ObjectRelationshipModel
      Parameters:
      name - the name of this object relationship
    • setObjectDefinitionId1

      public void setObjectDefinitionId1(long objectDefinitionId1)
      Sets the object definition id1 of this object relationship.
      Specified by:
      setObjectDefinitionId1 in interface ObjectRelationshipModel
      Parameters:
      objectDefinitionId1 - the object definition id1 of this object relationship
    • setObjectDefinitionId2

      public void setObjectDefinitionId2(long objectDefinitionId2)
      Sets the object definition id2 of this object relationship.
      Specified by:
      setObjectDefinitionId2 in interface ObjectRelationshipModel
      Parameters:
      objectDefinitionId2 - the object definition id2 of this object relationship
    • setObjectFieldId2

      public void setObjectFieldId2(long objectFieldId2)
      Sets the object field id2 of this object relationship.
      Specified by:
      setObjectFieldId2 in interface ObjectRelationshipModel
      Parameters:
      objectFieldId2 - the object field id2 of this object relationship
    • setObjectRelationshipId

      public void setObjectRelationshipId(long objectRelationshipId)
      Sets the object relationship ID of this object relationship.
      Specified by:
      setObjectRelationshipId in interface ObjectRelationshipModel
      Parameters:
      objectRelationshipId - the object relationship ID of this object relationship
    • setParameterObjectFieldId

      public void setParameterObjectFieldId(long parameterObjectFieldId)
      Sets the parameter object field ID of this object relationship.
      Specified by:
      setParameterObjectFieldId in interface ObjectRelationshipModel
      Parameters:
      parameterObjectFieldId - the parameter object field ID of this object relationship
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this object relationship.
      Specified by:
      setPrimaryKey in interface ObjectRelationshipModel
      Parameters:
      primaryKey - the primary key of this object relationship
    • setReverse

      public void setReverse(boolean reverse)
      Sets whether this object relationship is reverse.
      Specified by:
      setReverse in interface ObjectRelationshipModel
      Parameters:
      reverse - the reverse of this object relationship
    • setSystem

      public void setSystem(boolean system)
      Sets whether this object relationship is system.
      Specified by:
      setSystem in interface ObjectRelationshipModel
      Parameters:
      system - the system of this object relationship
    • setType

      public void setType(String type)
      Sets the type of this object relationship.
      Specified by:
      setType in interface ObjectRelationshipModel
      Parameters:
      type - the type of this object relationship
    • setUserId

      public void setUserId(long userId)
      Sets the user ID of this object relationship.
      Specified by:
      setUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserId in interface ObjectRelationshipModel
      Parameters:
      userId - the user ID of this object relationship
    • setUserName

      public void setUserName(String userName)
      Sets the user name of this object relationship.
      Specified by:
      setUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserName in interface ObjectRelationshipModel
      Parameters:
      userName - the user name of this object relationship
    • setUserUuid

      public void setUserUuid(String userUuid)
      Sets the user uuid of this object relationship.
      Specified by:
      setUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserUuid in interface ObjectRelationshipModel
      Parameters:
      userUuid - the user uuid of this object relationship
    • setUuid

      public void setUuid(String uuid)
      Sets the uuid of this object relationship.
      Specified by:
      setUuid in interface ObjectRelationshipModel
      Specified by:
      setUuid in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      uuid - the uuid of this object relationship
    • toXmlString

      public String toXmlString()
      Specified by:
      toXmlString in interface ObjectRelationshipModel
    • getStagedModelType

      public com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()
      Specified by:
      getStagedModelType in interface com.liferay.portal.kernel.model.StagedModel
    • wrap

      protected ObjectRelationshipWrapper wrap(ObjectRelationship objectRelationship)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<ObjectRelationship>