Liferay 6.2-ce-ga5

com.liferay.portal.model
Class VirtualHostWrapper

java.lang.Object
  extended by com.liferay.portal.model.VirtualHostWrapper
All Implemented Interfaces:
BaseModel<VirtualHost>, ClassedModel, ModelWrapper<VirtualHost>, PersistedModel, VirtualHost, VirtualHostModel, Serializable, Cloneable, Comparable<VirtualHost>

@ProviderType
public class VirtualHostWrapper
extends Object
implements VirtualHost, ModelWrapper<VirtualHost>

This class is a wrapper for VirtualHost.

See Also:
VirtualHost, Serialized Form

Constructor 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

VirtualHostWrapper

public VirtualHostWrapper(VirtualHost virtualHost)
Method Detail

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<VirtualHost>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<VirtualHost>

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this virtual host.

Specified by:
getPrimaryKey in interface VirtualHostModel
Returns:
the primary key of this virtual host

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this virtual host.

Specified by:
setPrimaryKey in interface VirtualHostModel
Parameters:
primaryKey - the primary key of this virtual host

getVirtualHostId

public long getVirtualHostId()
Returns the virtual host ID of this virtual host.

Specified by:
getVirtualHostId in interface VirtualHostModel
Returns:
the virtual host ID of this virtual host

setVirtualHostId

public void setVirtualHostId(long virtualHostId)
Sets the virtual host ID of this virtual host.

Specified by:
setVirtualHostId in interface VirtualHostModel
Parameters:
virtualHostId - the virtual host ID of this virtual host

getCompanyId

public long getCompanyId()
Returns the company ID of this virtual host.

Specified by:
getCompanyId in interface VirtualHostModel
Returns:
the company ID of this virtual host

setCompanyId

public void setCompanyId(long companyId)
Sets the company ID of this virtual host.

Specified by:
setCompanyId in interface VirtualHostModel
Parameters:
companyId - the company ID of this virtual host

getLayoutSetId

public long getLayoutSetId()
Returns the layout set ID of this virtual host.

Specified by:
getLayoutSetId in interface VirtualHostModel
Returns:
the layout set ID of this virtual host

setLayoutSetId

public void setLayoutSetId(long layoutSetId)
Sets the layout set ID of this virtual host.

Specified by:
setLayoutSetId in interface VirtualHostModel
Parameters:
layoutSetId - the layout set ID of this virtual host

getHostname

public String getHostname()
Returns the hostname of this virtual host.

Specified by:
getHostname in interface VirtualHostModel
Returns:
the hostname of this virtual host

setHostname

public void setHostname(String hostname)
Sets the hostname of this virtual host.

Specified by:
setHostname in interface VirtualHostModel
Parameters:
hostname - the hostname of this virtual host

isNew

public boolean isNew()
Description copied from interface: BaseModel
Returns true if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<VirtualHost>
Specified by:
isNew in interface VirtualHostModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<VirtualHost>
Specified by:
setNew in interface VirtualHostModel
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Returns true if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<VirtualHost>
Specified by:
isCachedModel in interface VirtualHostModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<VirtualHost>
Specified by:
setCachedModel in interface VirtualHostModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Returns true if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<VirtualHost>
Specified by:
isEscapedModel in interface VirtualHostModel
Returns:
true if this model instance is escaped; false otherwise

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Returns the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<VirtualHost>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface VirtualHostModel
Returns:
the primary key of this model instance

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<VirtualHost>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface VirtualHostModel
Parameters:
primaryKeyObj - the primary key of this model instance

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Returns the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<VirtualHost>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface VirtualHostModel
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<VirtualHost>
Specified by:
setExpandoBridgeAttributes in interface VirtualHostModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<VirtualHost>
Specified by:
setExpandoBridgeAttributes in interface VirtualHostModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<VirtualHost>
Specified by:
setExpandoBridgeAttributes in interface VirtualHostModel
Parameters:
serviceContext - the service context to be applied
See Also:
ServiceContext.getExpandoBridgeAttributes( )

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<VirtualHost>
Specified by:
clone in interface VirtualHostModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(VirtualHost virtualHost)
Specified by:
compareTo in interface VirtualHostModel
Specified by:
compareTo in interface Comparable<VirtualHost>

hashCode

public int hashCode()
Specified by:
hashCode in interface VirtualHostModel
Overrides:
hashCode in class Object

toCacheModel

public CacheModel<VirtualHost> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<VirtualHost>
Specified by:
toCacheModel in interface VirtualHostModel
Returns:
the cache model object

toEscapedModel

public VirtualHost toEscapedModel()
Description copied from interface: BaseModel
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface BaseModel<VirtualHost>
Specified by:
toEscapedModel in interface VirtualHostModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public VirtualHost toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<VirtualHost>
Specified by:
toUnescapedModel in interface VirtualHostModel

toString

public String toString()
Specified by:
toString in interface VirtualHostModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Returns the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<VirtualHost>
Specified by:
toXmlString in interface VirtualHostModel
Returns:
the XML representation of this model instance

persist

public void persist()
             throws SystemException
Description copied from interface: PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
persist in interface PersistedModel
Throws:
SystemException - if a system exception occurred

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getWrappedVirtualHost

public VirtualHost getWrappedVirtualHost()
Deprecated. As of 6.1.0, replaced by getWrappedModel()


getWrappedModel

public VirtualHost getWrappedModel()
Specified by:
getWrappedModel in interface ModelWrapper<VirtualHost>

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<VirtualHost>

Liferay 6.2-ce-ga5