|
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.portal.model.VirtualHostWrapper
@ProviderType public class VirtualHostWrapper
This class is a wrapper for VirtualHost
.
VirtualHost
,
Serialized FormConstructor Summary | |
---|---|
VirtualHostWrapper(VirtualHost virtualHost)
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(VirtualHost virtualHost)
|
boolean |
equals(Object obj)
|
long |
getCompanyId()
Returns the company ID of this virtual host. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
String |
getHostname()
Returns the hostname of this virtual host. |
long |
getLayoutSetId()
Returns the layout set ID of this virtual host. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
long |
getPrimaryKey()
Returns the primary key of this virtual host. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
long |
getVirtualHostId()
Returns the virtual host ID of this virtual host. |
VirtualHost |
getWrappedModel()
|
VirtualHost |
getWrappedVirtualHost()
Deprecated. As of 6.1.0, replaced by 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 virtual host. |
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 |
setHostname(String hostname)
Sets the hostname of this virtual host. |
void |
setLayoutSetId(long layoutSetId)
Sets the layout set ID of this virtual host. |
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 virtual host. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setVirtualHostId(long virtualHostId)
Sets the virtual host ID of this virtual host. |
CacheModel<VirtualHost> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
VirtualHost |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler . |
String |
toString()
|
VirtualHost |
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 VirtualHostWrapper(VirtualHost virtualHost)
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<VirtualHost>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<VirtualHost>
public long getPrimaryKey()
getPrimaryKey
in interface VirtualHostModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface VirtualHostModel
primaryKey
- the primary key of this virtual hostpublic long getVirtualHostId()
getVirtualHostId
in interface VirtualHostModel
public void setVirtualHostId(long virtualHostId)
setVirtualHostId
in interface VirtualHostModel
virtualHostId
- the virtual host ID of this virtual hostpublic long getCompanyId()
getCompanyId
in interface VirtualHostModel
public void setCompanyId(long companyId)
setCompanyId
in interface VirtualHostModel
companyId
- the company ID of this virtual hostpublic long getLayoutSetId()
getLayoutSetId
in interface VirtualHostModel
public void setLayoutSetId(long layoutSetId)
setLayoutSetId
in interface VirtualHostModel
layoutSetId
- the layout set ID of this virtual hostpublic String getHostname()
getHostname
in interface VirtualHostModel
public void setHostname(String hostname)
setHostname
in interface VirtualHostModel
hostname
- the hostname of this virtual hostpublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface BaseModel<VirtualHost>
isNew
in interface VirtualHostModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<VirtualHost>
setNew
in interface VirtualHostModel
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<VirtualHost>
isCachedModel
in interface VirtualHostModel
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<VirtualHost>
setCachedModel
in interface VirtualHostModel
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<VirtualHost>
isEscapedModel
in interface VirtualHostModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<VirtualHost>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface VirtualHostModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<VirtualHost>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface VirtualHostModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<VirtualHost>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface VirtualHostModel
public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<VirtualHost>
setExpandoBridgeAttributes
in interface VirtualHostModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<VirtualHost>
setExpandoBridgeAttributes
in interface VirtualHostModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<VirtualHost>
setExpandoBridgeAttributes
in interface VirtualHostModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<VirtualHost>
clone
in interface VirtualHostModel
clone
in class Object
public int compareTo(VirtualHost virtualHost)
compareTo
in interface VirtualHostModel
compareTo
in interface Comparable<VirtualHost>
public int hashCode()
hashCode
in interface VirtualHostModel
hashCode
in class Object
public CacheModel<VirtualHost> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<VirtualHost>
toCacheModel
in interface VirtualHostModel
public VirtualHost toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<VirtualHost>
toEscapedModel
in interface VirtualHostModel
AutoEscapeBeanHandler
public VirtualHost toUnescapedModel()
toUnescapedModel
in interface BaseModel<VirtualHost>
toUnescapedModel
in interface VirtualHostModel
public String toString()
toString
in interface VirtualHostModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<VirtualHost>
toXmlString
in interface VirtualHostModel
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 VirtualHost getWrappedVirtualHost()
getWrappedModel()
public VirtualHost getWrappedModel()
getWrappedModel
in interface ModelWrapper<VirtualHost>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<VirtualHost>
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |