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
.
ObjectRelationship
,
Serialized FormOBJECT_RELATIONSHIP_ID_ACCESSOR
Constructor and Description |
---|
ObjectRelationshipWrapper(ObjectRelationship objectRelationship) |
Modifier and Type | Method and Description |
---|---|
ObjectRelationship |
cloneWithOriginalValues() |
java.lang.String[] |
getAvailableLanguageIds() |
long |
getCompanyId()
Returns the company ID of this object relationship.
|
java.util.Date |
getCreateDate()
Returns the create date of this object relationship.
|
java.lang.String |
getDBTableName()
Returns the db table name of this object relationship.
|
java.lang.String |
getDefaultLanguageId() |
java.lang.String |
getDeletionType()
Returns the deletion type of this object relationship.
|
java.lang.String |
getLabel()
Returns the label of this object relationship.
|
java.lang.String |
getLabel(java.util.Locale locale)
Returns the localized label of this object relationship in the language.
|
java.lang.String |
getLabel(java.util.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.
|
java.lang.String |
getLabel(java.lang.String languageId)
Returns the localized label of this object relationship in the language.
|
java.lang.String |
getLabel(java.lang.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.
|
java.lang.String |
getLabelCurrentLanguageId() |
java.lang.String |
getLabelCurrentValue() |
java.util.Map<java.util.Locale,java.lang.String> |
getLabelMap()
Returns a map of the locales and localized labels of this object relationship.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.util.Date |
getModifiedDate()
Returns the modified date of this object relationship.
|
long |
getMvccVersion()
Returns the mvcc version of this object relationship.
|
java.lang.String |
getName()
Returns the name of this object relationship.
|
long |
getObjectDefinitionId1()
Returns the object definition id1 of this object relationship.
|
long |
getObjectDefinitionId2()
Returns the object definition id2 of this object relationship.
|
long |
getObjectFieldId2()
Returns the object field id2 of this object relationship.
|
long |
getObjectRelationshipId()
Returns the object relationship ID of this object relationship.
|
long |
getPrimaryKey()
Returns the primary key of this object relationship.
|
boolean |
getReverse()
Returns the reverse of this object relationship.
|
com.liferay.exportimport.kernel.lar.StagedModelType |
getStagedModelType() |
java.lang.String |
getType()
Returns the type of this object relationship.
|
long |
getUserId()
Returns the user ID of this object relationship.
|
java.lang.String |
getUserName()
Returns the user name of this object relationship.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this object relationship.
|
java.lang.String |
getUuid()
Returns the uuid of this object relationship.
|
boolean |
isReverse()
Returns
true if this object relationship is reverse. |
void |
persist() |
void |
prepareLocalizedFieldsForImport() |
void |
prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale) |
void |
setCompanyId(long companyId)
Sets the company ID of this object relationship.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this object relationship.
|
void |
setDBTableName(java.lang.String dbTableName)
Sets the db table name of this object relationship.
|
void |
setDeletionType(java.lang.String deletionType)
Sets the deletion type of this object relationship.
|
void |
setLabel(java.lang.String label)
Sets the label of this object relationship.
|
void |
setLabel(java.lang.String label,
java.util.Locale locale)
Sets the localized label of this object relationship in the language.
|
void |
setLabel(java.lang.String label,
java.util.Locale locale,
java.util.Locale defaultLocale)
Sets the localized label of this object relationship in the language, and sets the default locale.
|
void |
setLabelCurrentLanguageId(java.lang.String languageId) |
void |
setLabelMap(java.util.Map<java.util.Locale,java.lang.String> labelMap)
Sets the localized labels of this object relationship from the map of locales and localized labels.
|
void |
setLabelMap(java.util.Map<java.util.Locale,java.lang.String> labelMap,
java.util.Locale defaultLocale)
Sets the localized labels of this object relationship from the map of locales and localized labels, and sets the default locale.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this object relationship.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this object relationship.
|
void |
setName(java.lang.String name)
Sets the name of this object relationship.
|
void |
setObjectDefinitionId1(long objectDefinitionId1)
Sets the object definition id1 of this object relationship.
|
void |
setObjectDefinitionId2(long objectDefinitionId2)
Sets the object definition id2 of this object relationship.
|
void |
setObjectFieldId2(long objectFieldId2)
Sets the object field id2 of this object relationship.
|
void |
setObjectRelationshipId(long objectRelationshipId)
Sets the object relationship ID of this object relationship.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this object relationship.
|
void |
setReverse(boolean reverse)
Sets whether this object relationship is reverse.
|
void |
setType(java.lang.String type)
Sets the type of this object relationship.
|
void |
setUserId(long userId)
Sets the user ID of this object relationship.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this object relationship.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this object relationship.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this object relationship.
|
protected ObjectRelationshipWrapper |
wrap(ObjectRelationship objectRelationship) |
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlString
public ObjectRelationshipWrapper(ObjectRelationship objectRelationship)
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes
in interface com.liferay.portal.kernel.model.BaseModel<ObjectRelationship>
public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes
in interface com.liferay.portal.kernel.model.BaseModel<ObjectRelationship>
public ObjectRelationship cloneWithOriginalValues()
cloneWithOriginalValues
in interface ObjectRelationshipModel
cloneWithOriginalValues
in interface com.liferay.portal.kernel.model.BaseModel<ObjectRelationship>
public java.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds
in interface ObjectRelationshipModel
getAvailableLanguageIds
in interface com.liferay.portal.kernel.model.LocalizedModel
public long getCompanyId()
getCompanyId
in interface ObjectRelationshipModel
getCompanyId
in interface com.liferay.portal.kernel.model.AuditedModel
getCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
getCompanyId
in interface com.liferay.portal.kernel.model.StagedModel
public java.util.Date getCreateDate()
getCreateDate
in interface ObjectRelationshipModel
getCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
getCreateDate
in interface com.liferay.portal.kernel.model.StagedModel
public java.lang.String getDBTableName()
getDBTableName
in interface ObjectRelationshipModel
public java.lang.String getDefaultLanguageId()
getDefaultLanguageId
in interface ObjectRelationshipModel
getDefaultLanguageId
in interface com.liferay.portal.kernel.model.LocalizedModel
public java.lang.String getDeletionType()
getDeletionType
in interface ObjectRelationshipModel
public java.lang.String getLabel()
getLabel
in interface ObjectRelationshipModel
public java.lang.String getLabel(java.util.Locale locale)
getLabel
in interface ObjectRelationshipModel
locale
- the locale of the languagepublic java.lang.String getLabel(java.util.Locale locale, boolean useDefault)
getLabel
in interface ObjectRelationshipModel
locale
- the local of the languageuseDefault
- whether to use the default language if no localization exists for the requested languageuseDefault
is false
and no localization exists for the requested language, an empty string will be returned.public java.lang.String getLabel(java.lang.String languageId)
getLabel
in interface ObjectRelationshipModel
languageId
- the ID of the languagepublic java.lang.String getLabel(java.lang.String languageId, boolean useDefault)
getLabel
in interface ObjectRelationshipModel
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested languagepublic java.lang.String getLabelCurrentLanguageId()
getLabelCurrentLanguageId
in interface ObjectRelationshipModel
public java.lang.String getLabelCurrentValue()
getLabelCurrentValue
in interface ObjectRelationshipModel
public java.util.Map<java.util.Locale,java.lang.String> getLabelMap()
getLabelMap
in interface ObjectRelationshipModel
public java.util.Date getModifiedDate()
getModifiedDate
in interface ObjectRelationshipModel
getModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
getModifiedDate
in interface com.liferay.portal.kernel.model.StagedModel
public long getMvccVersion()
getMvccVersion
in interface ObjectRelationshipModel
getMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
public java.lang.String getName()
getName
in interface ObjectRelationshipModel
public long getObjectDefinitionId1()
getObjectDefinitionId1
in interface ObjectRelationshipModel
public long getObjectDefinitionId2()
getObjectDefinitionId2
in interface ObjectRelationshipModel
public long getObjectFieldId2()
getObjectFieldId2
in interface ObjectRelationshipModel
public long getObjectRelationshipId()
getObjectRelationshipId
in interface ObjectRelationshipModel
public long getPrimaryKey()
getPrimaryKey
in interface ObjectRelationshipModel
public boolean getReverse()
getReverse
in interface ObjectRelationshipModel
public java.lang.String getType()
getType
in interface ObjectRelationshipModel
public long getUserId()
getUserId
in interface ObjectRelationshipModel
getUserId
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUserName()
getUserName
in interface ObjectRelationshipModel
getUserName
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUserUuid()
getUserUuid
in interface ObjectRelationshipModel
getUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUuid()
getUuid
in interface ObjectRelationshipModel
getUuid
in interface com.liferay.portal.kernel.model.StagedModel
public boolean isReverse()
true
if this object relationship is reverse.isReverse
in interface ObjectRelationshipModel
true
if this object relationship is reverse; false
otherwisepublic void persist()
persist
in interface com.liferay.portal.kernel.model.PersistedModel
public void prepareLocalizedFieldsForImport() throws com.liferay.portal.kernel.exception.LocaleException
prepareLocalizedFieldsForImport
in interface ObjectRelationshipModel
prepareLocalizedFieldsForImport
in interface com.liferay.portal.kernel.model.LocalizedModel
com.liferay.portal.kernel.exception.LocaleException
public void prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale) throws com.liferay.portal.kernel.exception.LocaleException
prepareLocalizedFieldsForImport
in interface ObjectRelationshipModel
prepareLocalizedFieldsForImport
in interface com.liferay.portal.kernel.model.LocalizedModel
com.liferay.portal.kernel.exception.LocaleException
public void setCompanyId(long companyId)
setCompanyId
in interface ObjectRelationshipModel
setCompanyId
in interface com.liferay.portal.kernel.model.AuditedModel
setCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
setCompanyId
in interface com.liferay.portal.kernel.model.StagedModel
companyId
- the company ID of this object relationshippublic void setCreateDate(java.util.Date createDate)
setCreateDate
in interface ObjectRelationshipModel
setCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
setCreateDate
in interface com.liferay.portal.kernel.model.StagedModel
createDate
- the create date of this object relationshippublic void setDBTableName(java.lang.String dbTableName)
setDBTableName
in interface ObjectRelationshipModel
dbTableName
- the db table name of this object relationshippublic void setDeletionType(java.lang.String deletionType)
setDeletionType
in interface ObjectRelationshipModel
deletionType
- the deletion type of this object relationshippublic void setLabel(java.lang.String label)
setLabel
in interface ObjectRelationshipModel
label
- the label of this object relationshippublic void setLabel(java.lang.String label, java.util.Locale locale)
setLabel
in interface ObjectRelationshipModel
label
- the localized label of this object relationshiplocale
- the locale of the languagepublic void setLabel(java.lang.String label, java.util.Locale locale, java.util.Locale defaultLocale)
setLabel
in interface ObjectRelationshipModel
label
- the localized label of this object relationshiplocale
- the locale of the languagedefaultLocale
- the default localepublic void setLabelCurrentLanguageId(java.lang.String languageId)
setLabelCurrentLanguageId
in interface ObjectRelationshipModel
public void setLabelMap(java.util.Map<java.util.Locale,java.lang.String> labelMap)
setLabelMap
in interface ObjectRelationshipModel
labelMap
- the locales and localized labels of this object relationshippublic void setLabelMap(java.util.Map<java.util.Locale,java.lang.String> labelMap, java.util.Locale defaultLocale)
setLabelMap
in interface ObjectRelationshipModel
labelMap
- the locales and localized labels of this object relationshipdefaultLocale
- the default localepublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate
in interface ObjectRelationshipModel
setModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
setModifiedDate
in interface com.liferay.portal.kernel.model.StagedModel
modifiedDate
- the modified date of this object relationshippublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface ObjectRelationshipModel
setMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
mvccVersion
- the mvcc version of this object relationshippublic void setName(java.lang.String name)
setName
in interface ObjectRelationshipModel
name
- the name of this object relationshippublic void setObjectDefinitionId1(long objectDefinitionId1)
setObjectDefinitionId1
in interface ObjectRelationshipModel
objectDefinitionId1
- the object definition id1 of this object relationshippublic void setObjectDefinitionId2(long objectDefinitionId2)
setObjectDefinitionId2
in interface ObjectRelationshipModel
objectDefinitionId2
- the object definition id2 of this object relationshippublic void setObjectFieldId2(long objectFieldId2)
setObjectFieldId2
in interface ObjectRelationshipModel
objectFieldId2
- the object field id2 of this object relationshippublic void setObjectRelationshipId(long objectRelationshipId)
setObjectRelationshipId
in interface ObjectRelationshipModel
objectRelationshipId
- the object relationship ID of this object relationshippublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ObjectRelationshipModel
primaryKey
- the primary key of this object relationshippublic void setReverse(boolean reverse)
setReverse
in interface ObjectRelationshipModel
reverse
- the reverse of this object relationshippublic void setType(java.lang.String type)
setType
in interface ObjectRelationshipModel
type
- the type of this object relationshippublic void setUserId(long userId)
setUserId
in interface ObjectRelationshipModel
setUserId
in interface com.liferay.portal.kernel.model.AuditedModel
userId
- the user ID of this object relationshippublic void setUserName(java.lang.String userName)
setUserName
in interface ObjectRelationshipModel
setUserName
in interface com.liferay.portal.kernel.model.AuditedModel
userName
- the user name of this object relationshippublic void setUserUuid(java.lang.String userUuid)
setUserUuid
in interface ObjectRelationshipModel
setUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
userUuid
- the user uuid of this object relationshippublic void setUuid(java.lang.String uuid)
setUuid
in interface ObjectRelationshipModel
setUuid
in interface com.liferay.portal.kernel.model.StagedModel
uuid
- the uuid of this object relationshippublic com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()
getStagedModelType
in interface com.liferay.portal.kernel.model.StagedModel
protected ObjectRelationshipWrapper wrap(ObjectRelationship objectRelationship)
wrap
in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<ObjectRelationship>