|
Liferay 6.0.5 | |||||||||
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
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)
|
long |
getClassPK()
Gets the class p k of this expando row. |
long |
getCompanyId()
Gets the company id of this expando row. |
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
long |
getPrimaryKey()
Gets the primary key of this expando row. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
long |
getRowId()
Gets the row id of this expando row. |
long |
getTableId()
Gets the table id of this expando row. |
ExpandoRow |
getWrappedExpandoRow()
|
int |
hashCode()
|
boolean |
isCachedModel()
Determines if this model instance was retrieved from the entity cache. |
boolean |
isEscapedModel()
Determines if this model instance is escaped. |
boolean |
isNew()
Determines if this model instance does not yet exist in the database. |
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 |
setEscapedModel(boolean escapedModel)
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe. |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setPrimaryKey(long pk)
Sets the primary key of this expando row |
void |
setRowId(long rowId)
Sets the row id of this expando row. |
void |
setTableId(long tableId)
Sets the table id of this expando row. |
ExpandoRow |
toEscapedModel()
Gets a copy of this expando row as an escaped model instance by wrapping it with an AutoEscapeBeanHandler . |
String |
toString()
|
String |
toXmlString()
Gets the XML representation of this model instance. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExpandoRowWrapper(ExpandoRow expandoRow)
Method Detail |
---|
public long getPrimaryKey()
ExpandoRowModel
getPrimaryKey
in interface ExpandoRowModel
public void setPrimaryKey(long pk)
ExpandoRowModel
setPrimaryKey
in interface ExpandoRowModel
pk
- the primary key of this expando rowpublic long getRowId()
ExpandoRowModel
getRowId
in interface ExpandoRowModel
public void setRowId(long rowId)
ExpandoRowModel
setRowId
in interface ExpandoRowModel
rowId
- the row id of this expando rowpublic long getCompanyId()
ExpandoRowModel
getCompanyId
in interface ExpandoRowModel
public void setCompanyId(long companyId)
ExpandoRowModel
setCompanyId
in interface ExpandoRowModel
companyId
- the company id of this expando rowpublic long getTableId()
ExpandoRowModel
getTableId
in interface ExpandoRowModel
public void setTableId(long tableId)
ExpandoRowModel
setTableId
in interface ExpandoRowModel
tableId
- the table id of this expando rowpublic long getClassPK()
ExpandoRowModel
getClassPK
in interface ExpandoRowModel
public void setClassPK(long classPK)
ExpandoRowModel
setClassPK
in interface ExpandoRowModel
classPK
- the class p k of this expando rowpublic ExpandoRow toEscapedModel()
ExpandoRowModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface ExpandoRowModel
AutoEscapeBeanHandler
public boolean isNew()
BaseModel
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
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
isEscapedModel
in interface BaseModel<ExpandoRow>
isEscapedModel
in interface ExpandoRowModel
true
if this model instance is escaped;
false
otherwiseBaseModel.setEscapedModel(boolean)
public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be made escaped by wrapping it with an HTML auto
escape handler using its toEscapedModel
method. For example,
UserModel.toEscapedModel()
.
setEscapedModel
in interface BaseModel<ExpandoRow>
setEscapedModel
in interface ExpandoRowModel
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<ExpandoRow>
getPrimaryKeyObj
in interface ExpandoRowModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<ExpandoRow>
getExpandoBridge
in interface ExpandoRowModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<ExpandoRow>
setExpandoBridgeAttributes
in interface ExpandoRowModel
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.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 String toString()
toString
in interface ExpandoRowModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<ExpandoRow>
toXmlString
in interface ExpandoRowModel
public ExpandoRow getWrappedExpandoRow()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |