Liferay 6.1.2-ce-ga3

com.liferay.portal.model.impl
Class LayoutSetPrototypeModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<LayoutSetPrototype>
      extended by com.liferay.portal.model.impl.LayoutSetPrototypeModelImpl
All Implemented Interfaces:
BaseModel<LayoutSetPrototype>, ClassedModel, LayoutSetPrototypeModel, Serializable, Cloneable, Comparable<LayoutSetPrototype>
Direct Known Subclasses:
LayoutSetPrototypeBaseImpl

@JSON(strict=true)
public class LayoutSetPrototypeModelImpl
extends BaseModelImpl<LayoutSetPrototype>
implements LayoutSetPrototypeModel

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

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

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

Field Summary
static long ACTIVE_COLUMN_BITMASK
           
static boolean COLUMN_BITMASK_ENABLED
           
static long COMPANYID_COLUMN_BITMASK
           
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
           
static long UUID_COLUMN_BITMASK
           
 
Constructor Summary
LayoutSetPrototypeModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(LayoutSetPrototype layoutSetPrototype)
           
 boolean equals(Object obj)
           
 boolean getActive()
          Returns the active of this layout set prototype.
 long getColumnBitmask()
           
 long getCompanyId()
          Returns the company ID of this layout set prototype.
 Date getCreateDate()
          Returns the create date of this layout set prototype.
 String getDescription()
          Returns the description of this layout set prototype.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 long getLayoutSetPrototypeId()
          Returns the layout set prototype ID of this layout set prototype.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this layout set prototype.
 String getName()
          Returns the name of this layout set prototype.
 String getName(Locale locale)
          Returns the localized name of this layout set prototype in the language.
 String getName(Locale locale, boolean useDefault)
          Returns the localized name of this layout set prototype in the language, optionally using the default language if no localization exists for the requested language.
 String getName(String languageId)
          Returns the localized name of this layout set prototype in the language.
 String getName(String languageId, boolean useDefault)
          Returns the localized name of this layout set prototype in the language, optionally using the default language if no localization exists for the requested language.
 String getNameCurrentLanguageId()
           
 String getNameCurrentValue()
           
 Map<Locale,String> getNameMap()
          Returns a map of the locales and localized names of this layout set prototype.
 boolean getOriginalActive()
           
 long getOriginalCompanyId()
           
 String getOriginalUuid()
           
 long getPrimaryKey()
          Returns the primary key of this layout set prototype.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 String getSettings()
          Returns the settings of this layout set prototype.
 String getUuid()
          Returns the uuid of this layout set prototype.
 int hashCode()
           
 boolean isActive()
          Returns true if this layout set prototype is active.
 void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
           
 void resetOriginalValues()
          Reset all original fields to current values.
 void setActive(boolean active)
          Sets whether this layout set prototype is active.
 void setCompanyId(long companyId)
          Sets the company ID of this layout set prototype.
 void setCreateDate(Date createDate)
          Sets the create date of this layout set prototype.
 void setDescription(String description)
          Sets the description of this layout set prototype.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setLayoutSetPrototypeId(long layoutSetPrototypeId)
          Sets the layout set prototype ID of this layout set prototype.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this layout set prototype.
 void setName(String name)
          Sets the name of this layout set prototype.
 void setName(String name, Locale locale)
          Sets the localized name of this layout set prototype in the language.
 void setName(String name, Locale locale, Locale defaultLocale)
          Sets the localized name of this layout set prototype in the language, and sets the default locale.
 void setNameCurrentLanguageId(String languageId)
           
 void setNameMap(Map<Locale,String> nameMap)
          Sets the localized names of this layout set prototype from the map of locales and localized names.
 void setNameMap(Map<Locale,String> nameMap, Locale defaultLocale)
          Sets the localized names of this layout set prototype from the map of locales and localized names, and sets the default locale.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this layout set prototype.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setSettings(String settings)
          Sets the settings of this layout set prototype.
 void setUuid(String uuid)
          Sets the uuid of this layout set prototype.
 CacheModel<LayoutSetPrototype> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 LayoutSetPrototype toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
static LayoutSetPrototype toModel(LayoutSetPrototypeSoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<LayoutSetPrototype> toModels(LayoutSetPrototypeSoap[] soapModels)
          Converts the soap model instances into normal model instances.
 String toString()
           
 LayoutSetPrototype toUnescapedModel()
           
 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, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.model.LayoutSetPrototypeModel
isCachedModel, isEscapedModel, isNew, setCachedModel, 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

COLUMN_BITMASK_ENABLED

public static final boolean COLUMN_BITMASK_ENABLED

ACTIVE_COLUMN_BITMASK

public static long ACTIVE_COLUMN_BITMASK

COMPANYID_COLUMN_BITMASK

public static long COMPANYID_COLUMN_BITMASK

UUID_COLUMN_BITMASK

public static long UUID_COLUMN_BITMASK

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

LayoutSetPrototypeModelImpl

public LayoutSetPrototypeModelImpl()
Method Detail

toModel

public static LayoutSetPrototype toModel(LayoutSetPrototypeSoap 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<LayoutSetPrototype> toModels(LayoutSetPrototypeSoap[] 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: LayoutSetPrototypeModel
Returns the primary key of this layout set prototype.

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

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Description copied from interface: LayoutSetPrototypeModel
Sets the primary key of this layout set prototype.

Specified by:
setPrimaryKey in interface LayoutSetPrototypeModel
Parameters:
primaryKey - the primary key of this layout set prototype

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<LayoutSetPrototype>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface LayoutSetPrototypeModel
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<LayoutSetPrototype>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface LayoutSetPrototypeModel
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<LayoutSetPrototype>
Overrides:
getModelAttributes in class BaseModelImpl<LayoutSetPrototype>

setModelAttributes

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

getUuid

@JSON
public String getUuid()
Description copied from interface: LayoutSetPrototypeModel
Returns the uuid of this layout set prototype.

Specified by:
getUuid in interface LayoutSetPrototypeModel
Returns:
the uuid of this layout set prototype

setUuid

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

Specified by:
setUuid in interface LayoutSetPrototypeModel
Parameters:
uuid - the uuid of this layout set prototype

getOriginalUuid

public String getOriginalUuid()

getLayoutSetPrototypeId

@JSON
public long getLayoutSetPrototypeId()
Description copied from interface: LayoutSetPrototypeModel
Returns the layout set prototype ID of this layout set prototype.

Specified by:
getLayoutSetPrototypeId in interface LayoutSetPrototypeModel
Returns:
the layout set prototype ID of this layout set prototype

setLayoutSetPrototypeId

public void setLayoutSetPrototypeId(long layoutSetPrototypeId)
Description copied from interface: LayoutSetPrototypeModel
Sets the layout set prototype ID of this layout set prototype.

Specified by:
setLayoutSetPrototypeId in interface LayoutSetPrototypeModel
Parameters:
layoutSetPrototypeId - the layout set prototype ID of this layout set prototype

getCompanyId

@JSON
public long getCompanyId()
Description copied from interface: LayoutSetPrototypeModel
Returns the company ID of this layout set prototype.

Specified by:
getCompanyId in interface LayoutSetPrototypeModel
Returns:
the company ID of this layout set prototype

setCompanyId

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

Specified by:
setCompanyId in interface LayoutSetPrototypeModel
Parameters:
companyId - the company ID of this layout set prototype

getOriginalCompanyId

public long getOriginalCompanyId()

getCreateDate

@JSON
public Date getCreateDate()
Description copied from interface: LayoutSetPrototypeModel
Returns the create date of this layout set prototype.

Specified by:
getCreateDate in interface LayoutSetPrototypeModel
Returns:
the create date of this layout set prototype

setCreateDate

public void setCreateDate(Date createDate)
Description copied from interface: LayoutSetPrototypeModel
Sets the create date of this layout set prototype.

Specified by:
setCreateDate in interface LayoutSetPrototypeModel
Parameters:
createDate - the create date of this layout set prototype

getModifiedDate

@JSON
public Date getModifiedDate()
Description copied from interface: LayoutSetPrototypeModel
Returns the modified date of this layout set prototype.

Specified by:
getModifiedDate in interface LayoutSetPrototypeModel
Returns:
the modified date of this layout set prototype

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Description copied from interface: LayoutSetPrototypeModel
Sets the modified date of this layout set prototype.

Specified by:
setModifiedDate in interface LayoutSetPrototypeModel
Parameters:
modifiedDate - the modified date of this layout set prototype

getName

@JSON
public String getName()
Description copied from interface: LayoutSetPrototypeModel
Returns the name of this layout set prototype.

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

getName

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

Specified by:
getName in interface LayoutSetPrototypeModel
Parameters:
locale - the locale of the language
Returns:
the localized name of this layout set prototype

getName

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

Specified by:
getName in interface LayoutSetPrototypeModel
Parameters:
locale - the local of the language
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized name of this layout set 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: LayoutSetPrototypeModel
Returns the localized name of this layout set prototype in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getName in interface LayoutSetPrototypeModel
Parameters:
languageId - the ID of the language
Returns:
the localized name of this layout set prototype

getName

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

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

getNameCurrentLanguageId

public String getNameCurrentLanguageId()
Specified by:
getNameCurrentLanguageId in interface LayoutSetPrototypeModel

getNameCurrentValue

@JSON
public String getNameCurrentValue()
Specified by:
getNameCurrentValue in interface LayoutSetPrototypeModel

getNameMap

public Map<Locale,String> getNameMap()
Description copied from interface: LayoutSetPrototypeModel
Returns a map of the locales and localized names of this layout set prototype.

Specified by:
getNameMap in interface LayoutSetPrototypeModel
Returns:
the locales and localized names of this layout set prototype

setName

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

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

setName

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

Specified by:
setName in interface LayoutSetPrototypeModel
Parameters:
name - the localized name of this layout set prototype
locale - the locale of the language

setName

public void setName(String name,
                    Locale locale,
                    Locale defaultLocale)
Description copied from interface: LayoutSetPrototypeModel
Sets the localized name of this layout set prototype in the language, and sets the default locale.

Specified by:
setName in interface LayoutSetPrototypeModel
Parameters:
name - the localized name of this layout set prototype
locale - the locale of the language
defaultLocale - the default locale

setNameCurrentLanguageId

public void setNameCurrentLanguageId(String languageId)
Specified by:
setNameCurrentLanguageId in interface LayoutSetPrototypeModel

setNameMap

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

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

setNameMap

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

Specified by:
setNameMap in interface LayoutSetPrototypeModel
Parameters:
nameMap - the locales and localized names of this layout set prototype
defaultLocale - the default locale

getDescription

@JSON
public String getDescription()
Description copied from interface: LayoutSetPrototypeModel
Returns the description of this layout set prototype.

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

setDescription

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

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

getSettings

@JSON
public String getSettings()
Description copied from interface: LayoutSetPrototypeModel
Returns the settings of this layout set prototype.

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

setSettings

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

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

getActive

@JSON
public boolean getActive()
Description copied from interface: LayoutSetPrototypeModel
Returns the active of this layout set prototype.

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

isActive

public boolean isActive()
Description copied from interface: LayoutSetPrototypeModel
Returns true if this layout set prototype is active.

Specified by:
isActive in interface LayoutSetPrototypeModel
Returns:
true if this layout set prototype is active; false otherwise

setActive

public void setActive(boolean active)
Description copied from interface: LayoutSetPrototypeModel
Sets whether this layout set prototype is active.

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

getOriginalActive

public boolean getOriginalActive()

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

prepareLocalizedFieldsForImport

public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
                                     throws LocaleException
Specified by:
prepareLocalizedFieldsForImport in interface LayoutSetPrototypeModel
Throws:
LocaleException

toEscapedModel

public LayoutSetPrototype 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<LayoutSetPrototype>
Specified by:
toEscapedModel in interface LayoutSetPrototypeModel
Overrides:
toEscapedModel in class BaseModelImpl<LayoutSetPrototype>
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public LayoutSetPrototype toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<LayoutSetPrototype>
Specified by:
toUnescapedModel in interface LayoutSetPrototypeModel
Overrides:
toUnescapedModel in class BaseModelImpl<LayoutSetPrototype>

clone

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

Specified by:
clone in interface BaseModel<LayoutSetPrototype>
Specified by:
clone in interface LayoutSetPrototypeModel
Specified by:
clone in class BaseModelImpl<LayoutSetPrototype>
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(LayoutSetPrototype layoutSetPrototype)
Specified by:
compareTo in interface LayoutSetPrototypeModel
Specified by:
compareTo in interface Comparable<LayoutSetPrototype>

equals

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

hashCode

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

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<LayoutSetPrototype>
Overrides:
resetOriginalValues in class BaseModelImpl<LayoutSetPrototype>

toCacheModel

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

Specified by:
toCacheModel in interface BaseModel<LayoutSetPrototype>
Specified by:
toCacheModel in interface LayoutSetPrototypeModel
Overrides:
toCacheModel in class BaseModelImpl<LayoutSetPrototype>
Returns:
the cache model object

toString

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

Liferay 6.1.2-ce-ga3