Liferay 6.0.5

com.liferay.portal.model.impl
Class LayoutPrototypeModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<LayoutPrototype>
      extended by com.liferay.portal.model.impl.LayoutPrototypeModelImpl
All Implemented Interfaces:
BaseModel<LayoutPrototype>, LayoutPrototypeModel, Serializable, Cloneable, Comparable<LayoutPrototype>
Direct Known Subclasses:
LayoutPrototypeImpl

public class LayoutPrototypeModelImpl
extends BaseModelImpl<LayoutPrototype>
implements LayoutPrototypeModel

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

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

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

See Also:
LayoutPrototypeImpl, LayoutPrototype, LayoutPrototypeModel, 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 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
LayoutPrototypeModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(LayoutPrototype layoutPrototype)
           
 boolean equals(Object obj)
           
 boolean getActive()
          Gets the active of this layout prototype.
 long getCompanyId()
          Gets the company id of this layout prototype.
 String getDescription()
          Gets the description of this layout prototype.
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 long getLayoutPrototypeId()
          Gets the layout prototype id of this layout prototype.
 String getName()
          Gets the name of this layout prototype.
 String getName(Locale locale)
          Gets the localized name of this layout prototype.
 String getName(Locale locale, boolean useDefault)
          Gets the localized name of this layout prototype, optionally using the default language if no localization exists for the requested language.
 String getName(String languageId)
          Gets the localized name of this layout prototype.
 String getName(String languageId, boolean useDefault)
          Gets the localized name of this layout prototype, optionally using the default language if no localization exists for the requested language.
 Map<Locale,String> getNameMap()
          Gets a map of the locales and localized name of this layout prototype.
 long getPrimaryKey()
          Gets the primary key of this layout prototype.
 Serializable getPrimaryKeyObj()
          Gets the primary key of this model instance.
 String getSettings()
          Gets the settings of this layout prototype.
 int hashCode()
           
 boolean isActive()
          Determines whether this layout prototype is active.
 void setActive(boolean active)
          Sets whether this {$entity.humanName} is active.
 void setCompanyId(long companyId)
          Sets the company id of this layout prototype.
 void setDescription(String description)
          Sets the description of this layout prototype.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setLayoutPrototypeId(long layoutPrototypeId)
          Sets the layout prototype id of this layout prototype.
 void setName(Locale locale, String name)
          Sets the localized name of this layout prototype.
 void setName(String name)
          Sets the name of this layout prototype.
 void setNameMap(Map<Locale,String> nameMap)
          Sets the localized names of this layout prototype from the map of locales and localized names.
 void setPrimaryKey(long pk)
          Sets the primary key of this layout prototype
 void setSettings(String settings)
          Sets the settings of this layout prototype.
 LayoutPrototype toEscapedModel()
          Gets a copy of this layout prototype as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
