public class ObjectFieldWrapper extends com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<ObjectField> implements com.liferay.portal.kernel.model.ModelWrapper<ObjectField>, ObjectField
This class is a wrapper for ObjectField
.
ObjectField
,
Serialized FormOBJECT_FIELD_ID_ACCESSOR
Constructor and Description |
---|
ObjectFieldWrapper(ObjectField objectField) |
Modifier and Type | Method and Description |
---|---|
ObjectField |
cloneWithOriginalValues() |
java.lang.String[] |
getAvailableLanguageIds() |
java.lang.String |
getBusinessType()
Returns the business type of this object field.
|
long |
getCompanyId()
Returns the company ID of this object field.
|
java.util.Date |
getCreateDate()
Returns the create date of this object field.
|
java.lang.String |
getDBColumnName()
Returns the db column name of this object field.
|
java.lang.String |
getDBTableName()
Returns the db table name of this object field.
|
java.lang.String |
getDBType()
Returns the db type of this object field.
|
java.lang.String |
getDefaultLanguageId() |
boolean |
getIndexed()
Returns the indexed of this object field.
|
boolean |
getIndexedAsKeyword()
Returns the indexed as keyword of this object field.
|
java.lang.String |
getIndexedLanguageId()
Returns the indexed language ID of this object field.
|
java.lang.String |
getLabel()
Returns the label of this object field.
|
java.lang.String |
getLabel(java.util.Locale locale)
Returns the localized label of this object field in the language.
|
java.lang.String |
getLabel(java.util.Locale locale,
boolean useDefault)
Returns the localized label of this object field 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 field in the language.
|
java.lang.String |
getLabel(java.lang.String languageId,
boolean useDefault)
Returns the localized label of this object field 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 field.
|
long |
getListTypeDefinitionId()
Returns the list type definition ID of this object field.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.util.Date |
getModifiedDate()
Returns the modified date of this object field.
|
long |
getMvccVersion()
Returns the mvcc version of this object field.
|
java.lang.String |
getName()
Returns the name of this object field.
|
long |
getObjectDefinitionId()
Returns the object definition ID of this object field.
|
long |
getObjectFieldId()
Returns the object field ID of this object field.
|
long |
getPrimaryKey()
Returns the primary key of this object field.
|
java.lang.String |
getRelationshipType()
Returns the relationship type of this object field.
|
boolean |
getRequired()
Returns the required of this object field.
|
com.liferay.exportimport.kernel.lar.StagedModelType |
getStagedModelType() |
long |
getUserId()
Returns the user ID of this object field.
|
java.lang.String |
getUserName()
Returns the user name of this object field.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this object field.
|
java.lang.String |
getUuid()
Returns the uuid of this object field.
|
boolean |
isIndexed()
Returns
true if this object field is indexed. |
boolean |
isIndexedAsKeyword()
Returns
true if this object field is indexed as keyword. |
boolean |
isRequired()
Returns
true if this object field is required. |
void |
persist() |
void |
prepareLocalizedFieldsForImport() |
void |
prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale) |
void |
setBusinessType(java.lang.String businessType)
Sets the business type of this object field.
|
void |
setCompanyId(long companyId)
Sets the company ID of this object field.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this object field.
|
void |
setDBColumnName(java.lang.String dbColumnName)
Sets the db column name of this object field.
|
void |
setDBTableName(java.lang.String dbTableName)
Sets the db table name of this object field.
|
void |
setDBType(java.lang.String dbType)
Sets the db type of this object field.
|
void |
setIndexed(boolean indexed)
Sets whether this object field is indexed.
|
void |
setIndexedAsKeyword(boolean indexedAsKeyword)
Sets whether this object field is indexed as keyword.
|
void |
setIndexedLanguageId(java.lang.String indexedLanguageId)
Sets the indexed language ID of this object field.
|
void |
setLabel(java.lang.String label)
Sets the label of this object field.
|
void |
setLabel(java.lang.String label,
java.util.Locale locale)
Sets the localized label of this object field in the language.
|
void |
setLabel(java.lang.String label,
java.util.Locale locale,
java.util.Locale defaultLocale)
Sets the localized label of this object field 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 field 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 field from the map of locales and localized labels, and sets the default locale.
|
void |
setListTypeDefinitionId(long listTypeDefinitionId)
Sets the list type definition ID of this object field.
|
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 field.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this object field.
|
void |
setName(java.lang.String name)
Sets the name of this object field.
|
void |
setObjectDefinitionId(long objectDefinitionId)
Sets the object definition ID of this object field.
|
void |
setObjectFieldId(long objectFieldId)
Sets the object field ID of this object field.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this object field.
|
void |
setRelationshipType(java.lang.String relationshipType)
Sets the relationship type of this object field.
|
void |
setRequired(boolean required)
Sets whether this object field is required.
|
void |
setUserId(long userId)
Sets the user ID of this object field.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this object field.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this object field.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this object field.
|
protected ObjectFieldWrapper |
wrap(ObjectField objectField) |
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 ObjectFieldWrapper(ObjectField objectField)
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes
in interface com.liferay.portal.kernel.model.BaseModel<ObjectField>
public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes
in interface com.liferay.portal.kernel.model.BaseModel<ObjectField>
public ObjectField cloneWithOriginalValues()
cloneWithOriginalValues
in interface ObjectFieldModel
cloneWithOriginalValues
in interface com.liferay.portal.kernel.model.BaseModel<ObjectField>
public java.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds
in interface ObjectFieldModel
getAvailableLanguageIds
in interface com.liferay.portal.kernel.model.LocalizedModel
public java.lang.String getBusinessType()
getBusinessType
in interface ObjectFieldModel
public long getCompanyId()
getCompanyId
in interface ObjectFieldModel
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 ObjectFieldModel
getCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
getCreateDate
in interface com.liferay.portal.kernel.model.StagedModel
public java.lang.String getDBColumnName()
getDBColumnName
in interface ObjectFieldModel
public java.lang.String getDBTableName()
getDBTableName
in interface ObjectFieldModel
public java.lang.String getDBType()
getDBType
in interface ObjectFieldModel
public java.lang.String getDefaultLanguageId()
getDefaultLanguageId
in interface ObjectFieldModel
getDefaultLanguageId
in interface com.liferay.portal.kernel.model.LocalizedModel
public boolean getIndexed()
getIndexed
in interface ObjectFieldModel
public boolean getIndexedAsKeyword()
getIndexedAsKeyword
in interface ObjectFieldModel
public java.lang.String getIndexedLanguageId()
getIndexedLanguageId
in interface ObjectFieldModel
public java.lang.String getLabel()
getLabel
in interface ObjectFieldModel
public java.lang.String getLabel(java.util.Locale locale)
getLabel
in interface ObjectFieldModel
locale
- the locale of the languagepublic java.lang.String getLabel(java.util.Locale locale, boolean useDefault)
getLabel
in interface ObjectFieldModel
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 ObjectFieldModel
languageId
- the ID of the languagepublic java.lang.String getLabel(java.lang.String languageId, boolean useDefault)
getLabel
in interface ObjectFieldModel
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 ObjectFieldModel
public java.lang.String getLabelCurrentValue()
getLabelCurrentValue
in interface ObjectFieldModel
public java.util.Map<java.util.Locale,java.lang.String> getLabelMap()
getLabelMap
in interface ObjectFieldModel
public long getListTypeDefinitionId()
getListTypeDefinitionId
in interface ObjectFieldModel
public java.util.Date getModifiedDate()
getModifiedDate
in interface ObjectFieldModel
getModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
getModifiedDate
in interface com.liferay.portal.kernel.model.StagedModel
public long getMvccVersion()
getMvccVersion
in interface ObjectFieldModel
getMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
public java.lang.String getName()
getName
in interface ObjectFieldModel
public long getObjectDefinitionId()
getObjectDefinitionId
in interface ObjectFieldModel
public long getObjectFieldId()
getObjectFieldId
in interface ObjectFieldModel
public long getPrimaryKey()
getPrimaryKey
in interface ObjectFieldModel
public java.lang.String getRelationshipType()
getRelationshipType
in interface ObjectFieldModel
public boolean getRequired()
getRequired
in interface ObjectFieldModel
public long getUserId()
getUserId
in interface ObjectFieldModel
getUserId
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUserName()
getUserName
in interface ObjectFieldModel
getUserName
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUserUuid()
getUserUuid
in interface ObjectFieldModel
getUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUuid()
getUuid
in interface ObjectFieldModel
getUuid
in interface com.liferay.portal.kernel.model.StagedModel
public boolean isIndexed()
true
if this object field is indexed.isIndexed
in interface ObjectFieldModel
true
if this object field is indexed; false
otherwisepublic boolean isIndexedAsKeyword()
true
if this object field is indexed as keyword.isIndexedAsKeyword
in interface ObjectFieldModel
true
if this object field is indexed as keyword; false
otherwisepublic boolean isRequired()
true
if this object field is required.isRequired
in interface ObjectFieldModel
true
if this object field is required; 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 ObjectFieldModel
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 ObjectFieldModel
prepareLocalizedFieldsForImport
in interface com.liferay.portal.kernel.model.LocalizedModel
com.liferay.portal.kernel.exception.LocaleException
public void setBusinessType(java.lang.String businessType)
setBusinessType
in interface ObjectFieldModel
businessType
- the business type of this object fieldpublic void setCompanyId(long companyId)
setCompanyId
in interface ObjectFieldModel
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 fieldpublic void setCreateDate(java.util.Date createDate)
setCreateDate
in interface ObjectFieldModel
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 fieldpublic void setDBColumnName(java.lang.String dbColumnName)
setDBColumnName
in interface ObjectFieldModel
dbColumnName
- the db column name of this object fieldpublic void setDBTableName(java.lang.String dbTableName)
setDBTableName
in interface ObjectFieldModel
dbTableName
- the db table name of this object fieldpublic void setDBType(java.lang.String dbType)
setDBType
in interface ObjectFieldModel
dbType
- the db type of this object fieldpublic void setIndexed(boolean indexed)
setIndexed
in interface ObjectFieldModel
indexed
- the indexed of this object fieldpublic void setIndexedAsKeyword(boolean indexedAsKeyword)
setIndexedAsKeyword
in interface ObjectFieldModel
indexedAsKeyword
- the indexed as keyword of this object fieldpublic void setIndexedLanguageId(java.lang.String indexedLanguageId)
setIndexedLanguageId
in interface ObjectFieldModel
indexedLanguageId
- the indexed language ID of this object fieldpublic void setLabel(java.lang.String label)
setLabel
in interface ObjectFieldModel
label
- the label of this object fieldpublic void setLabel(java.lang.String label, java.util.Locale locale)
setLabel
in interface ObjectFieldModel
label
- the localized label of this object fieldlocale
- the locale of the languagepublic void setLabel(java.lang.String label, java.util.Locale locale, java.util.Locale defaultLocale)
setLabel
in interface ObjectFieldModel
label
- the localized label of this object fieldlocale
- the locale of the languagedefaultLocale
- the default localepublic void setLabelCurrentLanguageId(java.lang.String languageId)
setLabelCurrentLanguageId
in interface ObjectFieldModel
public void setLabelMap(java.util.Map<java.util.Locale,java.lang.String> labelMap)
setLabelMap
in interface ObjectFieldModel
labelMap
- the locales and localized labels of this object fieldpublic void setLabelMap(java.util.Map<java.util.Locale,java.lang.String> labelMap, java.util.Locale defaultLocale)
setLabelMap
in interface ObjectFieldModel
labelMap
- the locales and localized labels of this object fielddefaultLocale
- the default localepublic void setListTypeDefinitionId(long listTypeDefinitionId)
setListTypeDefinitionId
in interface ObjectFieldModel
listTypeDefinitionId
- the list type definition ID of this object fieldpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate
in interface ObjectFieldModel
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 fieldpublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface ObjectFieldModel
setMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
mvccVersion
- the mvcc version of this object fieldpublic void setName(java.lang.String name)
setName
in interface ObjectFieldModel
name
- the name of this object fieldpublic void setObjectDefinitionId(long objectDefinitionId)
setObjectDefinitionId
in interface ObjectFieldModel
objectDefinitionId
- the object definition ID of this object fieldpublic void setObjectFieldId(long objectFieldId)
setObjectFieldId
in interface ObjectFieldModel
objectFieldId
- the object field ID of this object fieldpublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ObjectFieldModel
primaryKey
- the primary key of this object fieldpublic void setRelationshipType(java.lang.String relationshipType)
setRelationshipType
in interface ObjectFieldModel
relationshipType
- the relationship type of this object fieldpublic void setRequired(boolean required)
setRequired
in interface ObjectFieldModel
required
- the required of this object fieldpublic void setUserId(long userId)
setUserId
in interface ObjectFieldModel
setUserId
in interface com.liferay.portal.kernel.model.AuditedModel
userId
- the user ID of this object fieldpublic void setUserName(java.lang.String userName)
setUserName
in interface ObjectFieldModel
setUserName
in interface com.liferay.portal.kernel.model.AuditedModel
userName
- the user name of this object fieldpublic void setUserUuid(java.lang.String userUuid)
setUserUuid
in interface ObjectFieldModel
setUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
userUuid
- the user uuid of this object fieldpublic void setUuid(java.lang.String uuid)
setUuid
in interface ObjectFieldModel
setUuid
in interface com.liferay.portal.kernel.model.StagedModel
uuid
- the uuid of this object fieldpublic com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()
getStagedModelType
in interface com.liferay.portal.kernel.model.StagedModel
protected ObjectFieldWrapper wrap(ObjectField objectField)
wrap
in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<ObjectField>