|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.asset.model.AssetLinkWrapper
@ProviderType public class AssetLinkWrapper
This class is a wrapper for AssetLink
.
AssetLink
,
Serialized FormField 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 |
getWrappedAssetLink()
Deprecated. As of 6.1.0, replaced by getWrappedModel() |
AssetLink |
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 |
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 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 long getPrimaryKey()
getPrimaryKey
in interface AssetLinkModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface AssetLinkModel
primaryKey
- the primary key of this asset linkpublic long getLinkId()
getLinkId
in interface AssetLinkModel
public void setLinkId(long linkId)
setLinkId
in interface AssetLinkModel
linkId
- the link ID of this asset linkpublic long getCompanyId()
getCompanyId
in interface AssetLinkModel
public void setCompanyId(long companyId)
setCompanyId
in interface AssetLinkModel
companyId
- the company ID of this asset linkpublic long getUserId()
getUserId
in interface AssetLinkModel
public void setUserId(long userId)
setUserId
in interface AssetLinkModel
userId
- the user ID of this asset linkpublic String getUserUuid() throws SystemException
getUserUuid
in interface AssetLinkModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid
in interface AssetLinkModel
userUuid
- the user uuid of this asset linkpublic String getUserName()
getUserName
in interface AssetLinkModel
public void setUserName(String userName)
setUserName
in interface AssetLinkModel
userName
- the user name of this asset linkpublic Date getCreateDate()
getCreateDate
in interface AssetLinkModel
public void setCreateDate(Date createDate)
setCreateDate
in interface AssetLinkModel
createDate
- the create date of this asset linkpublic long getEntryId1()
getEntryId1
in interface AssetLinkModel
public void setEntryId1(long entryId1)
setEntryId1
in interface AssetLinkModel
entryId1
- the entry id1 of this asset linkpublic long getEntryId2()
getEntryId2
in interface AssetLinkModel
public void setEntryId2(long entryId2)
setEntryId2
in interface AssetLinkModel
entryId2
- the entry id2 of this asset linkpublic int getType()
getType
in interface AssetLinkModel
public void setType(int type)
setType
in interface AssetLinkModel
type
- the type of this asset linkpublic int getWeight()
getWeight
in interface AssetLinkModel
public void setWeight(int weight)
setWeight
in interface AssetLinkModel
weight
- the weight of this asset linkpublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface BaseModel<AssetLink>
isNew
in interface AssetLinkModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<AssetLink>
setNew
in interface AssetLinkModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.
isCachedModel
in interface BaseModel<AssetLink>
isCachedModel
in interface AssetLinkModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<AssetLink>
setCachedModel
in interface AssetLinkModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<AssetLink>
isEscapedModel
in interface AssetLinkModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<AssetLink>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface AssetLinkModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<AssetLink>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface AssetLinkModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<AssetLink>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface AssetLinkModel
public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<AssetLink>
setExpandoBridgeAttributes
in interface AssetLinkModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<AssetLink>
setExpandoBridgeAttributes
in interface AssetLinkModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<AssetLink>
setExpandoBridgeAttributes
in interface AssetLinkModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<AssetLink>
clone
in interface AssetLinkModel
clone
in class Object
public int compareTo(AssetLink assetLink)
compareTo
in interface AssetLinkModel
compareTo
in interface Comparable<AssetLink>
public int hashCode()
hashCode
in interface AssetLinkModel
hashCode
in class Object
public CacheModel<AssetLink> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<AssetLink>
toCacheModel
in interface AssetLinkModel
public AssetLink toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<AssetLink>
toEscapedModel
in interface AssetLinkModel
AutoEscapeBeanHandler
public AssetLink toUnescapedModel()
toUnescapedModel
in interface BaseModel<AssetLink>
toUnescapedModel
in interface AssetLinkModel
public String toString()
toString
in interface AssetLinkModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<AssetLink>
toXmlString
in interface AssetLinkModel
public void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic boolean equals(Object obj)
equals
in class Object
public AssetLink getWrappedAssetLink()
getWrappedModel()
public AssetLink getWrappedModel()
getWrappedModel
in interface ModelWrapper<AssetLink>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<AssetLink>
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |