|
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.ExpandoColumnWrapper
public class ExpandoColumnWrapper
This class is a wrapper for ExpandoColumn
.
ExpandoColumn
,
Serialized FormConstructor Summary | |
---|---|
ExpandoColumnWrapper(ExpandoColumn expandoColumn)
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(ExpandoColumn expandoColumn)
|
long |
getColumnId()
Gets the column id of this expando column. |
long |
getCompanyId()
Gets the company id of this expando column. |
String |
getDefaultData()
Gets the default data of this expando column. |
Serializable |
getDefaultValue()
|
String |
getDisplayName(Locale locale)
|
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
String |
getName()
Gets the name of this expando column. |
long |
getPrimaryKey()
Gets the primary key of this expando column. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
long |
getTableId()
Gets the table id of this expando column. |
int |
getType()
Gets the type of this expando column. |
String |
getTypeSettings()
Gets the type settings of this expando column. |
UnicodeProperties |
getTypeSettingsProperties()
|
ExpandoColumn |
getWrappedExpandoColumn()
|
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 |
setColumnId(long columnId)
Sets the column id of this expando column. |
void |
setCompanyId(long companyId)
Sets the company id of this expando column. |
void |
setDefaultData(String defaultData)
Sets the default data of this expando column. |
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 column. |
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 column |
void |
setTableId(long tableId)
Sets the table id of this expando column. |
void |
setType(int type)
Sets the type of this expando column. |
void |
setTypeSettings(String typeSettings)
Sets the type settings of this expando column. |
void |
setTypeSettingsProperties(UnicodeProperties typeSettingsProperties)
|
ExpandoColumn |
toEscapedModel()
Gets a copy of this expando column 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 ExpandoColumnWrapper(ExpandoColumn expandoColumn)
Method Detail |
---|
public long getPrimaryKey()
ExpandoColumnModel
getPrimaryKey
in interface ExpandoColumnModel
public void setPrimaryKey(long pk)
ExpandoColumnModel
setPrimaryKey
in interface ExpandoColumnModel
pk
- the primary key of this expando columnpublic long getColumnId()
ExpandoColumnModel
getColumnId
in interface ExpandoColumnModel
public void setColumnId(long columnId)
ExpandoColumnModel
setColumnId
in interface ExpandoColumnModel
columnId
- the column id of this expando columnpublic long getCompanyId()
ExpandoColumnModel
getCompanyId
in interface ExpandoColumnModel
public void setCompanyId(long companyId)
ExpandoColumnModel
setCompanyId
in interface ExpandoColumnModel
companyId
- the company id of this expando columnpublic long getTableId()
ExpandoColumnModel
getTableId
in interface ExpandoColumnModel
public void setTableId(long tableId)
ExpandoColumnModel
setTableId
in interface ExpandoColumnModel
tableId
- the table id of this expando columnpublic String getName()
ExpandoColumnModel
getName
in interface ExpandoColumnModel
public void setName(String name)
ExpandoColumnModel
setName
in interface ExpandoColumnModel
name
- the name of this expando columnpublic int getType()
ExpandoColumnModel
getType
in interface ExpandoColumnModel
public void setType(int type)
ExpandoColumnModel
setType
in interface ExpandoColumnModel
type
- the type of this expando columnpublic String getDefaultData()
ExpandoColumnModel
getDefaultData
in interface ExpandoColumnModel
public void setDefaultData(String defaultData)
ExpandoColumnModel
setDefaultData
in interface ExpandoColumnModel
defaultData
- the default data of this expando columnpublic String getTypeSettings()
ExpandoColumnModel
getTypeSettings
in interface ExpandoColumn
getTypeSettings
in interface ExpandoColumnModel
public void setTypeSettings(String typeSettings)
ExpandoColumnModel
setTypeSettings
in interface ExpandoColumn
setTypeSettings
in interface ExpandoColumnModel
typeSettings
- the type settings of this expando columnpublic ExpandoColumn toEscapedModel()
ExpandoColumnModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface ExpandoColumnModel
AutoEscapeBeanHandler
public boolean isNew()
BaseModel
isNew
in interface BaseModel<ExpandoColumn>
isNew
in interface ExpandoColumnModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<ExpandoColumn>
setNew
in interface ExpandoColumnModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel
in interface BaseModel<ExpandoColumn>
isCachedModel
in interface ExpandoColumnModel
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<ExpandoColumn>
setCachedModel
in interface ExpandoColumnModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
isEscapedModel
in interface BaseModel<ExpandoColumn>
isEscapedModel
in interface ExpandoColumnModel
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<ExpandoColumn>
setEscapedModel
in interface ExpandoColumnModel
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<ExpandoColumn>
getPrimaryKeyObj
in interface ExpandoColumnModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<ExpandoColumn>
getExpandoBridge
in interface ExpandoColumnModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<ExpandoColumn>
setExpandoBridgeAttributes
in interface ExpandoColumnModel
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<ExpandoColumn>
clone
in interface ExpandoColumnModel
clone
in class Object
public int compareTo(ExpandoColumn expandoColumn)
compareTo
in interface ExpandoColumnModel
compareTo
in interface Comparable<ExpandoColumn>
public int hashCode()
hashCode
in interface ExpandoColumnModel
hashCode
in class Object
public String toString()
toString
in interface ExpandoColumnModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<ExpandoColumn>
toXmlString
in interface ExpandoColumnModel
public Serializable getDefaultValue()
getDefaultValue
in interface ExpandoColumn
public String getDisplayName(Locale locale)
getDisplayName
in interface ExpandoColumn
public UnicodeProperties getTypeSettingsProperties()
getTypeSettingsProperties
in interface ExpandoColumn
public void setTypeSettingsProperties(UnicodeProperties typeSettingsProperties)
setTypeSettingsProperties
in interface ExpandoColumn
public ExpandoColumn getWrappedExpandoColumn()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |