Liferay 6.1.2-ce-ga3

com.liferay.portal.model.impl
Class VirtualHostModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<VirtualHost>
      extended by com.liferay.portal.model.impl.VirtualHostModelImpl
All Implemented Interfaces:
BaseModel<VirtualHost>, ClassedModel, VirtualHostModel, Serializable, Cloneable, Comparable<VirtualHost>
Direct Known Subclasses:
VirtualHostBaseImpl

public class VirtualHostModelImpl
extends BaseModelImpl<VirtualHost>
implements VirtualHostModel

The base model implementation for the VirtualHost service. Represents a row in the "VirtualHost" database table, with each column mapped to a property of this class.

This implementation and its corresponding interface VirtualHostModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in VirtualHostImpl.

See Also:
VirtualHostImpl, VirtualHost, VirtualHostModel, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
static boolean COLUMN_BITMASK_ENABLED
           
static long COMPANYID_COLUMN_BITMASK
           
static String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static long HOSTNAME_COLUMN_BITMASK
           
static long LAYOUTSETID_COLUMN_BITMASK
           
static long LOCK_EXPIRATION_TIME
           
static String SESSION_FACTORY
           
static Object[][] TABLE_COLUMNS
           
static String TABLE_NAME
           
static String TABLE_SQL_CREATE
           
static String TABLE_SQL_DROP
           
static String TX_MANAGER
           
 
Constructor Summary
VirtualHostModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(VirtualHost virtualHost)
           
 boolean equals(Object obj)
           
 long getColumnBitmask()
           
 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 getOriginalCompanyId()
           
 String getOriginalHostname()
           
 long getOriginalLayoutSetId()
           
 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.
 int hashCode()
           
 void resetOriginalValues()
          Reset all original fields to current values.
 void setCompanyId(long companyId)
          Sets the company ID of this virtual host.
 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 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 com.liferay.portal.model.impl.BaseModelImpl
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.model.VirtualHostModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setNew
 

Field Detail

TABLE_NAME

public static final String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final Object[][] TABLE_COLUMNS

TABLE_SQL_CREATE

public static final String TABLE_SQL_CREATE
See Also:
Constant Field Values

TABLE_SQL_DROP

public static final String TABLE_SQL_DROP
See Also:
Constant Field Values

DATA_SOURCE

public static final String DATA_SOURCE
See Also:
Constant Field Values

SESSION_FACTORY

public static final String SESSION_FACTORY
See Also:
Constant Field Values

TX_MANAGER

public static final String TX_MANAGER
See Also:
Constant Field Values

ENTITY_CACHE_ENABLED

public static final boolean ENTITY_CACHE_ENABLED

FINDER_CACHE_ENABLED

public static final boolean FINDER_CACHE_ENABLED

COLUMN_BITMASK_ENABLED

public static final boolean COLUMN_BITMASK_ENABLED

COMPANYID_COLUMN_BITMASK

public static long COMPANYID_COLUMN_BITMASK

HOSTNAME_COLUMN_BITMASK

public static long HOSTNAME_COLUMN_BITMASK

LAYOUTSETID_COLUMN_BITMASK

public static long LAYOUTSETID_COLUMN_BITMASK

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

VirtualHostModelImpl

public VirtualHostModelImpl()
Method Detail

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: VirtualHostModel
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)
Description copied from interface: VirtualHostModel
Sets the primary key of this virtual host.

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

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

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>
Overrides:
getModelAttributes in class BaseModelImpl<VirtualHost>

setModelAttributes

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

getVirtualHostId

public long getVirtualHostId()
Description copied from interface: VirtualHostModel
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)
Description copied from interface: VirtualHostModel
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()
Description copied from interface: VirtualHostModel
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)
Description copied from interface: VirtualHostModel
Sets the company ID of this virtual host.

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

getOriginalCompanyId

public long getOriginalCompanyId()

getLayoutSetId

public long getLayoutSetId()
Description copied from interface: VirtualHostModel
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)
Description copied from interface: VirtualHostModel
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

getOriginalLayoutSetId

public long getOriginalLayoutSetId()

getHostname

public String getHostname()
Description copied from interface: VirtualHostModel
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)
Description copied from interface: VirtualHostModel
Sets the hostname of this virtual host.

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

getOriginalHostname

public String getOriginalHostname()

getColumnBitmask

public long getColumnBitmask()

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
Overrides:
getExpandoBridge in class BaseModelImpl<VirtualHost>
Returns:
the expando bridge for this model instance

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
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<VirtualHost>
Parameters:
serviceContext - the service context
See Also:
ServiceContext.getExpandoBridgeAttributes( )

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
Overrides:
toEscapedModel in class BaseModelImpl<VirtualHost>
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
Overrides:
toUnescapedModel in class BaseModelImpl<VirtualHost>

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
Specified by:
clone in class BaseModelImpl<VirtualHost>
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>

equals

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

hashCode

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

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<VirtualHost>
Overrides:
resetOriginalValues in class BaseModelImpl<VirtualHost>

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
Overrides:
toCacheModel in class BaseModelImpl<VirtualHost>
Returns:
the cache model object

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

Liferay 6.1.2-ce-ga3