Liferay 6.1.2-ce-ga3

com.liferay.portlet.announcements.model
Class AnnouncementsDeliveryWrapper

java.lang.Object
  extended by com.liferay.portlet.announcements.model.AnnouncementsDeliveryWrapper
All Implemented Interfaces:
BaseModel<AnnouncementsDelivery>, ClassedModel, ModelWrapper<AnnouncementsDelivery>, PersistedModel, AnnouncementsDelivery, AnnouncementsDeliveryModel, Serializable, Cloneable, Comparable<AnnouncementsDelivery>

public class AnnouncementsDeliveryWrapper
extends Object
implements AnnouncementsDelivery, ModelWrapper<AnnouncementsDelivery>

This class is a wrapper for AnnouncementsDelivery.

See Also:
AnnouncementsDelivery, Serialized Form

Constructor Summary
AnnouncementsDeliveryWrapper(AnnouncementsDelivery announcementsDelivery)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(AnnouncementsDelivery announcementsDelivery)
           
 boolean equals(Object obj)
           
 long getCompanyId()
          Returns the company ID of this announcements delivery.
 long getDeliveryId()
          Returns the delivery ID of this announcements delivery.
 boolean getEmail()
          Returns the email of this announcements delivery.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 long getPrimaryKey()
          Returns the primary key of this announcements delivery.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 boolean getSms()
          Returns the sms of this announcements delivery.
 String getType()
          Returns the type of this announcements delivery.
 long getUserId()
          Returns the user ID of this announcements delivery.
 String getUserUuid()
          Returns the user uuid of this announcements delivery.
 boolean getWebsite()
          Returns the website of this announcements delivery.
 AnnouncementsDelivery getWrappedAnnouncementsDelivery()
          Deprecated. Renamed to getWrappedModel()
 AnnouncementsDelivery getWrappedModel()
           
 int hashCode()
           
 boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
 boolean isEmail()
          Returns true if this announcements delivery is email.
 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.
 boolean isSms()
          Returns true if this announcements delivery is sms.
 boolean isWebsite()
          Returns true if this announcements delivery is website.
 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 announcements delivery.
 void setDeliveryId(long deliveryId)
          Sets the delivery ID of this announcements delivery.
 void setEmail(boolean email)
          Sets whether this announcements delivery is email.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 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 announcements delivery.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setSms(boolean sms)
          Sets whether this announcements delivery is sms.
 void setType(String type)
          Sets the type of this announcements delivery.
 void setUserId(long userId)
          Sets the user ID of this announcements delivery.
 void setUserUuid(String userUuid)
          Sets the user uuid of this announcements delivery.
 void setWebsite(boolean website)
          Sets whether this announcements delivery is website.
 CacheModel<AnnouncementsDelivery> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 AnnouncementsDelivery toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 AnnouncementsDelivery 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

AnnouncementsDeliveryWrapper

public AnnouncementsDeliveryWrapper(AnnouncementsDelivery announcementsDelivery)
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<AnnouncementsDelivery>

setModelAttributes

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

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this announcements delivery.

Specified by:
getPrimaryKey in interface AnnouncementsDeliveryModel
Returns:
the primary key of this announcements delivery

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this announcements delivery.

Specified by:
setPrimaryKey in interface AnnouncementsDeliveryModel
Parameters:
primaryKey - the primary key of this announcements delivery

getDeliveryId

public long getDeliveryId()
Returns the delivery ID of this announcements delivery.

Specified by:
getDeliveryId in interface AnnouncementsDeliveryModel
Returns:
the delivery ID of this announcements delivery

setDeliveryId

public void setDeliveryId(long deliveryId)
Sets the delivery ID of this announcements delivery.

Specified by:
setDeliveryId in interface AnnouncementsDeliveryModel
Parameters:
deliveryId - the delivery ID of this announcements delivery

getCompanyId

public long getCompanyId()
Returns the company ID of this announcements delivery.

Specified by:
getCompanyId in interface AnnouncementsDeliveryModel
Returns:
the company ID of this announcements delivery

setCompanyId

public void setCompanyId(long companyId)
Sets the company ID of this announcements delivery.

Specified by:
setCompanyId in interface AnnouncementsDeliveryModel
Parameters:
companyId - the company ID of this announcements delivery

getUserId

public long getUserId()
Returns the user ID of this announcements delivery.

Specified by:
getUserId in interface AnnouncementsDeliveryModel
Returns:
the user ID of this announcements delivery

setUserId

public void setUserId(long userId)
Sets the user ID of this announcements delivery.

Specified by:
setUserId in interface AnnouncementsDeliveryModel
Parameters:
userId - the user ID of this announcements delivery

getUserUuid

public String getUserUuid()
                   throws SystemException
Returns the user uuid of this announcements delivery.

