public class VirtualHostWrapper extends BaseModelWrapper<VirtualHost> implements ModelWrapper<VirtualHost>, VirtualHost
This class is a wrapper for VirtualHost.
VirtualHost,
Serialized FormmodelVIRTUAL_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.
|
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, toXmlStringgetWrappedModelclone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlStringgetModelClass, getModelClassNamepublic 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 VirtualHostModelpublic long getCompanyId()
getCompanyId in interface ShardedModelgetCompanyId in interface VirtualHostModelpublic long getCtCollectionId()
getCtCollectionId in interface CTModel<VirtualHost>getCtCollectionId in interface VirtualHostModelpublic boolean getDefaultVirtualHost()
getDefaultVirtualHost in interface VirtualHostModelpublic String getHostname()
getHostname in interface VirtualHostModelpublic String getLanguageId()
getLanguageId in interface VirtualHostModelpublic long getLayoutSetId()
getLayoutSetId in interface VirtualHostModelpublic long getMvccVersion()
getMvccVersion in interface MVCCModelgetMvccVersion in interface VirtualHostModelpublic long getPrimaryKey()
getPrimaryKey in interface CTModel<VirtualHost>getPrimaryKey in interface VirtualHostModelpublic long getVirtualHostId()
getVirtualHostId in interface VirtualHostModelpublic boolean isDefaultVirtualHost()
true if this virtual host is default virtual host.isDefaultVirtualHost in interface VirtualHostModeltrue if this virtual host is default virtual host; false otherwisepublic void persist()
PersistedModelpersist in interface PersistedModelpublic void setCompanyId(long companyId)
setCompanyId in interface ShardedModelsetCompanyId in interface VirtualHostModelcompanyId - the company ID of this virtual hostpublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId in interface CTModel<VirtualHost>setCtCollectionId in interface VirtualHostModelctCollectionId - the ct collection ID of this virtual hostpublic void setDefaultVirtualHost(boolean defaultVirtualHost)
setDefaultVirtualHost in interface VirtualHostModeldefaultVirtualHost - the default virtual host of this virtual hostpublic void setHostname(String hostname)
setHostname in interface VirtualHostModelhostname - the hostname of this virtual hostpublic void setLanguageId(String languageId)
setLanguageId in interface VirtualHostModellanguageId - the language ID of this virtual hostpublic void setLayoutSetId(long layoutSetId)
setLayoutSetId in interface VirtualHostModellayoutSetId - the layout set ID of this virtual hostpublic void setMvccVersion(long mvccVersion)
setMvccVersion in interface MVCCModelsetMvccVersion in interface VirtualHostModelmvccVersion - the mvcc version of this virtual hostpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface CTModel<VirtualHost>setPrimaryKey in interface VirtualHostModelprimaryKey - the primary key of this virtual hostpublic void setVirtualHostId(long virtualHostId)
setVirtualHostId in interface VirtualHostModelvirtualHostId - the virtual host ID of this virtual hostpublic 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>