static LayoutPrototype toModel(LayoutPrototypeSoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<LayoutPrototype> toModels(LayoutPrototypeSoap[] 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.LayoutPrototypeModel
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

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

LayoutPrototypeModelImpl

public LayoutPrototypeModelImpl()
Method Detail

toModel

public static LayoutPrototype toModel(LayoutPrototypeSoap 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<LayoutPrototype> toModels(LayoutPrototypeSoap[] 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: LayoutPrototypeModel
Gets the primary key of this layout prototype.

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

setPrimaryKey

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

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

getPrimaryKeyObj

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

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

getLayoutPrototypeId

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

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

setLayoutPrototypeId

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

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

getCompanyId

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

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

setCompanyId

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

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

getName

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

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

getName

public String getName(Locale locale)
Description copied from interface: LayoutPrototypeModel
Gets the localized name of this layout prototype. Uses the default language if no localization exists for the requested language.

Specified by:
getName in interface LayoutPrototypeModel
Parameters:
locale - the locale to get the localized name for
Returns:
the localized name of this layout prototype

getName

public String getName(Locale locale,
                      boolean useDefault)
Description copied from interface: LayoutPrototypeModel
Gets the localized name of this layout prototype, optionally using the default language if no localization exists for the requested language.

Specified by:
getName in interface LayoutPrototypeModel
Parameters:
locale - the local to get the localized name for
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized name of this layout prototype. If useDefault is false and no localization exists for the requested language, an empty string will be returned.

getName

public String getName(String languageId)
Description copied from interface: LayoutPrototypeModel
Gets the localized name of this layout prototype. Uses the default language if no localization exists for the requested language.

Specified by:
getName in interface LayoutPrototypeModel
Parameters:
languageId - the id of the language to get the localized name for
Returns:
the localized name of this layout prototype

getName

public String getName(String languageId,
                      boolean useDefault)
Description copied from interface: LayoutPrototypeModel
Gets the localized name of this layout prototype, optionally using the default language if no localization exists for the requested language.

Specified by:
getName in interface LayoutPrototypeModel
Parameters:
languageId - the id of the language to get the localized name for
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized name of this layout prototype

getNameMap

public Map<Locale,String> getNameMap()
Description copied from interface: LayoutPrototypeModel
Gets a map of the locales and localized name of this layout prototype.

Specified by:
getNameMap in interface LayoutPrototypeModel
Returns:
the locales and localized name

setName

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

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

setName

public void setName(Locale locale,
                    String name)
Description copied from interface: LayoutPrototypeModel
Sets the localized name of this layout prototype.

Specified by:
setName in interface LayoutPrototypeModel
Parameters:
locale - the locale to set the localized name for
name - the localized name of this layout prototype

setNameMap

public void setNameMap(Map<Locale,String> nameMap)
Description copied from interface: LayoutPrototypeModel
Sets the localized names of this layout prototype from the map of locales and localized names.

Specified by:
setNameMap in interface LayoutPrototypeModel
Parameters:
nameMap - the locales and localized names of this layout prototype

getDescription

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

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

setDescription

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

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

getSettings

public String getSettings()
Description copied from interface: LayoutPrototypeModel
Gets the settings of this layout prototype.

Specified by:
getSettings in interface LayoutPrototypeModel
Returns:
the settings of this layout prototype

setSettings

public void setSettings(String settings)
Description copied from interface: LayoutPrototypeModel
Sets the settings of this layout prototype.

Specified by:
setSettings in interface LayoutPrototypeModel
Parameters:
settings - the settings of this layout prototype

getActive

public boolean getActive()
Description copied from interface: LayoutPrototypeModel
Gets the active of this layout prototype.

Specified by:
getActive in interface LayoutPrototypeModel
Returns:
the active of this layout prototype

isActive

public boolean isActive()
Description copied from interface: LayoutPrototypeModel
Determines whether this layout prototype is active.

Specified by:
isActive in interface LayoutPrototypeModel
Returns:
whether this layout prototype is active

setActive

public void setActive(boolean active)
Description copied from interface: LayoutPrototypeModel
Sets whether this {$entity.humanName} is active.

Specified by:
setActive in interface LayoutPrototypeModel
Parameters:
active - the active of this layout prototype

toEscapedModel

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

Specified by:
toEscapedModel in interface LayoutPrototypeModel
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<LayoutPrototype>
Specified by:
getExpandoBridge in interface LayoutPrototypeModel
Overrides:
getExpandoBridge in class BaseModelImpl<LayoutPrototype>
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<LayoutPrototype>
Specified by:
setExpandoBridgeAttributes in interface LayoutPrototypeModel
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<LayoutPrototype>
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<LayoutPrototype>
Specified by:
clone in interface LayoutPrototypeModel
Specified by:
clone in class BaseModelImpl<LayoutPrototype>
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(LayoutPrototype layoutPrototype)
Specified by:
compareTo in interface LayoutPrototypeModel
Specified by:
compareTo in interface Comparable<LayoutPrototype>

equals

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

hashCode

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

toString

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

Liferay 6.0.5