@ProviderType public class RepositoryWrapper extends java.lang.Object implements Repository, ModelWrapper<Repository>
This class is a wrapper for Repository.
Repository,
Serialized Form| Constructor and Description |
|---|
RepositoryWrapper(Repository repository) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(Repository repository) |
boolean |
equals(java.lang.Object obj) |
java.lang.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.
|
java.util.Date |
getCreateDate()
Returns the create date of this repository.
|
java.lang.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.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
java.util.Date |
getModifiedDate()
Returns the modified date of this repository.
|
java.lang.String |
getName()
Returns the name of this repository.
|
java.lang.String |
getPortletId()
Returns the portlet ID of this repository.
|
long |
getPrimaryKey()
Returns the primary key of this repository.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getRepositoryId()
Returns the repository ID of this repository.
|
StagedModelType |
getStagedModelType() |
java.lang.String |
getTypeSettings()
Returns the type settings of this repository.
|
UnicodeProperties |
getTypeSettingsProperties() |
long |
getUserId()
Returns the user ID of this repository.
|
java.lang.String |
getUserName()
Returns the user name of this repository.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this repository.
|
java.lang.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(java.lang.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(java.util.Date createDate)
Sets the create date of this repository.
|
void |
setDescription(java.lang.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(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this repository.
|
void |
setName(java.lang.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(java.lang.String portletId)
Sets the portlet ID of this repository.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this repository.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setRepositoryId(long repositoryId)
Sets the repository ID of this repository.
|
void |
setTypeSettings(java.lang.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(java.lang.String userName)
Sets the user name of this repository.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this repository.
|
void |
setUuid(java.lang.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. |
java.lang.String |
toString() |
Repository |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public RepositoryWrapper(Repository repository)
public java.lang.Class<?> getModelClass()
getModelClass in interface ClassedModelpublic java.lang.String getModelClassName()
getModelClassName in interface ClassedModelpublic java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface BaseModel<Repository>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<Repository>public long getPrimaryKey()
getPrimaryKey in interface RepositoryModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface RepositoryModelprimaryKey - the primary key of this repositorypublic java.lang.String getUuid()
getUuid in interface RepositoryModelgetUuid in interface StagedModelpublic void setUuid(java.lang.String uuid)
setUuid in interface RepositoryModelsetUuid in interface StagedModeluuid - the uuid of this repositorypublic long getRepositoryId()
getRepositoryId in interface RepositoryModelpublic void setRepositoryId(long repositoryId)
setRepositoryId in interface RepositoryModelrepositoryId - the repository ID of this repositorypublic long getGroupId()
getGroupId in interface GroupedModelgetGroupId in interface RepositoryModelpublic void setGroupId(long groupId)
setGroupId in interface GroupedModelsetGroupId in interface RepositoryModelgroupId - the group ID of this repositorypublic long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface RepositoryModelgetCompanyId in interface StagedModelpublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface RepositoryModelsetCompanyId in interface StagedModelcompanyId - the company ID of this repositorypublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface RepositoryModelpublic void setUserId(long userId)
setUserId in interface AuditedModelsetUserId in interface RepositoryModeluserId - the user ID of this repositorypublic java.lang.String getUserUuid()
throws SystemException
getUserUuid in interface AuditedModelgetUserUuid in interface RepositoryModelSystemException - if a system exception occurredpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface RepositoryModeluserUuid - the user uuid of this repositorypublic java.lang.String getUserName()
getUserName in interface AuditedModelgetUserName in interface RepositoryModelpublic void setUserName(java.lang.String userName)
setUserName in interface AuditedModelsetUserName in interface RepositoryModeluserName - the user name of this repositorypublic java.util.Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface RepositoryModelgetCreateDate in interface StagedModelpublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface RepositoryModelsetCreateDate in interface StagedModelcreateDate - the create date of this repositorypublic java.util.Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface RepositoryModelgetModifiedDate in interface StagedModelpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface AuditedModelsetModifiedDate in interface RepositoryModelsetModifiedDate in interface StagedModelmodifiedDate - the modified date of this repositorypublic java.lang.String getClassName()
getClassName in interface RepositoryModelgetClassName in interface TypedModelpublic void setClassName(java.lang.String className)
setClassName in interface RepositoryModelpublic long getClassNameId()
getClassNameId in interface RepositoryModelgetClassNameId in interface TypedModelpublic void setClassNameId(long classNameId)
setClassNameId in interface RepositoryModelsetClassNameId in interface TypedModelclassNameId - the class name ID of this repositorypublic java.lang.String getName()
getName in interface RepositoryModelpublic void setName(java.lang.String name)
setName in interface RepositoryModelname - the name of this repositorypublic java.lang.String getDescription()
getDescription in interface RepositoryModelpublic void setDescription(java.lang.String description)
setDescription in interface RepositoryModeldescription - the description of this repositorypublic java.lang.String getPortletId()
getPortletId in interface RepositoryModelpublic void setPortletId(java.lang.String portletId)
setPortletId in interface RepositoryModelportletId - the portlet ID of this repositorypublic java.lang.String getTypeSettings()
getTypeSettings in interface RepositoryModelpublic void setTypeSettings(java.lang.String typeSettings)
setTypeSettings in interface RepositoryModeltypeSettings - the type settings of this repositorypublic long getDlFolderId()
getDlFolderId in interface RepositoryModelpublic void setDlFolderId(long dlFolderId)
setDlFolderId in interface RepositoryModeldlFolderId - the dl folder ID of this repositorypublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface BaseModel<Repository>isNew in interface RepositoryModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<Repository>setNew in interface RepositoryModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<Repository>isCachedModel in interface RepositoryModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<Repository>setCachedModel in interface RepositoryModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<Repository>isEscapedModel in interface RepositoryModeltrue if this model instance is escaped;
false otherwisepublic java.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<Repository>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface RepositoryModelpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<Repository>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface RepositoryModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<Repository>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface RepositoryModelpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<Repository>setExpandoBridgeAttributes in interface RepositoryModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<Repository>setExpandoBridgeAttributes in interface RepositoryModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<Repository>setExpandoBridgeAttributes in interface RepositoryModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public java.lang.Object clone()
BaseModelclone in interface BaseModel<Repository>clone in interface RepositoryModelclone in interface StagedModelclone in class java.lang.Objectpublic int compareTo(Repository repository)
compareTo in interface RepositoryModelcompareTo in interface java.lang.Comparable<Repository>public int hashCode()
hashCode in interface RepositoryModelhashCode in class java.lang.Objectpublic CacheModel<Repository> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<Repository>toCacheModel in interface RepositoryModelpublic Repository toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<Repository>toEscapedModel in interface RepositoryModelAutoEscapeBeanHandlerpublic Repository toUnescapedModel()
toUnescapedModel in interface BaseModel<Repository>toUnescapedModel in interface RepositoryModelpublic java.lang.String toString()
toString in interface RepositoryModeltoString in class java.lang.Objectpublic java.lang.String toXmlString()
BaseModeltoXmlString in interface BaseModel<Repository>toXmlString in interface RepositoryModelpublic void persist()
throws SystemException
PersistedModelpersist in interface PersistedModelSystemException - if a system exception occurredpublic UnicodeProperties getTypeSettingsProperties()
getTypeSettingsProperties in interface Repositorypublic void setTypeSettingsProperties(UnicodeProperties typeSettingsProperties)
setTypeSettingsProperties in interface Repositorypublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic StagedModelType getStagedModelType()
getStagedModelType in interface StagedModelpublic Repository getWrappedRepository()
getWrappedModel()public Repository getWrappedModel()
getWrappedModel in interface ModelWrapper<Repository>public void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<Repository>