|
Liferay 6.0-ee | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.liferay.portlet.expando.model.ExpandoTableWrapper
public class ExpandoTableWrapper
This class is a wrapper for ExpandoTable
.
ExpandoTable
,
Serialized FormConstructor Summary | |
---|---|
ExpandoTableWrapper(ExpandoTable expandoTable)
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(ExpandoTable expandoTable)
|
String |
getClassName()
Gets the class name of the model instance this expando table is polymorphically associated with. |
long |
getClassNameId()
Gets the class name id of this expando table. |
long |
getCompanyId()
Gets the company id of this expando table. |
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
String |
getName()
Gets the name of this expando table. |
long |
getPrimaryKey()
Gets the primary key of this expando table. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
long |
getTableId()
Gets the table id of this expando table. |
ExpandoTable |
getWrappedExpandoTable()
|
int |
hashCode()
|
boolean |
isCachedModel()
Determines if this model instance was retrieved from the entity cache. |
boolean |
isDefaultTable()
|
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 |
setClassNameId(long classNameId)
Sets the class name id of this expando table. |
void |
setCompanyId(long companyId)
Sets the company id of this expando table. |
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 |
setName(String name)
Sets the name of this expando table. |
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 table |
void |
setTableId(long tableId)
Sets the table id of this expando table. |
ExpandoTable |
toEscapedModel()
Gets a copy of this entity 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 ExpandoTableWrapper(ExpandoTable expandoTable)
Method Detail |
---|
public long getPrimaryKey()
getPrimaryKey
in interface ExpandoTableModel
public void setPrimaryKey(long pk)
setPrimaryKey
in interface ExpandoTableModel
pk
- the primary key of this expando tablepublic long getTableId()
getTableId
in interface ExpandoTableModel
public void setTableId(long tableId)
setTableId
in interface ExpandoTableModel
tableId
- the table id of this expando tablepublic long getCompanyId()
getCompanyId
in interface ExpandoTableModel
public void setCompanyId(long companyId)
setCompanyId
in interface ExpandoTableModel
companyId
- the company id of this expando tablepublic String getClassName()
getClassName
in interface ExpandoTableModel
public long getClassNameId()
getClassNameId
in interface ExpandoTableModel
public void setClassNameId(long classNameId)
setClassNameId
in interface ExpandoTableModel
classNameId
- the class name id of this expando tablepublic String getName()
getName
in interface ExpandoTableModel
public void setName(String name)
setName
in interface ExpandoTableModel
name
- the name of this expando tablepublic boolean isNew()
BaseModel
isNew
in interface BaseModel<ExpandoTable>
isNew
in interface ExpandoTableModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<ExpandoTable>
setNew
in interface ExpandoTableModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel
in interface BaseModel<ExpandoTable>
isCachedModel
in interface ExpandoTableModel
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<ExpandoTable>
setCachedModel
in interface ExpandoTableModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
isEscapedModel
in interface BaseModel<ExpandoTable>
isEscapedModel
in interface ExpandoTableModel
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<ExpandoTable>
setEscapedModel
in interface ExpandoTableModel
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<ExpandoTable>
getPrimaryKeyObj
in interface ExpandoTableModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<ExpandoTable>
getExpandoBridge
in interface ExpandoTableModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<ExpandoTable>
setExpandoBridgeAttributes
in interface ExpandoTableModel
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<ExpandoTable>
clone
in interface ExpandoTableModel
clone
in class Object
public int compareTo(ExpandoTable expandoTable)
compareTo
in interface ExpandoTableModel
compareTo
in interface Comparable<ExpandoTable>
public int hashCode()
hashCode
in interface ExpandoTableModel
hashCode
in class Object
public ExpandoTable toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<ExpandoTable>
toEscapedModel
in interface ExpandoTableModel
AutoEscapeBeanHandler
public String toString()
toString
in interface ExpandoTableModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<ExpandoTable>
toXmlString
in interface ExpandoTableModel
public boolean isDefaultTable()
isDefaultTable
in interface ExpandoTable
public ExpandoTable getWrappedExpandoTable()
|
Liferay 6.0-ee | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |