Liferay 6.1.2-ce-ga3

com.liferay.portal.model
Class LayoutBranchWrapper

java.lang.Object
  extended by com.liferay.portal.model.LayoutBranchWrapper
All Implemented Interfaces:
BaseModel<LayoutBranch>, ClassedModel, LayoutBranch, LayoutBranchModel, ModelWrapper<LayoutBranch>, PersistedModel, Serializable, Cloneable, Comparable<LayoutBranch>

public class LayoutBranchWrapper
extends Object
implements LayoutBranch, ModelWrapper<LayoutBranch>

This class is a wrapper for LayoutBranch.

See Also:
LayoutBranch, Serialized Form

Constructor Summary
LayoutBranchWrapper(LayoutBranch layoutBranch)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(LayoutBranch layoutBranch)
           
 boolean equals(Object obj)
           
 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 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.
 LayoutBranch getWrappedLayoutBranch()
          Deprecated. Renamed to getWrappedModel()
 LayoutBranch getWrappedModel()
           
 int hashCode()
           
 boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Returns true if this model instance is escaped.
 boolean isMaster()
          Returns true if this layout branch is master.
 boolean isNew()
          Returns true if this model instance does not yet exist in the database.
 void persist()
          Updates this model instance in the database or adds it if it does not yet exist.
 void resetOriginalValues()
          Reset all original fields to current values.
 void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 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 setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 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.
 String toString()
           
 LayoutBranch toUnescapedModel()
           
 String toXmlString()
          Returns the XML representation of this model instance.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LayoutBranchWrapper

public LayoutBranchWrapper(LayoutBranch layoutBranch)
Method Detail

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>

setModelAttributes

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

getPrimaryKey

public long getPrimaryKey()
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)
Sets the primary key of this layout branch.

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

getLayoutBranchId

public long getLayoutBranchId()
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)
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

public long getGroupId()
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)
Sets the group ID of this layout branch.

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

getCompanyId

public long getCompanyId()
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)
Sets the company ID of this layout branch.

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

getUserId

public long getUserId()
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)
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
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)
Sets the user uuid of this layout branch.

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

getUserName

public String getUserName()
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)
Sets the user name of this layout branch.

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

getLayoutSetBranchId

public long getLayoutSetBranchId()
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)
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

getPlid

public long getPlid()
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)
Sets the plid of this layout branch.

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

getName

public String getName()
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)
Sets the name of this layout branch.

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

getDescription

public String getDescription()
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)
Sets the description of this layout branch.

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

getMaster

public boolean getMaster()
Returns the master of this layout branch.

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

isMaster

public boolean isMaster()
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)
Sets whether this layout branch is master.

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

isNew

public boolean isNew()
Description copied from interface: BaseModel
Returns true if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<LayoutBranch>
Specified by:
isNew in interface LayoutBranchModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<LayoutBranch>
Specified by:
setNew in interface LayoutBranchModel
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Returns true if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<LayoutBranch>
Specified by:
isCachedModel in interface LayoutBranchModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<LayoutBranch>
Specified by:
setCachedModel in interface LayoutBranchModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Returns true if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<LayoutBranch>
Specified by:
isEscapedModel in interface LayoutBranchModel
Returns:
true if this model instance is escaped; false otherwise

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

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
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
Parameters:
serviceContext - the service context
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<LayoutBranch>
Specified by:
clone in interface LayoutBranchModel
Overrides:
clone in class Object
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>

hashCode

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

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
Returns:
the cache model object

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
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

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

persist

public void persist()
             throws SystemException
Description copied from interface: PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
persist in interface PersistedModel
Throws:
SystemException - if a system exception occurred

equals

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

getWrappedLayoutBranch

public LayoutBranch getWrappedLayoutBranch()
Deprecated. Renamed to getWrappedModel()


getWrappedModel

public LayoutBranch getWrappedModel()
Specified by:
getWrappedModel in interface ModelWrapper<LayoutBranch>

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<LayoutBranch>

Liferay 6.1.2-ce-ga3