@ProviderType public class AssetTagWrapper extends java.lang.Object implements AssetTag, ModelWrapper<AssetTag>
This class is a wrapper for AssetTag.
AssetTag,
Serialized FormNAME_ACCESSOR, TAG_ID_ACCESSOR| Constructor and Description |
|---|
AssetTagWrapper(AssetTag assetTag) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(AssetTag assetTag) |
boolean |
equals(java.lang.Object obj) |
int |
getAssetCount()
Returns the asset count of this asset tag.
|
long |
getCompanyId()
Returns the company ID of this asset tag.
|
java.util.Date |
getCreateDate()
Returns the create date of this asset tag.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
long |
getGroupId()
Returns the group ID of this asset tag.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
java.util.Date |
getModifiedDate()
Returns the modified date of this asset tag.
|
java.lang.String |
getName()
Returns the name of this asset tag.
|
long |
getPrimaryKey()
Returns the primary key of this asset tag.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getTagId()
Returns the tag ID of this asset tag.
|
long |
getUserId()
Returns the user ID of this asset tag.
|
java.lang.String |
getUserName()
Returns the user name of this asset tag.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this asset tag.
|
AssetTag |
getWrappedAssetTag()
Deprecated.
As of 6.1.0, replaced by
getWrappedModel() |
AssetTag |
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isNew()
Returns
true if this model instance does not yet exist in
the database. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
resetOriginalValues()
Reset all original fields to current values.
|
void |
setAssetCount(int assetCount)
Sets the asset count of this asset tag.
|
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache.
|
void |
setCompanyId(long companyId)
Sets the company ID of this asset tag.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this asset tag.
|
void |
setExpandoBridgeAttributes(BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge) |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the
attributes stored in the service context.
|
void |
setGroupId(long groupId)
Sets the group ID of this asset tag.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this asset tag.
|
void |
setName(java.lang.String name)
Sets the name of this asset tag.
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this asset tag.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setTagId(long tagId)
Sets the tag ID of this asset tag.
|
void |
setUserId(long userId)
Sets the user ID of this asset tag.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this asset tag.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this asset tag.
|
CacheModel<AssetTag> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
AssetTag |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
java.lang.String |
toString() |
AssetTag |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public AssetTagWrapper(AssetTag assetTag)
public java.lang.Class<?> getModelClass()
getModelClass in interface ClassedModelpublic java.lang.String getModelClassName()
getModelClassName in interface ClassedModelpublic java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface BaseModel<AssetTag>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<AssetTag>public long getPrimaryKey()
getPrimaryKey in interface AssetTagModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface AssetTagModelprimaryKey - the primary key of this asset tagpublic long getTagId()
getTagId in interface AssetTagModelpublic void setTagId(long tagId)
setTagId in interface AssetTagModeltagId - the tag ID of this asset tagpublic long getGroupId()
getGroupId in interface GroupedModelgetGroupId in interface AssetTagModelpublic void setGroupId(long groupId)
setGroupId in interface GroupedModelsetGroupId in interface AssetTagModelgroupId - the group ID of this asset tagpublic long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface AssetTagModelpublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface AssetTagModelcompanyId - the company ID of this asset tagpublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface AssetTagModelpublic void setUserId(long userId)
setUserId in interface AuditedModelsetUserId in interface AssetTagModeluserId - the user ID of this asset tagpublic java.lang.String getUserUuid()
throws SystemException
getUserUuid in interface AuditedModelgetUserUuid in interface AssetTagModelSystemException - if a system exception occurredpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface AssetTagModeluserUuid - the user uuid of this asset tagpublic java.lang.String getUserName()
getUserName in interface AuditedModelgetUserName in interface AssetTagModelpublic void setUserName(java.lang.String userName)
setUserName in interface AuditedModelsetUserName in interface AssetTagModeluserName - the user name of this asset tagpublic java.util.Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface AssetTagModelpublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface AssetTagModelcreateDate - the create date of this asset tagpublic java.util.Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface AssetTagModelpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface AuditedModelsetModifiedDate in interface AssetTagModelmodifiedDate - the modified date of this asset tagpublic java.lang.String getName()
getName in interface AssetTagModelpublic void setName(java.lang.String name)
setName in interface AssetTagModelname - the name of this asset tagpublic int getAssetCount()
getAssetCount in interface AssetTagModelpublic void setAssetCount(int assetCount)
setAssetCount in interface AssetTagModelassetCount - the asset count of this asset tagpublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface BaseModel<AssetTag>isNew in interface AssetTagModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<AssetTag>setNew in interface AssetTagModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<AssetTag>isCachedModel in interface AssetTagModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<AssetTag>setCachedModel in interface AssetTagModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<AssetTag>isEscapedModel in interface AssetTagModeltrue if this model instance is escaped;
false otherwisepublic java.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<AssetTag>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface AssetTagModelpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<AssetTag>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface AssetTagModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<AssetTag>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface AssetTagModelpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<AssetTag>setExpandoBridgeAttributes in interface AssetTagModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<AssetTag>setExpandoBridgeAttributes in interface AssetTagModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<AssetTag>setExpandoBridgeAttributes in interface AssetTagModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public java.lang.Object clone()
BaseModelclone in interface BaseModel<AssetTag>clone in interface AssetTagModelclone in class java.lang.Objectpublic int compareTo(AssetTag assetTag)
compareTo in interface AssetTagModelcompareTo in interface java.lang.Comparable<AssetTag>public int hashCode()
hashCode in interface AssetTagModelhashCode in class java.lang.Objectpublic CacheModel<AssetTag> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<AssetTag>toCacheModel in interface AssetTagModelpublic AssetTag toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<AssetTag>toEscapedModel in interface AssetTagModelAutoEscapeBeanHandlerpublic AssetTag toUnescapedModel()
toUnescapedModel in interface BaseModel<AssetTag>toUnescapedModel in interface AssetTagModelpublic java.lang.String toString()
toString in interface AssetTagModeltoString in class java.lang.Objectpublic java.lang.String toXmlString()
BaseModeltoXmlString in interface BaseModel<AssetTag>toXmlString in interface AssetTagModelpublic void persist()
throws SystemException
PersistedModelpersist in interface PersistedModelSystemException - if a system exception occurredpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic AssetTag getWrappedAssetTag()
getWrappedModel()public AssetTag getWrappedModel()
getWrappedModel in interface ModelWrapper<AssetTag>public void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<AssetTag>