|
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.expando.model.ExpandoRowWrapper
@ProviderType public class ExpandoRowWrapper
This class is a wrapper for ExpandoRow
.
ExpandoRow
,
Serialized FormConstructor Summary | |
---|---|
ExpandoRowWrapper(ExpandoRow expandoRow)
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(ExpandoRow expandoRow)
|
boolean |
equals(Object obj)
|
long |
getClassPK()
Returns the class p k of this expando row. |
long |
getCompanyId()
Returns the company ID of this expando row. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
Date |
getModifiedDate()
Returns the modified date of this expando row. |
long |
getPrimaryKey()
Returns the primary key of this expando row. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
long |
getRowId()
Returns the row ID of this expando row. |
long |
getTableId()
Returns the table ID of this expando row. |
ExpandoRow |
getWrappedExpandoRow()
Deprecated. As of 6.1.0, replaced by getWrappedModel() |
ExpandoRow |
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 |
setClassPK(long classPK)
Sets the class p k of this expando row. |
void |
setCompanyId(long companyId)
Sets the company ID of this expando row. |
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 |
setModelAttributes(Map<String,Object> attributes)
|
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this expando row. |
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 expando row. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setRowId(long rowId)
Sets the row ID of this expando row. |
void |
setTableId(long tableId)
Sets the table ID of this expando row. |
CacheModel<ExpandoRow> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
ExpandoRow |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler . |
String |
toString()
|
ExpandoRow |
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 ExpandoRowWrapper(ExpandoRow expandoRow)
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<ExpandoRow>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<ExpandoRow>
public long getPrimaryKey()
getPrimaryKey
in interface ExpandoRowModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ExpandoRowModel
primaryKey
- the primary key of this expando rowpublic long getRowId()
getRowId
in interface ExpandoRowModel
public void setRowId(long rowId)
setRowId
in interface ExpandoRowModel
rowId
- the row ID of this expando rowpublic long getCompanyId()
getCompanyId
in interface ExpandoRowModel
public void setCompanyId(long companyId)
setCompanyId
in interface ExpandoRowModel
companyId
- the company ID of this expando rowpublic Date getModifiedDate()
getModifiedDate
in interface ExpandoRowModel
public void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface ExpandoRowModel
modifiedDate
- the modified date of this expando rowpublic long getTableId()
getTableId
in interface ExpandoRowModel
public void setTableId(long tableId)
setTableId
in interface ExpandoRowModel
tableId
- the table ID of this expando rowpublic long getClassPK()
getClassPK
in interface ExpandoRowModel
public void setClassPK(long classPK)
setClassPK
in interface ExpandoRowModel
classPK
- the class p k of this expando rowpublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface BaseModel<ExpandoRow>
isNew
in interface ExpandoRowModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<ExpandoRow>
setNew
in interface ExpandoRowModel
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<ExpandoRow>
isCachedModel
in interface ExpandoRowModel
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<ExpandoRow>
setCachedModel
in interface ExpandoRowModel
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<ExpandoRow>
isEscapedModel
in interface ExpandoRowModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<ExpandoRow>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface ExpandoRowModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<ExpandoRow>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface ExpandoRowModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<ExpandoRow>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface ExpandoRowModel
public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<ExpandoRow>
setExpandoBridgeAttributes
in interface ExpandoRowModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<ExpandoRow>
setExpandoBridgeAttributes
in interface ExpandoRowModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<ExpandoRow>
setExpandoBridgeAttributes
in interface ExpandoRowModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<ExpandoRow>
clone
in interface ExpandoRowModel
clone
in class Object
public int compareTo(ExpandoRow expandoRow)
compareTo
in interface ExpandoRowModel
compareTo
in interface Comparable<ExpandoRow>
public int hashCode()
hashCode
in interface ExpandoRowModel
hashCode
in class Object
public CacheModel<ExpandoRow> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<ExpandoRow>
toCacheModel
in interface ExpandoRowModel
public ExpandoRow toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<ExpandoRow>
toEscapedModel
in interface ExpandoRowModel
AutoEscapeBeanHandler
public ExpandoRow toUnescapedModel()
toUnescapedModel
in interface BaseModel<ExpandoRow>
toUnescapedModel
in interface ExpandoRowModel
public String toString()
toString
in interface ExpandoRowModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<ExpandoRow>
toXmlString
in interface ExpandoRowModel
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 ExpandoRow getWrappedExpandoRow()
getWrappedModel()
public ExpandoRow getWrappedModel()
getWrappedModel
in interface ModelWrapper<ExpandoRow>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<ExpandoRow>
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |