Liferay 6.2-ce-ga5

com.liferay.portal.model
Class RepositoryWrapper

java.lang.Object
  extended by com.liferay.portal.model.RepositoryWrapper
All Implemented Interfaces:
AuditedModel, BaseModel<Repository>, ClassedModel, GroupedModel, ModelWrapper<Repository>, PersistedModel, Repository, RepositoryModel, StagedGroupedModel, StagedModel, TypedModel, Serializable, Cloneable, Comparable<Repository>

@ProviderType
public class RepositoryWrapper
extends Object
implements Repository, ModelWrapper<Repository>

This class is a wrapper for Repository.

See Also:
Repository, Serialized Form

Constructor Summary
RepositoryWrapper(Repository repository)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Repository repository)
           
 boolean equals(Object obj)
           
 String getClassName()
          Returns the fully qualified class name of this repository.
 long getClassNameId()
          Returns the class name ID of this repository.
 long getCompanyId()
          Returns the company ID of this repository.
 Date getCreateDate()
          Returns the create date of this repository.
 String getDescription()
          Returns the description of this repository.
 long getDlFolderId()
          Returns the dl folder ID of this repository.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 long getGroupId()
          Returns the group ID of this repository.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this repository.
 String getName()
          Returns the name of this repository.
 String getPortletId()
          Returns the portlet ID of this repository.
 long getPrimaryKey()
          Returns the primary key of this repository.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 long getRepositoryId()
          Returns the repository ID of this repository.
 StagedModelType getStagedModelType()
           
 String getTypeSettings()
          Returns the type settings of this repository.
 UnicodeProperties getTypeSettingsProperties()
           
 long getUserId()
          Returns the user ID of this repository.
 String getUserName()
          Returns the user name of this repository.
 String getUserUuid()
          Returns the user uuid of this repository.
 String getUuid()
          Returns the uuid of this repository.
 Repository getWrappedModel()
           
 Repository getWrappedRepository()
          Deprecated. As of 6.1.0, replaced by 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 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 setClassName(String className)
           
 void setClassNameId(long classNameId)
          Sets the class name ID of this repository.
 void setCompanyId(long companyId)
          Sets the company ID of this repository.
 void setCreateDate(Date createDate)
          Sets the create date of this repository.
 void setDescription(String description)
          Sets the description of this repository.
 void setDlFolderId(long dlFolderId)
          Sets the dl folder ID of this repository.
 void setExpandoBridgeAttributes(BaseModel<?> baseModel)
           
 void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
           
 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 repository.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this repository.
 void setName(String name)
          Sets the name of this repository.
 void setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 void setPortletId(String portletId)
          Sets the portlet ID of this repository.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this repository.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setRepositoryId(long repositoryId)
          Sets the repository ID of this repository.
 void setTypeSettings(String typeSettings)
          Sets the type settings of this repository.
 void setTypeSettingsProperties(UnicodeProperties typeSettingsProperties)
           
 void setUserId(long userId)
          Sets the user ID of this repository.
 void setUserName(String userName)
          Sets the user name of this repository.
 void setUserUuid(String userUuid)
          Sets the user uuid of this repository.
 void setUuid(String uuid)
          Sets the uuid of this repository.
 CacheModel<Repository> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 Repository toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 Repository 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

RepositoryWrapper

public RepositoryWrapper(Repository repository)
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<Repository>

setModelAttributes

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

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this repository.

Specified by:
getPrimaryKey in interface RepositoryModel
Returns:
the primary key of this repository

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this repository.

Specified by:
setPrimaryKey in interface RepositoryModel
Parameters:
primaryKey - the primary key of this repository

getUuid

public String getUuid()
Returns the uuid of this repository.

Specified by:
getUuid in interface RepositoryModel
Specified by:
getUuid in interface StagedModel
Returns:
the uuid of this repository

setUuid

public void setUuid(String uuid)
Sets the uuid of this repository.

Specified by:
setUuid in interface RepositoryModel
Specified by:
setUuid in interface StagedModel
Parameters:
uuid - the uuid of this repository

getRepositoryId

public long getRepositoryId()
Returns the repository ID of this repository.

Specified by:
getRepositoryId in interface RepositoryModel
Returns:
the repository ID of this repository

