|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.asset.model.AssetLinkWrapper
@ProviderType public class AssetLinkWrapper
This class is a wrapper for AssetLink.
AssetLink,
Serialized Form| Field Summary |
|---|
| Fields inherited from interface com.liferay.portlet.asset.model.AssetLink |
|---|
ENTRY_ID2_ACCESSOR, LINK_ID_ACCESSOR |
| Constructor Summary | |
|---|---|
AssetLinkWrapper(AssetLink assetLink)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AssetLinkWrapper(AssetLink assetLink)
| Method Detail |
|---|
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 Object clone()
BaseModel
clone in interface BaseModel<AssetLink>clone in interface AssetLinkModelclone in class Objectpublic int compareTo(AssetLink assetLink)
compareTo in interface AssetLinkModelcompareTo in interface Comparable<AssetLink>public long getCompanyId()
getCompanyId in interface ShardedModelgetCompanyId in interface AssetLinkModelpublic Date getCreateDate()
getCreateDate in interface AssetLinkModelpublic long getEntryId1()
getEntryId1 in interface AssetLinkModelpublic long getEntryId2()
getEntryId2 in interface AssetLinkModelpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<AssetLink>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface AssetLinkModelpublic long getLinkId()
getLinkId in interface AssetLinkModelpublic long getPrimaryKey()
getPrimaryKey in interface AssetLinkModelpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<AssetLink>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface AssetLinkModelpublic int getType()
getType in interface AssetLinkModelpublic long getUserId()
getUserId in interface AssetLinkModelpublic String getUserName()
getUserName in interface AssetLinkModelpublic String getUserUuid()
getUserUuid in interface AssetLinkModelpublic int getWeight()
getWeight in interface AssetLinkModelpublic int hashCode()
hashCode in interface AssetLinkModelhashCode in class Objectpublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.
isCachedModel in interface BaseModel<AssetLink>isCachedModel in interface AssetLinkModeltrue 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 BaseModel<AssetLink>isEscapedModel in interface AssetLinkModeltrue 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 BaseModel<AssetLink>isNew in interface AssetLinkModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void persist()
PersistedModel
persist in interface PersistedModelpublic void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<AssetLink>setCachedModel in interface AssetLinkModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setCompanyId(long companyId)
setCompanyId in interface ShardedModelsetCompanyId in interface AssetLinkModelcompanyId - 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(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<AssetLink>setExpandoBridgeAttributes in interface AssetLinkModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<AssetLink>setExpandoBridgeAttributes in interface AssetLinkModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<AssetLink>setExpandoBridgeAttributes in interface AssetLinkModelserviceContext - 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)
BaseModel
setNew in interface BaseModel<AssetLink>setNew in interface AssetLinkModeln - 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)
BaseModel
setPrimaryKeyObj in interface BaseModel<AssetLink>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface AssetLinkModelprimaryKeyObj - 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 CacheModel<AssetLink> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<AssetLink>toCacheModel in interface AssetLinkModelpublic AssetLink toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<AssetLink>toEscapedModel in interface AssetLinkModelAutoEscapeBeanHandlerpublic String toString()
toString in interface AssetLinkModeltoString in class Objectpublic AssetLink toUnescapedModel()
toUnescapedModel in interface BaseModel<AssetLink>toUnescapedModel in interface AssetLinkModelpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<AssetLink>toXmlString in interface AssetLinkModelpublic boolean equals(Object obj)
equals in class Objectpublic 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()
BaseModel
resetOriginalValues in interface BaseModel<AssetLink>
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||