@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 ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<AssetLink>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<AssetLink>
public Object clone()
BaseModel
clone
in interface AssetLinkModel
clone
in interface BaseModel<AssetLink>
clone
in class Object
public int compareTo(AssetLink assetLink)
compareTo
in interface AssetLinkModel
compareTo
in interface Comparable<AssetLink>
public long getCompanyId()
getCompanyId
in interface AssetLinkModel
getCompanyId
in interface ShardedModel
public Date getCreateDate()
getCreateDate
in interface AssetLinkModel
public long getEntryId1()
getEntryId1
in interface AssetLinkModel
public long getEntryId2()
getEntryId2
in interface AssetLinkModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface AssetLinkModel
getExpandoBridge
in interface BaseModel<AssetLink>
getExpandoBridge
in interface ClassedModel
public long getLinkId()
getLinkId
in interface AssetLinkModel
public long getPrimaryKey()
getPrimaryKey
in interface AssetLinkModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface AssetLinkModel
getPrimaryKeyObj
in interface BaseModel<AssetLink>
getPrimaryKeyObj
in interface ClassedModel
public int getType()
getType
in interface AssetLinkModel
public long getUserId()
getUserId
in interface AssetLinkModel
public String getUserName()
getUserName
in interface AssetLinkModel
public String getUserUuid()
getUserUuid
in interface AssetLinkModel
public int getWeight()
getWeight
in interface AssetLinkModel
public int hashCode()
hashCode
in interface AssetLinkModel
hashCode
in class Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface AssetLinkModel
isCachedModel
in interface BaseModel<AssetLink>
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.isEscapedModel
in interface AssetLinkModel
isEscapedModel
in interface BaseModel<AssetLink>
true
if this model instance is escaped;
false
otherwisepublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.isNew
in interface AssetLinkModel
isNew
in interface BaseModel<AssetLink>
true
if this model instance does not yet exist in
the database; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface AssetLinkModel
setCachedModel
in interface BaseModel<AssetLink>
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setCompanyId(long companyId)
setCompanyId
in interface AssetLinkModel
setCompanyId
in interface ShardedModel
companyId
- the company ID of this asset linkpublic void setCreateDate(Date createDate)
setCreateDate
in interface AssetLinkModel
createDate
- the create date of this asset linkpublic void setEntryId1(long entryId1)
setEntryId1
in interface AssetLinkModel
entryId1
- the entry id1 of this asset linkpublic void setEntryId2(long entryId2)
setEntryId2
in interface AssetLinkModel
entryId2
- the entry id2 of this asset linkpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface AssetLinkModel
setExpandoBridgeAttributes
in interface BaseModel<AssetLink>
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface AssetLinkModel
setExpandoBridgeAttributes
in interface BaseModel<AssetLink>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface AssetLinkModel
setExpandoBridgeAttributes
in interface BaseModel<AssetLink>
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setLinkId(long linkId)
setLinkId
in interface AssetLinkModel
linkId
- the link ID of this asset linkpublic void setNew(boolean n)
BaseModel
setNew
in interface AssetLinkModel
setNew
in interface BaseModel<AssetLink>
n
- whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface AssetLinkModel
primaryKey
- the primary key of this asset linkpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface AssetLinkModel
setPrimaryKeyObj
in interface BaseModel<AssetLink>
setPrimaryKeyObj
in interface ClassedModel
primaryKeyObj
- the primary key of this model instancepublic void setType(int type)
setType
in interface AssetLinkModel
type
- the type of this asset linkpublic void setUserId(long userId)
setUserId
in interface AssetLinkModel
userId
- the user ID of this asset linkpublic void setUserName(String userName)
setUserName
in interface AssetLinkModel
userName
- the user name of this asset linkpublic void setUserUuid(String userUuid)
setUserUuid
in interface AssetLinkModel
userUuid
- the user uuid of this asset linkpublic void setWeight(int weight)
setWeight
in interface AssetLinkModel
weight
- the weight of this asset linkpublic CacheModel<AssetLink> toCacheModel()
BaseModel
toCacheModel
in interface AssetLinkModel
toCacheModel
in interface BaseModel<AssetLink>
public AssetLink toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface AssetLinkModel
toEscapedModel
in interface BaseModel<AssetLink>
AutoEscapeBeanHandler
public String toString()
toString
in interface AssetLinkModel
toString
in class Object
public AssetLink toUnescapedModel()
toUnescapedModel
in interface AssetLinkModel
toUnescapedModel
in interface BaseModel<AssetLink>
public String toXmlString()
BaseModel
toXmlString
in interface AssetLinkModel
toXmlString
in interface BaseModel<AssetLink>
public boolean equals(Object obj)
equals
in class Object
public AssetLink getWrappedModel()
getWrappedModel
in interface ModelWrapper<AssetLink>
public boolean isEntityCacheEnabled()
BaseModel
true
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()
BaseModel
true
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()
BaseModel
resetOriginalValues
in interface BaseModel<AssetLink>