Liferay 7.0-ce-m6

com.liferay.portlet.dynamicdatamapping.model.impl
Class DDMTemplateLinkModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<DDMTemplateLink>
      extended by com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateLinkModelImpl
All Implemented Interfaces:
AttachedModel, BaseModel<DDMTemplateLink>, ClassedModel, TypedModel, DDMTemplateLinkModel, Serializable, Cloneable, Comparable<DDMTemplateLink>
Direct Known Subclasses:
DDMTemplateLinkBaseImpl

@ProviderType
public class DDMTemplateLinkModelImpl
extends BaseModelImpl<DDMTemplateLink>
implements DDMTemplateLinkModel

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

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

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

Field Summary
static long CLASSNAMEID_COLUMN_BITMASK
           
static long CLASSPK_COLUMN_BITMASK
           
static boolean COLUMN_BITMASK_ENABLED
           
static String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static long LOCK_EXPIRATION_TIME
           
static String ORDER_BY_JPQL
           
static String ORDER_BY_SQL
           
static String SESSION_FACTORY
           
static Object[][] TABLE_COLUMNS
           
static String TABLE_NAME
           
static String TABLE_SQL_CREATE
           
static String TABLE_SQL_DROP
           
static long TEMPLATEID_COLUMN_BITMASK
           
static long TEMPLATELINKID_COLUMN_BITMASK
           
static String TX_MANAGER
           
 
Constructor Summary
DDMTemplateLinkModelImpl()
           
 
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.
 long getColumnBitmask()
           
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 long getOriginalClassNameId()
           
 long getOriginalClassPK()
           
 long getOriginalTemplateId()
           
 long getPrimaryKey()
          Returns the primary key of this d d m template link.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 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.
 int hashCode()
           
 boolean isEntityCacheEnabled()
          Returns true if this model's entity cache is enabled.
 boolean isFinderCacheEnabled()
          Returns true if this model's finder cache is enabled.
 void resetOriginalValues()
          Reset all original fields to current values.
 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(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 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()
           
 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, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.dynamicdatamapping.model.DDMTemplateLinkModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
 

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

ORDER_BY_JPQL

public static final String ORDER_BY_JPQL
See Also:
Constant Field Values

ORDER_BY_SQL

public static final String ORDER_BY_SQL
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

CLASSNAMEID_COLUMN_BITMASK

public static final long CLASSNAMEID_COLUMN_BITMASK
See Also:
Constant Field Values

CLASSPK_COLUMN_BITMASK

public static final long CLASSPK_COLUMN_BITMASK
See Also:
Constant Field Values

TEMPLATEID_COLUMN_BITMASK

public static final long TEMPLATEID_COLUMN_BITMASK
See Also:
Constant Field Values

TEMPLATELINKID_COLUMN_BITMASK

public static final long TEMPLATELINKID_COLUMN_BITMASK
See Also:
Constant Field Values

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

DDMTemplateLinkModelImpl

public DDMTemplateLinkModelImpl()
Method Detail

getPrimaryKey

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

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Description copied from interface: DDMTemplateLinkModel
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

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

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

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

setModelAttributes

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

getTemplateLinkId

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

setTemplateLinkId

public void setTemplateLinkId(long templateLinkId)
Description copied from interface: DDMTemplateLinkModel
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

getClassName

public String getClassName()
Description copied from interface: DDMTemplateLinkModel
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

setClassName

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

getClassNameId

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

setClassNameId

public void setClassNameId(long classNameId)
Description copied from interface: DDMTemplateLinkModel
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

getOriginalClassNameId

public long getOriginalClassNameId()

getClassPK

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

setClassPK

public void setClassPK(long classPK)
Description copied from interface: DDMTemplateLinkModel
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

getOriginalClassPK

public long getOriginalClassPK()

getTemplateId

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

setTemplateId

public void setTemplateId(long templateId)
Description copied from interface: DDMTemplateLinkModel
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

getOriginalTemplateId

public long getOriginalTemplateId()

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

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
Overrides:
toEscapedModel in class BaseModelImpl<DDMTemplateLink>
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

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

equals

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

hashCode

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

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>
Overrides:
resetOriginalValues in class BaseModelImpl<DDMTemplateLink>

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

toString

public String toString()
Specified by:
toString in interface DDMTemplateLinkModel
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<DDMTemplateLink>
Specified by:
toXmlString in interface DDMTemplateLinkModel
Returns:
the XML representation of this model instance

Liferay 7.0-ce-m6