Liferay 6.1.2-ce-ga3

com.liferay.portal.model.impl
Class LayoutBranchModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<LayoutBranch>
      extended by com.liferay.portal.model.impl.LayoutBranchModelImpl
All Implemented Interfaces:
BaseModel<LayoutBranch>, ClassedModel, LayoutBranchModel, Serializable, Cloneable, Comparable<LayoutBranch>
Direct Known Subclasses:
LayoutBranchBaseImpl

@JSON(strict=true)
public class LayoutBranchModelImpl
extends BaseModelImpl<LayoutBranch>
implements LayoutBranchModel

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

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

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

Field Summary
static boolean COLUMN_BITMASK_ENABLED
           
static String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static long LAYOUTSETBRANCHID_COLUMN_BITMASK
           
static long LOCK_EXPIRATION_TIME
           
static long MASTER_COLUMN_BITMASK
           
static long NAME_COLUMN_BITMASK
           
static long PLID_COLUMN_BITMASK
           
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
LayoutBranchModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(LayoutBranch layoutBranch)
           
 boolean equals(Object obj)
           
 long getColumnBitmask()
           
 long getCompanyId()
          Returns the company ID of this layout branch.
 String getDescription()
          Returns the description of this layout branch.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 long getGroupId()
          Returns the group ID of this layout branch.
 long getLayoutBranchId()
          Returns the layout branch ID of this layout branch.
 long getLayoutSetBranchId()
          Returns the layout set branch ID of this layout branch.
 boolean getMaster()
          Returns the master of this layout branch.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 String getName()
          Returns the name of this layout branch.
 long getOriginalLayoutSetBranchId()
           
 boolean getOriginalMaster()
           
 String getOriginalName()
           
 long getOriginalPlid()
           
 long getPlid()
          Returns the plid of this layout branch.
 long getPrimaryKey()
          Returns the primary key of this layout branch.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 long getUserId()
          Returns the user ID of this layout branch.
 String getUserName()
          Returns the user name of this layout branch.
 String getUserUuid()
          Returns the user uuid of this layout branch.
 int hashCode()
           
 boolean isMaster()
          Returns true if this layout branch is master.
 void resetOriginalValues()
          Reset all original fields to current values.
 void setCompanyId(long companyId)
          Sets the company ID of this layout branch.
 void setDescription(String description)
          Sets the description of this layout branch.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setGroupId(long groupId)
          Sets the group ID of this layout branch.
 void setLayoutBranchId(long LayoutBranchId)
          Sets the layout branch ID of this layout branch.
 void setLayoutSetBranchId(long layoutSetBranchId)
          Sets the layout set branch ID of this layout branch.
 void setMaster(boolean master)
          Sets whether this layout branch is master.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setName(String name)
          Sets the name of this layout branch.
 void setPlid(long plid)
          Sets the plid of this layout branch.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this layout branch.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setUserId(long userId)
          Sets the user ID of this layout branch.
 void setUserName(String userName)
          Sets the user name of this layout branch.
 void setUserUuid(String userUuid)
          Sets the user uuid of this layout branch.
 CacheModel<LayoutBranch> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 LayoutBranch toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
static LayoutBranch toModel(LayoutBranchSoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<LayoutBranch> toModels(LayoutBranchSoap[] soapModels)
          Converts the soap model instances into normal model instances.
 String toString()
           
 LayoutBranch 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.LayoutBranchModel
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

LAYOUTSETBRANCHID_COLUMN_BITMASK

public static long LAYOUTSETBRANCHID_COLUMN_BITMASK

MASTER_COLUMN_BITMASK

public static long MASTER_COLUMN_BITMASK

NAME_COLUMN_BITMASK

public static long NAME_COLUMN_BITMASK

PLID_COLUMN_BITMASK

public static long PLID_COLUMN_BITMASK

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

LayoutBranchModelImpl

public LayoutBranchModelImpl()
Method Detail

toModel

public static LayoutBranch toModel(LayoutBranchSoap 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<LayoutBranch> toModels(LayoutBranchSoap[] 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: LayoutBranchModel
Returns the primary key of this layout branch.

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

setPrimaryKey

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

Specified by:
setPrimaryKey in interface LayoutBranchModel
Parameters:
primaryKey - the primary key of this layout branch

getPrimaryKeyObj

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

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

setModelAttributes

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

getLayoutBranchId

@JSON
public long getLayoutBranchId()
Description copied from interface: LayoutBranchModel
Returns the layout branch ID of this layout branch.

Specified by:
getLayoutBranchId in interface LayoutBranchModel
Returns:
the layout branch ID of this layout branch

setLayoutBranchId

public void setLayoutBranchId(long LayoutBranchId)
Description copied from interface: LayoutBranchModel
Sets the layout branch ID of this layout branch.

Specified by:
setLayoutBranchId in interface LayoutBranchModel
Parameters:
LayoutBranchId - the layout branch ID of this layout branch

getGroupId

@JSON
public long getGroupId()
Description copied from interface: LayoutBranchModel
Returns the group ID of this layout branch.

Specified by:
getGroupId in interface LayoutBranchModel
Returns:
the group ID of this layout branch

setGroupId

public void setGroupId(long groupId)
Description copied from interface: LayoutBranchModel
Sets the group ID of this layout branch.

Specified by:
setGroupId in interface LayoutBranchModel
Parameters:
groupId - the group ID of this layout branch

getCompanyId

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

Specified by:
getCompanyId in interface LayoutBranchModel
Returns:
the company ID of this layout branch

setCompanyId

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

Specified by:
setCompanyId in interface LayoutBranchModel
Parameters:
companyId - the company ID of this layout branch

getUserId

@JSON
public long getUserId()
Description copied from interface: LayoutBranchModel
Returns the user ID of this layout branch.

Specified by:
getUserId in interface LayoutBranchModel
Returns:
the user ID of this layout branch

setUserId

public void setUserId(long userId)
Description copied from interface: LayoutBranchModel
Sets the user ID of this layout branch.

Specified by:
setUserId in interface LayoutBranchModel
Parameters:
userId - the user ID of this layout branch

getUserUuid

public String getUserUuid()
                   throws SystemException
Description copied from interface: LayoutBranchModel
Returns the user uuid of this layout branch.

Specified by:
getUserUuid in interface LayoutBranchModel
Returns:
the user uuid of this layout branch
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Description copied from interface: LayoutBranchModel
Sets the user uuid of this layout branch.

Specified by:
setUserUuid in interface LayoutBranchModel
Parameters:
userUuid - the user uuid of this layout branch

getUserName

@JSON
public String getUserName()
Description copied from interface: LayoutBranchModel
Returns the user name of this layout branch.

Specified by:
getUserName in interface LayoutBranchModel
Returns:
the user name of this layout branch

setUserName

public void setUserName(String userName)
Description copied from interface: LayoutBranchModel
Sets the user name of this layout branch.

Specified by:
setUserName in interface LayoutBranchModel
Parameters:
userName - the user name of this layout branch

getLayoutSetBranchId

@JSON
public long getLayoutSetBranchId()
Description copied from interface: LayoutBranchModel
Returns the layout set branch ID of this layout branch.

Specified by:
getLayoutSetBranchId in interface LayoutBranchModel
Returns:
the layout set branch ID of this layout branch

setLayoutSetBranchId

public void setLayoutSetBranchId(long layoutSetBranchId)
Description copied from interface: LayoutBranchModel
Sets the layout set branch ID of this layout branch.

Specified by:
setLayoutSetBranchId in interface LayoutBranchModel
Parameters:
layoutSetBranchId - the layout set branch ID of this layout branch

getOriginalLayoutSetBranchId

public long getOriginalLayoutSetBranchId()

getPlid

@JSON
public long getPlid()
Description copied from interface: LayoutBranchModel
Returns the plid of this layout branch.

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

setPlid

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

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

getOriginalPlid

public long getOriginalPlid()

getName

@JSON
public String getName()
Description copied from interface: LayoutBranchModel
Returns the name of this layout branch.

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

setName

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

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

getOriginalName

public String getOriginalName()

getDescription

@JSON
public String getDescription()
Description copied from interface: LayoutBranchModel
Returns the description of this layout branch.

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

setDescription

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

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

getMaster

@JSON
public boolean getMaster()
Description copied from interface: LayoutBranchModel
Returns the master of this layout branch.

Specified by:
getMaster in interface LayoutBranchModel
Returns:
the master of this layout branch

isMaster

public boolean isMaster()
Description copied from interface: LayoutBranchModel
Returns true if this layout branch is master.

Specified by:
isMaster in interface LayoutBranchModel
Returns:
true if this layout branch is master; false otherwise

setMaster

public void setMaster(boolean master)
Description copied from interface: LayoutBranchModel
Sets whether this layout branch is master.

Specified by:
setMaster in interface LayoutBranchModel
Parameters:
master - the master of this layout branch

getOriginalMaster

public boolean getOriginalMaster()

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

toEscapedModel

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

toUnescapedModel

public LayoutBranch toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<LayoutBranch>
Specified by:
toUnescapedModel in interface LayoutBranchModel
Overrides:
toUnescapedModel in class BaseModelImpl<LayoutBranch>

clone

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

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

compareTo

public int compareTo(LayoutBranch layoutBranch)
Specified by:
compareTo in interface LayoutBranchModel
Specified by:
compareTo in interface Comparable<LayoutBranch>

equals

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

hashCode

public int hashCode()
Specified by:
hashCode in interface LayoutBranchModel
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<LayoutBranch>
Overrides:
resetOriginalValues in class BaseModelImpl<LayoutBranch>

toCacheModel

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

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

toString

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

Liferay 6.1.2-ce-ga3