public class VirtualHostWrapper extends BaseModelWrapper<VirtualHost> implements ModelWrapper<VirtualHost>, VirtualHost
This class is a wrapper for VirtualHost
.
VirtualHost
,
Serialized Formmodel
VIRTUAL_HOST_ID_ACCESSOR
Constructor and Description |
---|
VirtualHostWrapper(VirtualHost virtualHost) |
Modifier and Type | Method and Description |
---|---|
VirtualHost |
cloneWithOriginalValues() |
Map<String,Function<VirtualHost,Object>> |
getAttributeGetterFunctions() |
Map<String,BiConsumer<VirtualHost,Object>> |
getAttributeSetterBiConsumers() |
long |
getCompanyId()
Returns the company ID of this virtual host.
|
long |
getCtCollectionId()
Returns the ct collection ID of this virtual host.
|
boolean |
getDefaultVirtualHost()
Returns the default virtual host of this virtual host.
|
String |
getHostname()
Returns the hostname of this virtual host.
|
String |
getLanguageId()
Returns the language ID of this virtual host.
|
long |
getLayoutSetId()
Returns the layout set ID of this virtual host.
|
Map<String,Object> |
getModelAttributes() |
long |
getMvccVersion()
Returns the mvcc version of this virtual host.
|
long |
getPrimaryKey()
Returns the primary key of this virtual host.
|
long |
getVirtualHostId()
Returns the virtual host ID of this virtual host.
|
boolean |
isDefaultVirtualHost()
Returns
true if this virtual host is default virtual host. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
setCompanyId(long companyId)
Sets the company ID of this virtual host.
|
void |
setCtCollectionId(long ctCollectionId)
Sets the ct collection ID of this virtual host.
|
void |
setDefaultVirtualHost(boolean defaultVirtualHost)
Sets whether this virtual host is default virtual host.
|
void |
setHostname(String hostname)
Sets the hostname of this virtual host.
|
void |
setLanguageId(String languageId)
Sets the language ID of this virtual host.
|
void |
setLayoutSetId(long layoutSetId)
Sets the layout set ID of this virtual host.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this virtual host.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this virtual host.
|
void |
setVirtualHostId(long virtualHostId)
Sets the virtual host ID of this virtual host.
|
String |
toXmlString() |
protected VirtualHostWrapper |
wrap(VirtualHost virtualHost) |
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel
getWrappedModel
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
getModelClass, getModelClassName
public VirtualHostWrapper(VirtualHost virtualHost)
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<VirtualHost>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<VirtualHost>
public VirtualHost cloneWithOriginalValues()
cloneWithOriginalValues
in interface BaseModel<VirtualHost>
cloneWithOriginalValues
in interface VirtualHostModel
public long getCompanyId()
getCompanyId
in interface VirtualHostModel
public long getCtCollectionId()
getCtCollectionId
in interface CTModel<VirtualHost>
getCtCollectionId
in interface VirtualHostModel
public boolean getDefaultVirtualHost()
getDefaultVirtualHost
in interface VirtualHostModel
public String getHostname()
getHostname
in interface VirtualHostModel
public String getLanguageId()
getLanguageId
in interface VirtualHostModel
public long getLayoutSetId()
getLayoutSetId
in interface VirtualHostModel
public long getMvccVersion()
getMvccVersion
in interface MVCCModel
getMvccVersion
in interface VirtualHostModel
public long getPrimaryKey()
getPrimaryKey
in interface CTModel<VirtualHost>
getPrimaryKey
in interface VirtualHostModel
public long getVirtualHostId()
getVirtualHostId
in interface VirtualHostModel
public boolean isDefaultVirtualHost()
true
if this virtual host is default virtual host.isDefaultVirtualHost
in interface VirtualHostModel
true
if this virtual host is default virtual host; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void setCompanyId(long companyId)
setCompanyId
in interface VirtualHostModel
companyId
- the company ID of this virtual hostpublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId
in interface CTModel<VirtualHost>
setCtCollectionId
in interface VirtualHostModel
ctCollectionId
- the ct collection ID of this virtual hostpublic void setDefaultVirtualHost(boolean defaultVirtualHost)
setDefaultVirtualHost
in interface VirtualHostModel
defaultVirtualHost
- the default virtual host of this virtual hostpublic void setHostname(String hostname)
setHostname
in interface VirtualHostModel
hostname
- the hostname of this virtual hostpublic void setLanguageId(String languageId)
setLanguageId
in interface VirtualHostModel
languageId
- the language ID of this virtual hostpublic void setLayoutSetId(long layoutSetId)
setLayoutSetId
in interface VirtualHostModel
layoutSetId
- the layout set ID of this virtual hostpublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface MVCCModel
setMvccVersion
in interface VirtualHostModel
mvccVersion
- the mvcc version of this virtual hostpublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface CTModel<VirtualHost>
setPrimaryKey
in interface VirtualHostModel
primaryKey
- the primary key of this virtual hostpublic void setVirtualHostId(long virtualHostId)
setVirtualHostId
in interface VirtualHostModel
virtualHostId
- the virtual host ID of this virtual hostpublic String toXmlString()
toXmlString
in interface VirtualHostModel
public Map<String,Function<VirtualHost,Object>> getAttributeGetterFunctions()
getAttributeGetterFunctions
in interface BaseModel<VirtualHost>
public Map<String,BiConsumer<VirtualHost,Object>> getAttributeSetterBiConsumers()
getAttributeSetterBiConsumers
in interface BaseModel<VirtualHost>
protected VirtualHostWrapper wrap(VirtualHost virtualHost)
wrap
in class BaseModelWrapper<VirtualHost>