Liferay 6.0.5

com.liferay.portal.model.impl
Class LayoutModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<Layout>
      extended by com.liferay.portal.model.impl.LayoutModelImpl
All Implemented Interfaces:
BaseModel<Layout>, LayoutModel, Serializable, Cloneable, Comparable<Layout>
Direct Known Subclasses:
LayoutImpl

public class LayoutModelImpl
extends BaseModelImpl<Layout>
implements LayoutModel

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

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

Never modify or reference this class directly. All methods that expect a layout model instance should use the Layout interface instead.

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

Field Summary
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 String TX_MANAGER
           
 
Constructor Summary
LayoutModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Layout layout)
           
 boolean equals(Object obj)
           
 String getColorSchemeId()
          Gets the color scheme id of this layout.
 long getCompanyId()
          Gets the company id of this layout.
 String getCss()
          Gets the css of this layout.
 String getDescription()
          Gets the description of this layout.
 long getDlFolderId()
          Gets the dl folder id of this layout.
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 String getFriendlyURL()
          Gets the friendly u r l of this layout.
 long getGroupId()
          Gets the group id of this layout.
 boolean getHidden()
          Gets the hidden of this layout.
 boolean getIconImage()
          Gets the icon image of this layout.
 long getIconImageId()
          Gets the icon image id of this layout.
 long getLayoutId()
          Gets the layout id of this layout.
 long getLayoutPrototypeId()
          Gets the layout prototype id of this layout.
 String getName()
          Gets the name of this layout.
 long getOriginalDlFolderId()
           
 String getOriginalFriendlyURL()
           
 long getOriginalGroupId()
           
 long getOriginalIconImageId()
           
 long getOriginalLayoutId()
           
 boolean getOriginalPrivateLayout()
           
 String getOriginalUuid()
           
 long getParentLayoutId()
          Gets the parent layout id of this layout.
 long getPlid()
          Gets the plid of this layout.
 long getPrimaryKey()
          Gets the primary key of this layout.
 Serializable getPrimaryKeyObj()
          Gets the primary key of this model instance.
 int getPriority()
          Gets the priority of this layout.
 boolean getPrivateLayout()
          Gets the private layout of this layout.
 String getThemeId()
          Gets the theme id of this layout.
 String getTitle()
          Gets the title of this layout.
 String getType()
          Gets the type of this layout.
 String getTypeSettings()
          Gets the type settings of this layout.
 String getUuid()
          Gets the uuid of this layout.
 String getWapColorSchemeId()
          Gets the wap color scheme id of this layout.
 String getWapThemeId()
          Gets the wap theme id of this layout.
 int hashCode()
           
 boolean isHidden()
          Determines whether this layout is hidden.
 boolean isIconImage()
          Determines whether this layout is icon image.
 boolean isPrivateLayout()
          Determines whether this layout is private layout.
 void setColorSchemeId(String colorSchemeId)
          Sets the color scheme id of this layout.
 void setCompanyId(long companyId)
          Sets the company id of this layout.
 void setCss(String css)
          Sets the css of this layout.
 void setDescription(String description)
          Sets the description of this layout.
 void setDlFolderId(long dlFolderId)
          Sets the dl folder id of this layout.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setFriendlyURL(String friendlyURL)
          Sets the friendly u r l of this layout.
 void setGroupId(long groupId)
          Sets the group id of this layout.
 void setHidden(boolean hidden)
          Sets whether this {$entity.humanName} is hidden.
 void setIconImage(boolean iconImage)
          Sets whether this {$entity.humanName} is icon image.
 void setIconImageId(long iconImageId)
          Sets the icon image id of this layout.
 void setLayoutId(long layoutId)
          Sets the layout id of this layout.
 void setLayoutPrototypeId(long layoutPrototypeId)
          Sets the layout prototype id of this layout.
 void setName(String name)
          Sets the name of this layout.
 void setParentLayoutId(long parentLayoutId)
          Sets the parent layout id of this layout.
 void setPlid(long plid)
          Sets the plid of this layout.
 void setPrimaryKey(long pk)
          Sets the primary key of this layout
 void setPriority(int priority)
          Sets the priority of this layout.
 void setPrivateLayout(boolean privateLayout)
          Sets whether this {$entity.humanName} is private layout.
 void setThemeId(String themeId)
          Sets the theme id of this layout.
 void setTitle(String title)
          Sets the title of this layout.
 void setType(String type)
          Sets the type of this layout.
 void setTypeSettings(String typeSettings)
          Sets the type settings of this layout.
 void setUuid(String uuid)
          Sets the uuid of this layout.
 void setWapColorSchemeId(String wapColorSchemeId)
          Sets the wap color scheme id of this layout.
 void setWapThemeId(String wapThemeId)
          Sets the wap theme id of this layout.
 Layout toEscapedModel()
          Gets a copy of this layout as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
