Class SegmentsEntryWrapper

java.lang.Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<SegmentsEntry>
com.liferay.segments.model.SegmentsEntryWrapper
All Implemented Interfaces:
com.liferay.portal.kernel.model.AuditedModel, com.liferay.portal.kernel.model.BaseModel<SegmentsEntry>, com.liferay.portal.kernel.model.change.tracking.CTModel<SegmentsEntry>, com.liferay.portal.kernel.model.ClassedModel, com.liferay.portal.kernel.model.GroupedModel, com.liferay.portal.kernel.model.LocalizedModel, com.liferay.portal.kernel.model.ModelWrapper<SegmentsEntry>, com.liferay.portal.kernel.model.MVCCModel, com.liferay.portal.kernel.model.PersistedModel, com.liferay.portal.kernel.model.ShardedModel, com.liferay.portal.kernel.model.StagedGroupedModel, com.liferay.portal.kernel.model.StagedModel, SegmentsEntry, SegmentsEntryModel, Serializable, Cloneable, Comparable<SegmentsEntry>

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

This class is a wrapper for SegmentsEntry.

See Also:
Generated:
  • Constructor Details

    • SegmentsEntryWrapper

      public SegmentsEntryWrapper(SegmentsEntry segmentsEntry)
  • Method Details

    • getModelAttributes

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

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

      public SegmentsEntry cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<SegmentsEntry>
      Specified by:
      cloneWithOriginalValues in interface SegmentsEntryModel
    • getActive

      public boolean getActive()
      Returns the active of this segments entry.
      Specified by:
      getActive in interface SegmentsEntryModel
      Returns:
      the active of this segments entry
    • getAvailableLanguageIds

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

      public long getCompanyId()
      Returns the company ID of this segments entry.
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCompanyId in interface SegmentsEntryModel
      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 segments entry
    • getCreateDate

      public Date getCreateDate()
      Returns the create date of this segments entry.
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCreateDate in interface SegmentsEntryModel
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the create date of this segments entry
    • getCriteria

      public String getCriteria()
      Returns the criteria of this segments entry.
      Specified by:
      getCriteria in interface SegmentsEntryModel
      Returns:
      the criteria of this segments entry
    • getCriteriaObj

      public Criteria getCriteriaObj()
      Specified by:
      getCriteriaObj in interface SegmentsEntry
    • getCtCollectionId

      public long getCtCollectionId()
      Returns the ct collection ID of this segments entry.
      Specified by:
      getCtCollectionId in interface com.liferay.portal.kernel.model.change.tracking.CTModel<SegmentsEntry>
      Specified by:
      getCtCollectionId in interface SegmentsEntryModel
      Returns:
      the ct collection ID of this segments entry
    • getDefaultLanguageId

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

      public String getDescription()
      Returns the description of this segments entry.
      Specified by:
      getDescription in interface SegmentsEntryModel
      Returns:
      the description of this segments entry
    • getDescription

      public String getDescription(Locale locale)
      Returns the localized description of this segments entry in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getDescription in interface SegmentsEntryModel
      Parameters:
      locale - the locale of the language
      Returns:
      the localized description of this segments entry
    • getDescription

      public String getDescription(Locale locale, boolean useDefault)
      Returns the localized description of this segments entry in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getDescription in interface SegmentsEntryModel
      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 description of this segments entry. If useDefault is false and no localization exists for the requested language, an empty string will be returned.
    • getDescription

      public String getDescription(String languageId)
      Returns the localized description of this segments entry in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getDescription in interface SegmentsEntryModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized description of this segments entry
    • getDescription

      public String getDescription(String languageId, boolean useDefault)
      Returns the localized description of this segments entry in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getDescription in interface SegmentsEntryModel
      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 description of this segments entry
    • getDescriptionCurrentLanguageId

      public String getDescriptionCurrentLanguageId()
      Specified by:
      getDescriptionCurrentLanguageId in interface SegmentsEntryModel
    • getDescriptionCurrentValue

      public String getDescriptionCurrentValue()
      Specified by:
      getDescriptionCurrentValue in interface SegmentsEntryModel
    • getDescriptionMap

      public Map<Locale,String> getDescriptionMap()
      Returns a map of the locales and localized descriptions of this segments entry.
      Specified by:
      getDescriptionMap in interface SegmentsEntryModel
      Returns:
      the locales and localized descriptions of this segments entry
    • getGroupId

      public long getGroupId()
      Returns the group ID of this segments entry.
      Specified by:
      getGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Specified by:
      getGroupId in interface SegmentsEntryModel
      Returns:
      the group ID of this segments entry
    • getLastPublishDate

      public Date getLastPublishDate()
      Returns the last publish date of this segments entry.
      Specified by:
      getLastPublishDate in interface SegmentsEntryModel
      Specified by:
      getLastPublishDate in interface com.liferay.portal.kernel.model.StagedGroupedModel
      Returns:
      the last publish date of this segments entry
    • getModifiedDate

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

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

      public String getName()
      Returns the name of this segments entry.
      Specified by:
      getName in interface SegmentsEntryModel
      Returns:
      the name of this segments entry
    • getName

      public String getName(Locale locale)
      Returns the localized name of this segments entry in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getName in interface SegmentsEntryModel
      Parameters:
      locale - the locale of the language
      Returns:
      the localized name of this segments entry
    • getName

      public String getName(Locale locale, boolean useDefault)
      Returns the localized name of this segments entry in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getName in interface SegmentsEntryModel
      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 name of this segments entry. If useDefault is false and no localization exists for the requested language, an empty string will be returned.
    • getName

      public String getName(String languageId)
      Returns the localized name of this segments entry in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getName in interface SegmentsEntryModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized name of this segments entry
    • getName

      public String getName(String languageId, boolean useDefault)
      Returns the localized name of this segments entry in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getName in interface SegmentsEntryModel
      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 name of this segments entry
    • getNameCurrentLanguageId

      public String getNameCurrentLanguageId()
      Specified by:
      getNameCurrentLanguageId in interface SegmentsEntryModel
    • getNameCurrentValue

      public String getNameCurrentValue()
      Specified by:
      getNameCurrentValue in interface SegmentsEntryModel
    • getNameMap

      public Map<Locale,String> getNameMap()
      Returns a map of the locales and localized names of this segments entry.
      Specified by:
      getNameMap in interface SegmentsEntryModel
      Returns:
      the locales and localized names of this segments entry
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this segments entry.
      Specified by:
      getPrimaryKey in interface com.liferay.portal.kernel.model.change.tracking.CTModel<SegmentsEntry>
      Specified by:
      getPrimaryKey in interface SegmentsEntryModel
      Returns:
      the primary key of this segments entry
    • getRoleIds

      public long[] getRoleIds()
      Specified by:
      getRoleIds in interface SegmentsEntry
    • getSegmentsEntryId

      public long getSegmentsEntryId()
      Returns the segments entry ID of this segments entry.
      Specified by:
      getSegmentsEntryId in interface SegmentsEntryModel
      Returns:
      the segments entry ID of this segments entry
    • getSegmentsEntryKey

      public String getSegmentsEntryKey()
      Returns the segments entry key of this segments entry.
      Specified by:
      getSegmentsEntryKey in interface SegmentsEntryModel
      Returns:
      the segments entry key of this segments entry
    • getSource

      public String getSource()
      Returns the source of this segments entry.
      Specified by:
      getSource in interface SegmentsEntryModel
      Returns:
      the source of this segments entry
    • getUserId

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

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

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

      public String getUuid()
      Returns the uuid of this segments entry.
      Specified by:
      getUuid in interface SegmentsEntryModel
      Specified by:
      getUuid in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the uuid of this segments entry
    • isActive

      public boolean isActive()
      Returns true if this segments entry is active.
      Specified by:
      isActive in interface SegmentsEntryModel
      Returns:
      true if this segments entry is active; 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 SegmentsEntryModel
      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 SegmentsEntryModel
      Throws:
      com.liferay.portal.kernel.exception.LocaleException
    • setActive

      public void setActive(boolean active)
      Sets whether this segments entry is active.
      Specified by:
      setActive in interface SegmentsEntryModel
      Parameters:
      active - the active of this segments entry
    • setCompanyId

      public void setCompanyId(long companyId)
      Sets the company ID of this segments entry.
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCompanyId in interface SegmentsEntryModel
      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 segments entry
    • setCreateDate

      public void setCreateDate(Date createDate)
      Sets the create date of this segments entry.
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCreateDate in interface SegmentsEntryModel
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      createDate - the create date of this segments entry
    • setCriteria

      public void setCriteria(String criteria)
      Sets the criteria of this segments entry.
      Specified by:
      setCriteria in interface SegmentsEntryModel
      Parameters:
      criteria - the criteria of this segments entry
    • setCtCollectionId

      public void setCtCollectionId(long ctCollectionId)
      Sets the ct collection ID of this segments entry.
      Specified by:
      setCtCollectionId in interface com.liferay.portal.kernel.model.change.tracking.CTModel<SegmentsEntry>
      Specified by:
      setCtCollectionId in interface SegmentsEntryModel
      Parameters:
      ctCollectionId - the ct collection ID of this segments entry
    • setDescription

      public void setDescription(String description)
      Sets the description of this segments entry.
      Specified by:
      setDescription in interface SegmentsEntryModel
      Parameters:
      description - the description of this segments entry
    • setDescription

      public void setDescription(String description, Locale locale)
      Sets the localized description of this segments entry in the language.
      Specified by:
      setDescription in interface SegmentsEntryModel
      Parameters:
      description - the localized description of this segments entry
      locale - the locale of the language
    • setDescription

      public void setDescription(String description, Locale locale, Locale defaultLocale)
      Sets the localized description of this segments entry in the language, and sets the default locale.
      Specified by:
      setDescription in interface SegmentsEntryModel
      Parameters:
      description - the localized description of this segments entry
      locale - the locale of the language
      defaultLocale - the default locale
    • setDescriptionCurrentLanguageId

      public void setDescriptionCurrentLanguageId(String languageId)
      Specified by:
      setDescriptionCurrentLanguageId in interface SegmentsEntryModel
    • setDescriptionMap

      public void setDescriptionMap(Map<Locale,String> descriptionMap)
      Sets the localized descriptions of this segments entry from the map of locales and localized descriptions.
      Specified by:
      setDescriptionMap in interface SegmentsEntryModel
      Parameters:
      descriptionMap - the locales and localized descriptions of this segments entry
    • setDescriptionMap

      public void setDescriptionMap(Map<Locale,String> descriptionMap, Locale defaultLocale)
      Sets the localized descriptions of this segments entry from the map of locales and localized descriptions, and sets the default locale.
      Specified by:
      setDescriptionMap in interface SegmentsEntryModel
      Parameters:
      descriptionMap - the locales and localized descriptions of this segments entry
      defaultLocale - the default locale
    • setGroupId

      public void setGroupId(long groupId)
      Sets the group ID of this segments entry.
      Specified by:
      setGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Specified by:
      setGroupId in interface SegmentsEntryModel
      Parameters:
      groupId - the group ID of this segments entry
    • setLastPublishDate

      public void setLastPublishDate(Date lastPublishDate)
      Sets the last publish date of this segments entry.
      Specified by:
      setLastPublishDate in interface SegmentsEntryModel
      Specified by:
      setLastPublishDate in interface com.liferay.portal.kernel.model.StagedGroupedModel
      Parameters:
      lastPublishDate - the last publish date of this segments entry
    • setModifiedDate

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

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

      public void setName(String name)
      Sets the name of this segments entry.
      Specified by:
      setName in interface SegmentsEntryModel
      Parameters:
      name - the name of this segments entry
    • setName

      public void setName(String name, Locale locale)
      Sets the localized name of this segments entry in the language.
      Specified by:
      setName in interface SegmentsEntryModel
      Parameters:
      name - the localized name of this segments entry
      locale - the locale of the language
    • setName

      public void setName(String name, Locale locale, Locale defaultLocale)
      Sets the localized name of this segments entry in the language, and sets the default locale.
      Specified by:
      setName in interface SegmentsEntryModel
      Parameters:
      name - the localized name of this segments entry
      locale - the locale of the language
      defaultLocale - the default locale
    • setNameCurrentLanguageId

      public void setNameCurrentLanguageId(String languageId)
      Specified by:
      setNameCurrentLanguageId in interface SegmentsEntryModel
    • setNameMap

      public void setNameMap(Map<Locale,String> nameMap)
      Sets the localized names of this segments entry from the map of locales and localized names.
      Specified by:
      setNameMap in interface SegmentsEntryModel
      Parameters:
      nameMap - the locales and localized names of this segments entry
    • setNameMap

      public void setNameMap(Map<Locale,String> nameMap, Locale defaultLocale)
      Sets the localized names of this segments entry from the map of locales and localized names, and sets the default locale.
      Specified by:
      setNameMap in interface SegmentsEntryModel
      Parameters:
      nameMap - the locales and localized names of this segments entry
      defaultLocale - the default locale
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this segments entry.
      Specified by:
      setPrimaryKey in interface com.liferay.portal.kernel.model.change.tracking.CTModel<SegmentsEntry>
      Specified by:
      setPrimaryKey in interface SegmentsEntryModel
      Parameters:
      primaryKey - the primary key of this segments entry
    • setSegmentsEntryId

      public void setSegmentsEntryId(long segmentsEntryId)
      Sets the segments entry ID of this segments entry.
      Specified by:
      setSegmentsEntryId in interface SegmentsEntryModel
      Parameters:
      segmentsEntryId - the segments entry ID of this segments entry
    • setSegmentsEntryKey

      public void setSegmentsEntryKey(String segmentsEntryKey)
      Sets the segments entry key of this segments entry.
      Specified by:
      setSegmentsEntryKey in interface SegmentsEntryModel
      Parameters:
      segmentsEntryKey - the segments entry key of this segments entry
    • setSource

      public void setSource(String source)
      Sets the source of this segments entry.
      Specified by:
      setSource in interface SegmentsEntryModel
      Parameters:
      source - the source of this segments entry
    • setUserId

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

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

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

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

      public String toXmlString()
      Specified by:
      toXmlString in interface SegmentsEntryModel
    • getAttributeGetterFunctions

      public Map<String,Function<SegmentsEntry,Object>> getAttributeGetterFunctions()
      Specified by:
      getAttributeGetterFunctions in interface com.liferay.portal.kernel.model.BaseModel<SegmentsEntry>
    • getAttributeSetterBiConsumers

      public Map<String,BiConsumer<SegmentsEntry,Object>> getAttributeSetterBiConsumers()
      Specified by:
      getAttributeSetterBiConsumers in interface com.liferay.portal.kernel.model.BaseModel<SegmentsEntry>
    • getStagedModelType

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

      protected SegmentsEntryWrapper wrap(SegmentsEntry segmentsEntry)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<SegmentsEntry>