@ProviderType public class VirtualHostWrapper extends java.lang.Object implements VirtualHost, ModelWrapper<VirtualHost>
This class is a wrapper for VirtualHost.
VirtualHost,
Serialized Form| Constructor and Description |
|---|
VirtualHostWrapper(VirtualHost virtualHost) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(VirtualHost virtualHost) |
boolean |
equals(java.lang.Object obj) |
long |
getCompanyId()
Returns the company ID of this virtual host.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
java.lang.String |
getHostname()
Returns the hostname of this virtual host.
|
long |
getLayoutSetId()
Returns the layout set ID of this virtual host.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
long |
getPrimaryKey()
Returns the primary key of this virtual host.
|
java.io.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(java.lang.String hostname)
Sets the hostname of this virtual host.
|
void |
setLayoutSetId(long layoutSetId)
Sets the layout set ID of this virtual host.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.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(java.io.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. |
java.lang.String |
toString() |
VirtualHost |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public VirtualHostWrapper(VirtualHost virtualHost)
public java.lang.Class<?> getModelClass()
getModelClass in interface ClassedModelpublic java.lang.String getModelClassName()
getModelClassName in interface ClassedModelpublic java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface BaseModel<VirtualHost>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<VirtualHost>public long getPrimaryKey()
getPrimaryKey in interface VirtualHostModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface VirtualHostModelprimaryKey - the primary key of this virtual hostpublic long getVirtualHostId()
getVirtualHostId in interface VirtualHostModelpublic void setVirtualHostId(long virtualHostId)
setVirtualHostId in interface VirtualHostModelvirtualHostId - the virtual host ID of this virtual hostpublic long getCompanyId()
getCompanyId in interface VirtualHostModelpublic void setCompanyId(long companyId)
setCompanyId in interface VirtualHostModelcompanyId - the company ID of this virtual hostpublic long getLayoutSetId()
getLayoutSetId in interface VirtualHostModelpublic void setLayoutSetId(long layoutSetId)
setLayoutSetId in interface VirtualHostModellayoutSetId - the layout set ID of this virtual hostpublic java.lang.String getHostname()
getHostname in interface VirtualHostModelpublic void setHostname(java.lang.String hostname)
setHostname in interface VirtualHostModelhostname - the hostname of this virtual hostpublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface BaseModel<VirtualHost>isNew in interface VirtualHostModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<VirtualHost>setNew in interface VirtualHostModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<VirtualHost>isCachedModel in interface VirtualHostModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<VirtualHost>setCachedModel in interface VirtualHostModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<VirtualHost>isEscapedModel in interface VirtualHostModeltrue if this model instance is escaped;
false otherwisepublic java.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<VirtualHost>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface VirtualHostModelpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<VirtualHost>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface VirtualHostModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<VirtualHost>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface VirtualHostModelpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<VirtualHost>setExpandoBridgeAttributes in interface VirtualHostModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<VirtualHost>setExpandoBridgeAttributes in interface VirtualHostModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<VirtualHost>setExpandoBridgeAttributes in interface VirtualHostModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public java.lang.Object clone()
BaseModelclone in interface BaseModel<VirtualHost>clone in interface VirtualHostModelclone in class java.lang.Objectpublic int compareTo(VirtualHost virtualHost)
compareTo in interface VirtualHostModelcompareTo in interface java.lang.Comparable<VirtualHost>public int hashCode()
hashCode in interface VirtualHostModelhashCode in class java.lang.Objectpublic CacheModel<VirtualHost> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<VirtualHost>toCacheModel in interface VirtualHostModelpublic VirtualHost toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<VirtualHost>toEscapedModel in interface VirtualHostModelAutoEscapeBeanHandlerpublic VirtualHost toUnescapedModel()
toUnescapedModel in interface BaseModel<VirtualHost>toUnescapedModel in interface VirtualHostModelpublic java.lang.String toString()
toString in interface VirtualHostModeltoString in class java.lang.Objectpublic java.lang.String toXmlString()
BaseModeltoXmlString in interface BaseModel<VirtualHost>toXmlString in interface VirtualHostModelpublic void persist()
throws SystemException
PersistedModelpersist in interface PersistedModelSystemException - if a system exception occurredpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic VirtualHost getWrappedVirtualHost()
getWrappedModel()public VirtualHost getWrappedModel()
getWrappedModel in interface ModelWrapper<VirtualHost>public void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<VirtualHost>