static Layout toModel(LayoutSoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<Layout> toModels(LayoutSoap[] soapModels)
          Converts the soap model instances into normal model instances.
 String toString()
           
 String toXmlString()
          Gets the XML representation of this model instance.
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.model.LayoutModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, 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

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

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

LayoutModelImpl

public LayoutModelImpl()
Method Detail

toModel

public static Layout toModel(LayoutSoap soapModel)
Converts the soap model instance into a normal model instance.

Parameters:
soapModel - the soap model instance to convert
Returns:
the normal model instance

toModels

public static List<Layout> toModels(LayoutSoap[] soapModels)
Converts the soap model instances into normal model instances.

Parameters:
soapModels - the soap model instances to convert
Returns:
the normal model instances

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: LayoutModel
Gets the primary key of this layout.

Specified by:
getPrimaryKey in interface LayoutModel
Returns:
the primary key of this layout

setPrimaryKey

public void setPrimaryKey(long pk)
Description copied from interface: LayoutModel
Sets the primary key of this layout

Specified by:
setPrimaryKey in interface LayoutModel
Parameters:
pk - the primary key of this layout

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<Layout>
Specified by:
getPrimaryKeyObj in interface LayoutModel
Returns:
the primary key of this model instance

getUuid

public String getUuid()
Description copied from interface: LayoutModel
Gets the uuid of this layout.

Specified by:
getUuid in interface LayoutModel
Returns:
the uuid of this layout

setUuid

public void setUuid(String uuid)
Description copied from interface: LayoutModel
Sets the uuid of this layout.

Specified by:
setUuid in interface LayoutModel
Parameters:
uuid - the uuid of this layout

getOriginalUuid

public String getOriginalUuid()

getPlid

public long getPlid()
Description copied from interface: LayoutModel
Gets the plid of this layout.

Specified by:
getPlid in interface LayoutModel
Returns:
the plid of this layout

setPlid

public void setPlid(long plid)
Description copied from interface: LayoutModel
Sets the plid of this layout.

Specified by:
setPlid in interface LayoutModel
Parameters:
plid - the plid of this layout

getGroupId

public long getGroupId()
Description copied from interface: LayoutModel
Gets the group id of this layout.

Specified by:
getGroupId in interface LayoutModel
Returns:
the group id of this layout

setGroupId

public void setGroupId(long groupId)
Description copied from interface: LayoutModel
Sets the group id of this layout.

Specified by:
setGroupId in interface LayoutModel
Parameters:
groupId - the group id of this layout

getOriginalGroupId

public long getOriginalGroupId()

getCompanyId

public long getCompanyId()
Description copied from interface: LayoutModel
Gets the company id of this layout.

Specified by:
getCompanyId in interface LayoutModel
Returns:
the company id of this layout

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: LayoutModel
Sets the company id of this layout.

Specified by:
setCompanyId in interface LayoutModel
Parameters:
companyId - the company id of this layout

getPrivateLayout

public boolean getPrivateLayout()
Description copied from interface: LayoutModel
Gets the private layout of this layout.

Specified by:
getPrivateLayout in interface LayoutModel
Returns:
the private layout of this layout

isPrivateLayout

public boolean isPrivateLayout()
Description copied from interface: LayoutModel
Determines whether this layout is private layout.

Specified by:
isPrivateLayout in interface LayoutModel
Returns:
whether this layout is private layout

setPrivateLayout

public void setPrivateLayout(boolean privateLayout)
Description copied from interface: LayoutModel
Sets whether this {$entity.humanName} is private layout.

Specified by:
setPrivateLayout in interface LayoutModel
Parameters:
privateLayout - the private layout of this layout

getOriginalPrivateLayout

public boolean getOriginalPrivateLayout()

getLayoutId

public long getLayoutId()
Description copied from interface: LayoutModel
Gets the layout id of this layout.

Specified by:
getLayoutId in interface LayoutModel
Returns:
the layout id of this layout

setLayoutId

public void setLayoutId(long layoutId)
Description copied from interface: LayoutModel
Sets the layout id of this layout.

Specified by:
setLayoutId in interface LayoutModel
Parameters:
layoutId - the layout id of this layout

getOriginalLayoutId

public long getOriginalLayoutId()

getParentLayoutId

public long getParentLayoutId()
Description copied from interface: LayoutModel
Gets the parent layout id of this layout.

Specified by:
getParentLayoutId in interface LayoutModel
Returns:
the parent layout id of this layout

setParentLayoutId

public void setParentLayoutId(long parentLayoutId)
Description copied from interface: LayoutModel
Sets the parent layout id of this layout.

Specified by:
setParentLayoutId in interface LayoutModel
Parameters:
parentLayoutId - the parent layout id of this layout

getName

public String getName()
Description copied from interface: LayoutModel
Gets the name of this layout.

Specified by:
getName in interface LayoutModel
Returns:
the name of this layout

setName

public void setName(String name)
Description copied from interface: LayoutModel
Sets the name of this layout.

Specified by:
setName in interface LayoutModel
Parameters:
name - the name of this layout

getTitle

public String getTitle()
Description copied from interface: LayoutModel
Gets the title of this layout.

Specified by:
getTitle in interface LayoutModel
Returns:
the title of this layout

setTitle

public void setTitle(String title)
Description copied from interface: LayoutModel
Sets the title of this layout.

Specified by:
setTitle in interface LayoutModel
Parameters:
title - the title of this layout

getDescription

public String getDescription()
Description copied from interface: LayoutModel
Gets the description of this layout.

Specified by:
getDescription in interface LayoutModel
Returns:
the description of this layout

setDescription

public void setDescription(String description)
Description copied from interface: LayoutModel
Sets the description of this layout.

Specified by:
setDescription in interface LayoutModel
Parameters:
description - the description of this layout

getType

public String getType()
Description copied from interface: LayoutModel
Gets the type of this layout.

Specified by:
getType in interface LayoutModel
Returns:
the type of this layout

setType

public void setType(String type)
Description copied from interface: LayoutModel
Sets the type of this layout.

Specified by:
setType in interface LayoutModel
Parameters:
type - the type of this layout

getTypeSettings

public String getTypeSettings()
Description copied from interface: LayoutModel
Gets the type settings of this layout.

Specified by:
getTypeSettings in interface LayoutModel
Returns:
the type settings of this layout

setTypeSettings

public void setTypeSettings(String typeSettings)
Description copied from interface: LayoutModel
Sets the type settings of this layout.

Specified by:
setTypeSettings in interface LayoutModel
Parameters:
typeSettings - the type settings of this layout

getHidden

public boolean getHidden()
Description copied from interface: LayoutModel
Gets the hidden of this layout.

Specified by:
getHidden in interface LayoutModel
Returns:
the hidden of this layout

isHidden

public boolean isHidden()
Description copied from interface: LayoutModel
Determines whether this layout is hidden.

Specified by:
isHidden in interface LayoutModel
Returns:
whether this layout is hidden

setHidden

public void setHidden(boolean hidden)
Description copied from interface: LayoutModel
Sets whether this {$entity.humanName} is hidden.

Specified by:
setHidden in interface LayoutModel
Parameters:
hidden - the hidden of this layout

getFriendlyURL

public String getFriendlyURL()
Description copied from interface: LayoutModel
Gets the friendly u r l of this layout.

Specified by:
getFriendlyURL in interface LayoutModel
Returns:
the friendly u r l of this layout

setFriendlyURL

public void setFriendlyURL(String friendlyURL)
Description copied from interface: LayoutModel
Sets the friendly u r l of this layout.

Specified by:
setFriendlyURL in interface LayoutModel
Parameters:
friendlyURL - the friendly u r l of this layout

getOriginalFriendlyURL

public String getOriginalFriendlyURL()

getIconImage

public boolean getIconImage()
Description copied from interface: LayoutModel
Gets the icon image of this layout.

Specified by:
getIconImage in interface LayoutModel
Returns:
the icon image of this layout

isIconImage

public boolean isIconImage()
Description copied from interface: LayoutModel
Determines whether this layout is icon image.

Specified by:
isIconImage in interface LayoutModel
Returns:
whether this layout is icon image

setIconImage

public void setIconImage(boolean iconImage)
Description copied from interface: LayoutModel
Sets whether this {$entity.humanName} is icon image.

Specified by:
setIconImage in interface LayoutModel
Parameters:
iconImage - the icon image of this layout

getIconImageId

public long getIconImageId()
Description copied from interface: LayoutModel
Gets the icon image id of this layout.

Specified by:
getIconImageId in interface LayoutModel
Returns:
the icon image id of this layout

setIconImageId

public void setIconImageId(long iconImageId)
Description copied from interface: LayoutModel
Sets the icon image id of this layout.

Specified by:
setIconImageId in interface LayoutModel
Parameters:
iconImageId - the icon image id of this layout

getOriginalIconImageId

public long getOriginalIconImageId()

getThemeId

public String getThemeId()
Description copied from interface: LayoutModel
Gets the theme id of this layout.

Specified by:
getThemeId in interface LayoutModel
Returns:
the theme id of this layout

setThemeId

public void setThemeId(String themeId)
Description copied from interface: LayoutModel
Sets the theme id of this layout.

Specified by:
setThemeId in interface LayoutModel
Parameters:
themeId - the theme id of this layout

getColorSchemeId

public String getColorSchemeId()
Description copied from interface: LayoutModel
Gets the color scheme id of this layout.

Specified by:
getColorSchemeId in interface LayoutModel
Returns:
the color scheme id of this layout

setColorSchemeId

public void setColorSchemeId(String colorSchemeId)
Description copied from interface: LayoutModel
Sets the color scheme id of this layout.

Specified by:
setColorSchemeId in interface LayoutModel
Parameters:
colorSchemeId - the color scheme id of this layout

getWapThemeId

public String getWapThemeId()
Description copied from interface: LayoutModel
Gets the wap theme id of this layout.

Specified by:
getWapThemeId in interface LayoutModel
Returns:
the wap theme id of this layout

setWapThemeId

public void setWapThemeId(String wapThemeId)
Description copied from interface: LayoutModel
Sets the wap theme id of this layout.

Specified by:
setWapThemeId in interface LayoutModel
Parameters:
wapThemeId - the wap theme id of this layout

getWapColorSchemeId

public String getWapColorSchemeId()
Description copied from interface: LayoutModel
Gets the wap color scheme id of this layout.

Specified by:
getWapColorSchemeId in interface LayoutModel
Returns:
the wap color scheme id of this layout

setWapColorSchemeId

public void setWapColorSchemeId(String wapColorSchemeId)
Description copied from interface: LayoutModel
Sets the wap color scheme id of this layout.

Specified by:
setWapColorSchemeId in interface LayoutModel
Parameters:
wapColorSchemeId - the wap color scheme id of this layout

getCss

public String getCss()
Description copied from interface: LayoutModel
Gets the css of this layout.

Specified by:
getCss in interface LayoutModel
Returns:
the css of this layout

setCss

public void setCss(String css)
Description copied from interface: LayoutModel
Sets the css of this layout.

Specified by:
setCss in interface LayoutModel
Parameters:
css - the css of this layout

getPriority

public int getPriority()
Description copied from interface: LayoutModel
Gets the priority of this layout.

Specified by:
getPriority in interface LayoutModel
Returns:
the priority of this layout

setPriority

public void setPriority(int priority)
Description copied from interface: LayoutModel
Sets the priority of this layout.

Specified by:
setPriority in interface LayoutModel
Parameters:
priority - the priority of this layout

getLayoutPrototypeId

public long getLayoutPrototypeId()
Description copied from interface: LayoutModel
Gets the layout prototype id of this layout.

Specified by:
getLayoutPrototypeId in interface LayoutModel
Returns:
the layout prototype id of this layout

setLayoutPrototypeId

public void setLayoutPrototypeId(long layoutPrototypeId)
Description copied from interface: LayoutModel
Sets the layout prototype id of this layout.

Specified by:
setLayoutPrototypeId in interface LayoutModel
Parameters:
layoutPrototypeId - the layout prototype id of this layout

getDlFolderId

public long getDlFolderId()
Description copied from interface: LayoutModel
Gets the dl folder id of this layout.

Specified by:
getDlFolderId in interface LayoutModel
Returns:
the dl folder id of this layout

setDlFolderId

public void setDlFolderId(long dlFolderId)
Description copied from interface: LayoutModel
Sets the dl folder id of this layout.

Specified by:
setDlFolderId in interface LayoutModel
Parameters:
dlFolderId - the dl folder id of this layout

getOriginalDlFolderId

public long getOriginalDlFolderId()

toEscapedModel

public Layout toEscapedModel()
Description copied from interface: LayoutModel
Gets a copy of this layout as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface LayoutModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

getExpandoBridge

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

Specified by:
getExpandoBridge in interface BaseModel<Layout>
Specified by:
getExpandoBridge in interface LayoutModel
Overrides:
getExpandoBridge in class BaseModelImpl<Layout>
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<Layout>
Specified by:
setExpandoBridgeAttributes in interface LayoutModel
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<Layout>
Parameters:
serviceContext - the service context to retrieve the expando bridge attributes from
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<Layout>
Specified by:
clone in interface LayoutModel
Specified by:
clone in class BaseModelImpl<Layout>
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(Layout layout)
Specified by:
compareTo in interface LayoutModel
Specified by:
compareTo in interface Comparable<Layout>

equals

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

hashCode

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

toString

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

toXmlString

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

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

Liferay 6.0.5