setRepositoryId

public void setRepositoryId(long repositoryId)
Sets the repository ID of this repository.

Specified by:
setRepositoryId in interface RepositoryModel
Parameters:
repositoryId - the repository ID of this repository

getGroupId

public long getGroupId()
Returns the group ID of this repository.

Specified by:
getGroupId in interface GroupedModel
Specified by:
getGroupId in interface RepositoryModel
Returns:
the group ID of this repository

setGroupId

public void setGroupId(long groupId)
Sets the group ID of this repository.

Specified by:
setGroupId in interface GroupedModel
Specified by:
setGroupId in interface RepositoryModel
Parameters:
groupId - the group ID of this repository

getCompanyId

public long getCompanyId()
Returns the company ID of this repository.

Specified by:
getCompanyId in interface AuditedModel
Specified by:
getCompanyId in interface RepositoryModel
Specified by:
getCompanyId in interface StagedModel
Returns:
the company ID of this repository

setCompanyId

public void setCompanyId(long companyId)
Sets the company ID of this repository.

Specified by:
setCompanyId in interface AuditedModel
Specified by:
setCompanyId in interface RepositoryModel
Specified by:
setCompanyId in interface StagedModel
Parameters:
companyId - the company ID of this repository

getUserId

public long getUserId()
Returns the user ID of this repository.

Specified by:
getUserId in interface AuditedModel
Specified by:
getUserId in interface RepositoryModel
Returns:
the user ID of this repository

setUserId

public void setUserId(long userId)
Sets the user ID of this repository.

Specified by:
setUserId in interface AuditedModel
Specified by:
setUserId in interface RepositoryModel
Parameters:
userId - the user ID of this repository

getUserUuid

public String getUserUuid()
                   throws SystemException
Returns the user uuid of this repository.

Specified by:
getUserUuid in interface AuditedModel
Specified by:
getUserUuid in interface RepositoryModel
Returns:
the user uuid of this repository
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Sets the user uuid of this repository.

Specified by:
setUserUuid in interface AuditedModel
Specified by:
setUserUuid in interface RepositoryModel
Parameters:
userUuid - the user uuid of this repository

getUserName

public String getUserName()
Returns the user name of this repository.

Specified by:
getUserName in interface AuditedModel
Specified by:
getUserName in interface RepositoryModel
Returns:
the user name of this repository

setUserName

public void setUserName(String userName)
Sets the user name of this repository.

Specified by:
setUserName in interface AuditedModel
Specified by:
setUserName in interface RepositoryModel
Parameters:
userName - the user name of this repository

getCreateDate

public Date getCreateDate()
Returns the create date of this repository.

Specified by:
getCreateDate in interface AuditedModel
Specified by:
getCreateDate in interface RepositoryModel
Specified by:
getCreateDate in interface StagedModel
Returns:
the create date of this repository

setCreateDate

public void setCreateDate(Date createDate)
Sets the create date of this repository.

Specified by:
setCreateDate in interface AuditedModel
Specified by:
setCreateDate in interface RepositoryModel
Specified by:
setCreateDate in interface StagedModel
Parameters:
createDate - the create date of this repository

getModifiedDate

public Date getModifiedDate()
Returns the modified date of this repository.

Specified by:
getModifiedDate in interface AuditedModel
Specified by:
getModifiedDate in interface RepositoryModel
Specified by:
getModifiedDate in interface StagedModel
Returns:
the modified date of this repository

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Sets the modified date of this repository.

Specified by:
setModifiedDate in interface AuditedModel
Specified by:
setModifiedDate in interface RepositoryModel
Specified by:
setModifiedDate in interface StagedModel
Parameters:
modifiedDate - the modified date of this repository

getClassName

public String getClassName()
Returns the fully qualified class name of this repository.

Specified by:
getClassName in interface RepositoryModel
Specified by:
getClassName in interface TypedModel
Returns:
the fully qualified class name of this repository

setClassName

public void setClassName(String className)
Specified by:
setClassName in interface RepositoryModel

getClassNameId

public long getClassNameId()
Returns the class name ID of this repository.

Specified by:
getClassNameId in interface RepositoryModel
Specified by:
getClassNameId in interface TypedModel
Returns:
the class name ID of this repository

setClassNameId

