@ProviderType public class AssetLinkWrapper extends Object implements AssetLink, ModelWrapper<AssetLink>
This class is a wrapper for AssetLink.
AssetLink,
Serialized FormENTRY_ID2_ACCESSOR, LINK_ID_ACCESSOR| Constructor and Description |
|---|
AssetLinkWrapper(AssetLink assetLink) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(AssetLink assetLink) |
boolean |
equals(Object obj) |
long |
getCompanyId()
Returns the company ID of this asset link.
|
Date |
getCreateDate()
Returns the create date of this asset link.
|
long |
getEntryId1()
Returns the entry id1 of this asset link.
|
long |
getEntryId2()
Returns the entry id2 of this asset link.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
long |
getLinkId()
Returns the link ID of this asset link.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
long |
getPrimaryKey()
Returns the primary key of this asset link.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
int |
getType()
Returns the type of this asset link.
|
long |
getUserId()
Returns the user ID of this asset link.
|
String |
getUserName()
Returns the user name of this asset link.
|
String |
getUserUuid()
Returns the user uuid of this asset link.
|
int |
getWeight()
Returns the weight of this asset link.
|
AssetLink |
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns
true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns
true if this model's finder cache is enabled. |
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 |
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 link.
|
void |
setCreateDate(Date createDate)
Sets the create date of this asset link.
|
void |
setEntryId1(long entryId1)
Sets the entry id1 of this asset link.
|
void |
setEntryId2(long entryId2)
Sets the entry id2 of this asset link.
|
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 |
setLinkId(long linkId)
Sets the link ID of this asset link.
|
void |
setModelAttributes(Map<String,Object> attributes) |
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 link.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setType(int type)
Sets the type of this asset link.
|
void |
setUserId(long userId)
Sets the user ID of this asset link.
|
void |
setUserName(String userName)
Sets the user name of this asset link.
|
void |
setUserUuid(String userUuid)
Sets the user uuid of this asset link.
|
void |
setWeight(int weight)
Sets the weight of this asset link.
|
CacheModel<AssetLink> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
AssetLink |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
String |
toString() |
AssetLink |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public AssetLinkWrapper(AssetLink assetLink)
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<AssetLink>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<AssetLink>public AssetLink toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface AssetLinkModeltoEscapedModel in interface BaseModel<AssetLink>AutoEscapeBeanHandlerpublic AssetLink toUnescapedModel()
toUnescapedModel in interface AssetLinkModeltoUnescapedModel in interface BaseModel<AssetLink>public boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface AssetLinkModelisCachedModel in interface BaseModel<AssetLink>true if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface AssetLinkModelisEscapedModel in interface BaseModel<AssetLink>true if this model instance is escaped;
false otherwisepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface AssetLinkModelisNew in interface BaseModel<AssetLink>true if this model instance does not yet exist in
the database; false otherwisepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface AssetLinkModelgetExpandoBridge in interface BaseModel<AssetLink>getExpandoBridge in interface ClassedModelpublic CacheModel<AssetLink> toCacheModel()
BaseModeltoCacheModel in interface AssetLinkModeltoCacheModel in interface BaseModel<AssetLink>public int compareTo(AssetLink assetLink)
compareTo in interface AssetLinkModelcompareTo in interface Comparable<AssetLink>public int getType()
getType in interface AssetLinkModelpublic int getWeight()
getWeight in interface AssetLinkModelpublic int hashCode()
hashCode in interface AssetLinkModelhashCode in class Objectpublic Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface AssetLinkModelgetPrimaryKeyObj in interface BaseModel<AssetLink>getPrimaryKeyObj in interface ClassedModelpublic Object clone()
BaseModelpublic String getUserName()
getUserName in interface AssetLinkModelpublic String getUserUuid()
getUserUuid in interface AssetLinkModelpublic String toString()
toString in interface AssetLinkModeltoString in class Objectpublic String toXmlString()
BaseModeltoXmlString in interface AssetLinkModeltoXmlString in interface BaseModel<AssetLink>public Date getCreateDate()
getCreateDate in interface AssetLinkModelpublic long getCompanyId()
getCompanyId in interface AssetLinkModelgetCompanyId in interface ShardedModelpublic long getEntryId1()
getEntryId1 in interface AssetLinkModelpublic long getEntryId2()
getEntryId2 in interface AssetLinkModelpublic long getLinkId()
getLinkId in interface AssetLinkModelpublic long getPrimaryKey()
getPrimaryKey in interface AssetLinkModelpublic long getUserId()
getUserId in interface AssetLinkModelpublic void persist()
PersistedModelpersist in interface PersistedModelpublic void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface AssetLinkModelsetCachedModel in interface BaseModel<AssetLink>cachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setCompanyId(long companyId)
setCompanyId in interface AssetLinkModelsetCompanyId in interface ShardedModelcompanyId - the company ID of this asset linkpublic void setCreateDate(Date createDate)
setCreateDate in interface AssetLinkModelcreateDate - the create date of this asset linkpublic void setEntryId1(long entryId1)
setEntryId1 in interface AssetLinkModelentryId1 - the entry id1 of this asset linkpublic void setEntryId2(long entryId2)
setEntryId2 in interface AssetLinkModelentryId2 - the entry id2 of this asset linkpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface AssetLinkModelsetExpandoBridgeAttributes in interface BaseModel<AssetLink>public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface AssetLinkModelsetExpandoBridgeAttributes in interface BaseModel<AssetLink>public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface AssetLinkModelsetExpandoBridgeAttributes in interface BaseModel<AssetLink>serviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public void setLinkId(long linkId)
setLinkId in interface AssetLinkModellinkId - the link ID of this asset linkpublic void setNew(boolean n)
BaseModelsetNew in interface AssetLinkModelsetNew in interface BaseModel<AssetLink>n - whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface AssetLinkModelprimaryKey - the primary key of this asset linkpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface AssetLinkModelsetPrimaryKeyObj in interface BaseModel<AssetLink>setPrimaryKeyObj in interface ClassedModelprimaryKeyObj - the primary key of this model instancepublic void setType(int type)
setType in interface AssetLinkModeltype - the type of this asset linkpublic void setUserId(long userId)
setUserId in interface AssetLinkModeluserId - the user ID of this asset linkpublic void setUserName(String userName)
setUserName in interface AssetLinkModeluserName - the user name of this asset linkpublic void setUserUuid(String userUuid)
setUserUuid in interface AssetLinkModeluserUuid - the user uuid of this asset linkpublic void setWeight(int weight)
setWeight in interface AssetLinkModelweight - the weight of this asset linkpublic AssetLink getWrappedModel()
getWrappedModel in interface ModelWrapper<AssetLink>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.isEntityCacheEnabled in interface BaseModel<AssetLink>true if this model's entity cache is enabled;
false otherwisepublic boolean isFinderCacheEnabled()
BaseModeltrue if this model's finder cache is enabled.isFinderCacheEnabled in interface BaseModel<AssetLink>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<AssetLink>