Liferay 7.0-ce-m6

com.liferay.portlet.dynamicdatamapping.model
Class DDMTemplateLinkWrapper

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.model.DDMTemplateLinkWrapper
All Implemented Interfaces:
AttachedModel, BaseModel<DDMTemplateLink>, ClassedModel, ModelWrapper<DDMTemplateLink>, PersistedModel, TypedModel, DDMTemplateLink, DDMTemplateLinkModel, Serializable, Cloneable, Comparable<DDMTemplateLink>

@ProviderType
public class DDMTemplateLinkWrapper
extends Object
implements DDMTemplateLink, ModelWrapper<DDMTemplateLink>

This class is a wrapper for DDMTemplateLink.

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

Constructor Summary
DDMTemplateLinkWrapper(DDMTemplateLink ddmTemplateLink)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(DDMTemplateLink ddmTemplateLink)
           
 boolean equals(Object obj)
           
 String getClassName()
          Returns the fully qualified class name of this d d m template link.
 long getClassNameId()
          Returns the class name ID of this d d m template link.
 long getClassPK()
          Returns the class p k of this d d m template link.
 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 d d m template link.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 DDMTemplate getTemplate()
           
 long getTemplateId()
          Returns the template ID of this d d m template link.
 long getTemplateLinkId()
          Returns the template link ID of this d d m template link.
 DDMTemplateLink getWrappedDDMTemplateLink()
          Deprecated. As of 6.1.0, replaced by getWrappedModel()
 DDMTemplateLink getWrappedModel()
           
 int hashCode()
           
 boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
 boolean isEntityCacheEnabled()
          Returns true if this model's entity cache is enabled.
 boolean isEscapedModel()
          Returns true if this model instance is escaped.
 boolean isFinderCacheEnabled()
          Returns true if this model's finder cache is enabled.
 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 setClassName(String className)
           
 void setClassNameId(long classNameId)
          Sets the class name ID of this d d m template link.
 void setClassPK(long classPK)
          Sets the class p k of this d d m template link.
 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 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 d d m template link.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setTemplateId(long templateId)
          Sets the template ID of this d d m template link.
 void setTemplateLinkId(long templateLinkId)
          Sets the template link ID of this d d m template link.
 CacheModel<DDMTemplateLink> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 DDMTemplateLink toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 DDMTemplateLink 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

DDMTemplateLinkWrapper

public DDMTemplateLinkWrapper(DDMTemplateLink ddmTemplateLink)
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<DDMTemplateLink>

setModelAttributes

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

clone

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

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

compareTo

public int compareTo(DDMTemplateLink ddmTemplateLink)
Specified by:
compareTo in interface DDMTemplateLinkModel
Specified by:
compareTo in interface Comparable<DDMTemplateLink>

getClassName

public String getClassName()
Returns the fully qualified class name of this d d m template link.

Specified by:
getClassName in interface TypedModel
Specified by:
getClassName in interface DDMTemplateLinkModel
Returns:
the fully qualified class name of this d d m template link

getClassNameId

public long getClassNameId()
Returns the class name ID of this d d m template link.

Specified by:
getClassNameId in interface TypedModel
Specified by:
getClassNameId in interface DDMTemplateLinkModel
Returns:
the class name ID of this d d m template link

getClassPK

public long getClassPK()
Returns the class p k of this d d m template link.

Specified by:
getClassPK in interface AttachedModel
Specified by:
getClassPK in interface DDMTemplateLinkModel
Returns:
the class p k of this d d m template link

getExpandoBridge

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

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

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this d d m template link.

Specified by:
getPrimaryKey in interface DDMTemplateLinkModel
Returns:
the primary key of this d d m template link

getPrimaryKeyObj

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

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

getTemplate

public DDMTemplate getTemplate()
                        throws PortalException
Specified by:
getTemplate in interface DDMTemplateLink
Throws:
PortalException

getTemplateId

public long getTemplateId()
Returns the template ID of this d d m template link.

Specified by:
getTemplateId in interface DDMTemplateLinkModel
Returns:
the template ID of this d d m template link

getTemplateLinkId

public long getTemplateLinkId()
Returns the template link ID of this d d m template link.

Specified by:
getTemplateLinkId in interface DDMTemplateLinkModel
Returns:
the template link ID of this d d m template link

hashCode

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

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<DDMTemplateLink>
Specified by:
isCachedModel in interface DDMTemplateLinkModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

isEscapedModel

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

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

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<DDMTemplateLink>
Specified by:
isNew in interface DDMTemplateLinkModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

persist

public void persist()
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

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<DDMTemplateLink>
Specified by:
setCachedModel in interface DDMTemplateLinkModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

setClassName

public void setClassName(String className)
Specified by:
setClassName in interface DDMTemplateLinkModel

setClassNameId

public void setClassNameId(long classNameId)
Sets the class name ID of this d d m template link.

Specified by:
setClassNameId in interface TypedModel
Specified by:
setClassNameId in interface DDMTemplateLinkModel
Parameters:
classNameId - the class name ID of this d d m template link

setClassPK

public void setClassPK(long classPK)
Sets the class p k of this d d m template link.

Specified by:
setClassPK in interface AttachedModel
Specified by:
setClassPK in interface DDMTemplateLinkModel
Parameters:
classPK - the class p k of this d d m template link

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<DDMTemplateLink>
Specified by:
setExpandoBridgeAttributes in interface DDMTemplateLinkModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<DDMTemplateLink>
Specified by:
setExpandoBridgeAttributes in interface DDMTemplateLinkModel

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<DDMTemplateLink>
Specified by:
setExpandoBridgeAttributes in interface DDMTemplateLinkModel
Parameters:
serviceContext - the service context to be applied
See Also:
ServiceContext.getExpandoBridgeAttributes( )

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<DDMTemplateLink>
Specified by:
setNew in interface DDMTemplateLinkModel
Parameters:
n - whether this model instance does not yet exist in the database

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this d d m template link.

Specified by:
setPrimaryKey in interface DDMTemplateLinkModel
Parameters:
primaryKey - the primary key of this d d m template link

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<DDMTemplateLink>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface DDMTemplateLinkModel
Parameters:
primaryKeyObj - the primary key of this model instance

setTemplateId

public void setTemplateId(long templateId)
Sets the template ID of this d d m template link.

Specified by:
setTemplateId in interface DDMTemplateLinkModel
Parameters:
templateId - the template ID of this d d m template link

setTemplateLinkId

public void setTemplateLinkId(long templateLinkId)
Sets the template link ID of this d d m template link.

Specified by:
setTemplateLinkId in interface DDMTemplateLinkModel
Parameters:
templateLinkId - the template link ID of this d d m template link

toCacheModel

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

Specified by:
toCacheModel in interface BaseModel<DDMTemplateLink>
Specified by:
toCacheModel in interface DDMTemplateLinkModel
Returns:
the cache model object

toEscapedModel

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

toString

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

toUnescapedModel

public DDMTemplateLink toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<DDMTemplateLink>
Specified by:
toUnescapedModel in interface DDMTemplateLinkModel

toXmlString

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

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

equals

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

getWrappedDDMTemplateLink

@Deprecated
public DDMTemplateLink getWrappedDDMTemplateLink()
Deprecated. As of 6.1.0, replaced by getWrappedModel()


getWrappedModel

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

isEntityCacheEnabled

public boolean isEntityCacheEnabled()
Description copied from interface: BaseModel
Returns true if this model's entity cache is enabled.

Specified by:
isEntityCacheEnabled in interface BaseModel<DDMTemplateLink>
Returns:
true if this model's entity cache is enabled; false otherwise

isFinderCacheEnabled

public boolean isFinderCacheEnabled()
Description copied from interface: BaseModel
Returns true if this model's finder cache is enabled.

Specified by:
isFinderCacheEnabled in interface BaseModel<DDMTemplateLink>
Returns:
true if this model's finder cache is enabled; false otherwise

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<DDMTemplateLink>

Liferay 7.0-ce-m6