public void setClassNameId(long classNameId)
Sets the class name ID of this repository.

Specified by:
setClassNameId in interface RepositoryModel
Specified by:
setClassNameId in interface TypedModel
Parameters:
classNameId - the class name ID of this repository

getName

public String getName()
Returns the name of this repository.

Specified by:
getName in interface RepositoryModel
Returns:
the name of this repository

setName

public void setName(String name)
Sets the name of this repository.

Specified by:
setName in interface RepositoryModel
Parameters:
name - the name of this repository

getDescription

public String getDescription()
Returns the description of this repository.

Specified by:
getDescription in interface RepositoryModel
Returns:
the description of this repository

setDescription

public void setDescription(String description)
Sets the description of this repository.

Specified by:
setDescription in interface RepositoryModel
Parameters:
description - the description of this repository

getPortletId

public String getPortletId()
Returns the portlet ID of this repository.

Specified by:
getPortletId in interface RepositoryModel
Returns:
the portlet ID of this repository

setPortletId

public void setPortletId(String portletId)
Sets the portlet ID of this repository.

Specified by:
setPortletId in interface RepositoryModel
Parameters:
portletId - the portlet ID of this repository

getTypeSettings

public String getTypeSettings()
Returns the type settings of this repository.

Specified by:
getTypeSettings in interface RepositoryModel
Returns:
the type settings of this repository

setTypeSettings

public void setTypeSettings(String typeSettings)
Sets the type settings of this repository.

Specified by:
setTypeSettings in interface RepositoryModel
Parameters:
typeSettings - the type settings of this repository

getDlFolderId

public long getDlFolderId()
Returns the dl folder ID of this repository.

Specified by:
getDlFolderId in interface RepositoryModel
Returns:
the dl folder ID of this repository

setDlFolderId

public void setDlFolderId(long dlFolderId)
Sets the dl folder ID of this repository.

Specified by:
setDlFolderId in interface RepositoryModel
Parameters:
dlFolderId - the dl folder ID of this repository

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<Repository>
Specified by:
isNew in interface RepositoryModel
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<Repository>
Specified by:
setNew in interface RepositoryModel
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<Repository>
Specified by:
isCachedModel in interface RepositoryModel
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<Repository>
Specified by:
setCachedModel in interface RepositoryModel
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<Repository>
Specified by:
isEscapedModel in interface RepositoryModel
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<Repository>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface RepositoryModel
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<Repository>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface RepositoryModel
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<Repository>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface RepositoryModel
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<Repository>
Specified by:
setExpandoBridgeAttributes in interface RepositoryModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<Repository>
Specified by:
setExpandoBridgeAttributes in interface RepositoryModel

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<Repository>
Specified by:
setExpandoBridgeAttributes in interface RepositoryModel
Parameters:
serviceContext - the service context to be applied
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<Repository>
Specified by:
clone in interface RepositoryModel
Specified by:
clone in interface StagedModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(Repository repository)
Specified by:
compareTo in interface RepositoryModel
Specified by:
compareTo in interface Comparable<Repository>

hashCode

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

toCacheModel

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

Specified by:
toCacheModel in interface BaseModel<Repository>
Specified by:
toCacheModel in interface RepositoryModel
Returns:
the cache model object

toEscapedModel

public Repository 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<Repository>
Specified by:
toEscapedModel in interface RepositoryModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public Repository toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<Repository>
Specified by:
toUnescapedModel in interface RepositoryModel

toString

public String toString()
Specified by:
toString in interface RepositoryModel
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<Repository>
Specified by:
toXmlString in interface RepositoryModel
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

getTypeSettingsProperties

public UnicodeProperties getTypeSettingsProperties()
Specified by:
getTypeSettingsProperties in interface Repository

setTypeSettingsProperties

public void setTypeSettingsProperties(UnicodeProperties typeSettingsProperties)
Specified by:
setTypeSettingsProperties in interface Repository

equals

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

getStagedModelType

public StagedModelType getStagedModelType()
Specified by:
getStagedModelType in interface StagedModel

getWrappedRepository

public Repository getWrappedRepository()
Deprecated. As of 6.1.0, replaced by getWrappedModel()


getWrappedModel

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

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<Repository>

Liferay 6.2-ce-ga5