public class DDMStorageLinkWrapper extends java.lang.Object implements DDMStorageLink, ModelWrapper<DDMStorageLink>
This class is a wrapper for DDMStorageLink
.
DDMStorageLink
,
Serialized FormSTORAGE_LINK_ID_ACCESSOR
Constructor and Description |
---|
DDMStorageLinkWrapper(DDMStorageLink ddmStorageLink) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(DDMStorageLink ddmStorageLink) |
boolean |
equals(java.lang.Object object) |
java.lang.String |
getClassName()
Returns the fully qualified class name of this ddm storage link.
|
long |
getClassNameId()
Returns the class name ID of this ddm storage link.
|
long |
getClassPK()
Returns the class pk of this ddm storage link.
|
long |
getCompanyId()
Returns the company ID of this ddm storage link.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
long |
getPrimaryKey()
Returns the primary key of this ddm storage link.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getStorageLinkId()
Returns the storage link ID of this ddm storage link.
|
java.lang.String |
getStorageType() |
DDMStructure |
getStructure() |
long |
getStructureId()
Returns the structure ID of this ddm storage link.
|
java.lang.String |
getUuid()
Returns the uuid of this ddm storage link.
|
DDMStorageLink |
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns
true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns
true if this model's finder cache is enabled. |
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 ddm storage link.
|
void |
setClassPK(long classPK)
Sets the class pk of this ddm storage link.
|
void |
setCompanyId(long companyId)
Sets the company ID of this ddm storage link.
|
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 |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this ddm storage link.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setStorageLinkId(long storageLinkId)
Sets the storage link ID of this ddm storage link.
|
void |
setStructureId(long structureId)
Sets the structure ID of this ddm storage link.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this ddm storage link.
|
CacheModel<DDMStorageLink> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
DDMStorageLink |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler . |
java.lang.String |
toString() |
DDMStorageLink |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public DDMStorageLinkWrapper(DDMStorageLink ddmStorageLink)
public java.lang.Class<?> getModelClass()
getModelClass
in interface ClassedModel
public java.lang.String getModelClassName()
getModelClassName
in interface ClassedModel
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes
in interface BaseModel<DDMStorageLink>
public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes
in interface BaseModel<DDMStorageLink>
public java.lang.Object clone()
BaseModel
clone
in interface DDMStorageLinkModel
clone
in interface BaseModel<DDMStorageLink>
clone
in class java.lang.Object
public int compareTo(DDMStorageLink ddmStorageLink)
compareTo
in interface DDMStorageLinkModel
compareTo
in interface java.lang.Comparable<DDMStorageLink>
public java.lang.String getClassName()
getClassName
in interface DDMStorageLinkModel
getClassName
in interface TypedModel
public long getClassNameId()
getClassNameId
in interface DDMStorageLinkModel
getClassNameId
in interface TypedModel
public long getClassPK()
getClassPK
in interface DDMStorageLinkModel
getClassPK
in interface AttachedModel
public long getCompanyId()
getCompanyId
in interface DDMStorageLinkModel
getCompanyId
in interface ShardedModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface DDMStorageLinkModel
getExpandoBridge
in interface BaseModel<DDMStorageLink>
getExpandoBridge
in interface ClassedModel
public long getPrimaryKey()
getPrimaryKey
in interface DDMStorageLinkModel
public java.io.Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface DDMStorageLinkModel
getPrimaryKeyObj
in interface BaseModel<DDMStorageLink>
getPrimaryKeyObj
in interface ClassedModel
public long getStorageLinkId()
getStorageLinkId
in interface DDMStorageLinkModel
public java.lang.String getStorageType() throws PortalException
getStorageType
in interface DDMStorageLink
PortalException
public DDMStructure getStructure() throws PortalException
getStructure
in interface DDMStorageLink
PortalException
public long getStructureId()
getStructureId
in interface DDMStorageLinkModel
public java.lang.String getUuid()
getUuid
in interface DDMStorageLinkModel
public int hashCode()
hashCode
in interface DDMStorageLinkModel
hashCode
in class java.lang.Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface DDMStorageLinkModel
isCachedModel
in interface BaseModel<DDMStorageLink>
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.isEscapedModel
in interface DDMStorageLinkModel
isEscapedModel
in interface BaseModel<DDMStorageLink>
true
if this model instance is escaped;
false
otherwisepublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.isNew
in interface DDMStorageLinkModel
isNew
in interface BaseModel<DDMStorageLink>
true
if this model instance does not yet exist in
the database; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface DDMStorageLinkModel
setCachedModel
in interface BaseModel<DDMStorageLink>
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setClassName(java.lang.String className)
setClassName
in interface DDMStorageLinkModel
public void setClassNameId(long classNameId)
setClassNameId
in interface DDMStorageLinkModel
setClassNameId
in interface TypedModel
classNameId
- the class name ID of this ddm storage linkpublic void setClassPK(long classPK)
setClassPK
in interface DDMStorageLinkModel
setClassPK
in interface AttachedModel
classPK
- the class pk of this ddm storage linkpublic void setCompanyId(long companyId)
setCompanyId
in interface DDMStorageLinkModel
setCompanyId
in interface ShardedModel
companyId
- the company ID of this ddm storage linkpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface DDMStorageLinkModel
setExpandoBridgeAttributes
in interface BaseModel<DDMStorageLink>
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface DDMStorageLinkModel
setExpandoBridgeAttributes
in interface BaseModel<DDMStorageLink>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface DDMStorageLinkModel
setExpandoBridgeAttributes
in interface BaseModel<DDMStorageLink>
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setNew(boolean n)
BaseModel
setNew
in interface DDMStorageLinkModel
setNew
in interface BaseModel<DDMStorageLink>
n
- whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface DDMStorageLinkModel
primaryKey
- the primary key of this ddm storage linkpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface DDMStorageLinkModel
setPrimaryKeyObj
in interface BaseModel<DDMStorageLink>
setPrimaryKeyObj
in interface ClassedModel
primaryKeyObj
- the primary key of this model instancepublic void setStorageLinkId(long storageLinkId)
setStorageLinkId
in interface DDMStorageLinkModel
storageLinkId
- the storage link ID of this ddm storage linkpublic void setStructureId(long structureId)
setStructureId
in interface DDMStorageLinkModel
structureId
- the structure ID of this ddm storage linkpublic void setUuid(java.lang.String uuid)
setUuid
in interface DDMStorageLinkModel
uuid
- the uuid of this ddm storage linkpublic CacheModel<DDMStorageLink> toCacheModel()
BaseModel
toCacheModel
in interface DDMStorageLinkModel
toCacheModel
in interface BaseModel<DDMStorageLink>
public DDMStorageLink toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface DDMStorageLinkModel
toEscapedModel
in interface BaseModel<DDMStorageLink>
AutoEscapeBeanHandler
public java.lang.String toString()
toString
in interface DDMStorageLinkModel
toString
in class java.lang.Object
public DDMStorageLink toUnescapedModel()
toUnescapedModel
in interface DDMStorageLinkModel
toUnescapedModel
in interface BaseModel<DDMStorageLink>
public java.lang.String toXmlString()
BaseModel
toXmlString
in interface DDMStorageLinkModel
toXmlString
in interface BaseModel<DDMStorageLink>
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public DDMStorageLink getWrappedModel()
getWrappedModel
in interface ModelWrapper<DDMStorageLink>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<DDMStorageLink>
true
if this model's entity cache is enabled;
false
otherwisepublic boolean isFinderCacheEnabled()
BaseModel
true
if this model's finder cache is enabled.isFinderCacheEnabled
in interface BaseModel<DDMStorageLink>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<DDMStorageLink>