Specified by:
getUserUuid in interface AnnouncementsDeliveryModel
Returns:
the user uuid of this announcements delivery
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Sets the user uuid of this announcements delivery.

Specified by:
setUserUuid in interface AnnouncementsDeliveryModel
Parameters:
userUuid - the user uuid of this announcements delivery

getType

public String getType()
Returns the type of this announcements delivery.

Specified by:
getType in interface AnnouncementsDeliveryModel
Returns:
the type of this announcements delivery

setType

public void setType(String type)
Sets the type of this announcements delivery.

Specified by:
setType in interface AnnouncementsDeliveryModel
Parameters:
type - the type of this announcements delivery

getEmail

public boolean getEmail()
Returns the email of this announcements delivery.

Specified by:
getEmail in interface AnnouncementsDeliveryModel
Returns:
the email of this announcements delivery

isEmail

public boolean isEmail()
Returns true if this announcements delivery is email.

Specified by:
isEmail in interface AnnouncementsDeliveryModel
Returns:
true if this announcements delivery is email; false otherwise

setEmail

public void setEmail(boolean email)
Sets whether this announcements delivery is email.

Specified by:
setEmail in interface AnnouncementsDeliveryModel
Parameters:
email - the email of this announcements delivery

getSms

public boolean getSms()
Returns the sms of this announcements delivery.

Specified by:
getSms in interface AnnouncementsDeliveryModel
Returns:
the sms of this announcements delivery

isSms

public boolean isSms()
Returns true if this announcements delivery is sms.

Specified by:
isSms in interface AnnouncementsDeliveryModel
Returns:
true if this announcements delivery is sms; false otherwise

setSms

public void setSms(boolean sms)
Sets whether this announcements delivery is sms.

Specified by:
setSms in interface AnnouncementsDeliveryModel
Parameters:
sms - the sms of this announcements delivery

getWebsite

public boolean getWebsite()
Returns the website of this announcements delivery.

Specified by:
getWebsite in interface AnnouncementsDeliveryModel
Returns:
the website of this announcements delivery

isWebsite

public boolean isWebsite()
Returns true if this announcements delivery is website.

Specified by:
isWebsite in interface AnnouncementsDeliveryModel
Returns:
true if this announcements delivery is website; false otherwise

setWebsite

public void setWebsite(boolean website)
Sets whether this announcements delivery is website.

Specified by:
setWebsite in interface AnnouncementsDeliveryModel
Parameters:
website - the website of this announcements delivery

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<AnnouncementsDelivery>
Specified by:
isNew in interface AnnouncementsDeliveryModel
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<AnnouncementsDelivery>
Specified by:
setNew in interface AnnouncementsDeliveryModel
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<AnnouncementsDelivery>
Specified by:
isCachedModel in interface AnnouncementsDeliveryModel
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<AnnouncementsDelivery>
Specified by:
setCachedModel in interface AnnouncementsDeliveryModel
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<AnnouncementsDelivery>
Specified by:
isEscapedModel in interface AnnouncementsDeliveryModel
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<AnnouncementsDelivery>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface AnnouncementsDeliveryModel
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<AnnouncementsDelivery>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface AnnouncementsDeliveryModel
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<AnnouncementsDelivery>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface AnnouncementsDeliveryModel
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<AnnouncementsDelivery>
Specified by:
setExpandoBridgeAttributes in interface AnnouncementsDeliveryModel
Parameters:
serviceContext - the service context
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<AnnouncementsDelivery>
Specified by:
clone in interface AnnouncementsDeliveryModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(AnnouncementsDelivery announcementsDelivery)
Specified by:
compareTo in interface AnnouncementsDeliveryModel
Specified by:
compareTo in interface Comparable<AnnouncementsDelivery>

hashCode

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

toCacheModel

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

Specified by:
toCacheModel in interface BaseModel<AnnouncementsDelivery>
Specified by:
toCacheModel in interface AnnouncementsDeliveryModel
Returns:
the cache model object

toEscapedModel

public AnnouncementsDelivery 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<AnnouncementsDelivery>
Specified by:
toEscapedModel in interface AnnouncementsDeliveryModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public AnnouncementsDelivery toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<AnnouncementsDelivery>
Specified by:
toUnescapedModel in interface AnnouncementsDeliveryModel

toString

public String toString()
Specified by:
toString in interface AnnouncementsDeliveryModel
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<AnnouncementsDelivery>
Specified by:
toXmlString in interface AnnouncementsDeliveryModel
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

getWrappedAnnouncementsDelivery

public AnnouncementsDelivery getWrappedAnnouncementsDelivery()
Deprecated. Renamed to getWrappedModel()


getWrappedModel

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

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<AnnouncementsDelivery>

Liferay 6.1.2-ce-ga3