Liferay 6.1.2-ce-ga3

com.liferay.portlet.documentlibrary.model
Class DLFileEntryMetadataWrapper

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.model.DLFileEntryMetadataWrapper
All Implemented Interfaces:
BaseModel<DLFileEntryMetadata>, ClassedModel, ModelWrapper<DLFileEntryMetadata>, PersistedModel, DLFileEntryMetadata, DLFileEntryMetadataModel, Serializable, Cloneable, Comparable<DLFileEntryMetadata>

public class DLFileEntryMetadataWrapper
extends Object
implements DLFileEntryMetadata, ModelWrapper<DLFileEntryMetadata>

This class is a wrapper for DLFileEntryMetadata.

See Also:
DLFileEntryMetadata, Serialized Form

Constructor Summary
DLFileEntryMetadataWrapper(DLFileEntryMetadata dlFileEntryMetadata)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(DLFileEntryMetadata dlFileEntryMetadata)
           
 boolean equals(Object obj)
           
 long getDDMStorageId()
          Returns the d d m storage ID of this document library file entry metadata.
 DDMStructure getDDMStructure()
           
 long getDDMStructureId()
          Returns the d d m structure ID of this document library file entry metadata.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 long getFileEntryId()
          Returns the file entry ID of this document library file entry metadata.
 long getFileEntryMetadataId()
          Returns the file entry metadata ID of this document library file entry metadata.
 DLFileEntryType getFileEntryType()
           
 long getFileEntryTypeId()
          Returns the file entry type ID of this document library file entry metadata.
 DLFileVersion getFileVersion()
           
 long getFileVersionId()
          Returns the file version ID of this document library file entry metadata.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 long getPrimaryKey()
          Returns the primary key of this document library file entry metadata.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 String getUuid()
          Returns the uuid of this document library file entry metadata.
 DLFileEntryMetadata getWrappedDLFileEntryMetadata()
          Deprecated. Renamed to getWrappedModel()
 DLFileEntryMetadata 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 setDDMStorageId(long DDMStorageId)
          Sets the d d m storage ID of this document library file entry metadata.
 void setDDMStructureId(long DDMStructureId)
          Sets the d d m structure ID of this document library file entry metadata.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setFileEntryId(long fileEntryId)
          Sets the file entry ID of this document library file entry metadata.
 void setFileEntryMetadataId(long fileEntryMetadataId)
          Sets the file entry metadata ID of this document library file entry metadata.
 void setFileEntryTypeId(long fileEntryTypeId)
          Sets the file entry type ID of this document library file entry metadata.
 void setFileVersionId(long fileVersionId)
          Sets the file version ID of this document library file entry metadata.
 void setModelAttributes(Map<String,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 document library file entry metadata.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setUuid(String uuid)
          Sets the uuid of this document library file entry metadata.
 CacheModel<DLFileEntryMetadata> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 DLFileEntryMetadata toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 DLFileEntryMetadata 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

DLFileEntryMetadataWrapper

public DLFileEntryMetadataWrapper(DLFileEntryMetadata dlFileEntryMetadata)
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<DLFileEntryMetadata>

setModelAttributes

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

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this document library file entry metadata.

Specified by:
getPrimaryKey in interface DLFileEntryMetadataModel
Returns:
the primary key of this document library file entry metadata

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this document library file entry metadata.

Specified by:
setPrimaryKey in interface DLFileEntryMetadataModel
Parameters:
primaryKey - the primary key of this document library file entry metadata

getUuid

public String getUuid()
Returns the uuid of this document library file entry metadata.

Specified by:
getUuid in interface DLFileEntryMetadataModel
Returns:
the uuid of this document library file entry metadata

setUuid

public void setUuid(String uuid)
Sets the uuid of this document library file entry metadata.

Specified by:
setUuid in interface DLFileEntryMetadataModel
Parameters:
uuid - the uuid of this document library file entry metadata

getFileEntryMetadataId

public long getFileEntryMetadataId()
Returns the file entry metadata ID of this document library file entry metadata.

Specified by:
getFileEntryMetadataId in interface DLFileEntryMetadataModel
Returns:
the file entry metadata ID of this document library file entry metadata

setFileEntryMetadataId

public void setFileEntryMetadataId(long fileEntryMetadataId)
Sets the file entry metadata ID of this document library file entry metadata.

Specified by:
setFileEntryMetadataId in interface DLFileEntryMetadataModel
Parameters:
fileEntryMetadataId - the file entry metadata ID of this document library file entry metadata

getDDMStorageId

public long getDDMStorageId()
Returns the d d m storage ID of this document library file entry metadata.

Specified by:
getDDMStorageId in interface DLFileEntryMetadataModel
Returns:
the d d m storage ID of this document library file entry metadata

setDDMStorageId

public void setDDMStorageId(long DDMStorageId)
Sets the d d m storage ID of this document library file entry metadata.

Specified by:
setDDMStorageId in interface DLFileEntryMetadataModel
Parameters:
DDMStorageId - the d d m storage ID of this document library file entry metadata

getDDMStructureId

public long getDDMStructureId()
Returns the d d m structure ID of this document library file entry metadata.

Specified by:
getDDMStructureId in interface DLFileEntryMetadataModel
Returns:
the d d m structure ID of this document library file entry metadata

setDDMStructureId

public void setDDMStructureId(long DDMStructureId)
Sets the d d m structure ID of this document library file entry metadata.

Specified by:
setDDMStructureId in interface DLFileEntryMetadataModel
Parameters:
DDMStructureId - the d d m structure ID of this document library file entry metadata

getFileEntryTypeId

public long getFileEntryTypeId()
Returns the file entry type ID of this document library file entry metadata.

Specified by:
getFileEntryTypeId in interface DLFileEntryMetadataModel
Returns:
the file entry type ID of this document library file entry metadata

setFileEntryTypeId

public void setFileEntryTypeId(long fileEntryTypeId)
Sets the file entry type ID of this document library file entry metadata.

Specified by:
setFileEntryTypeId in interface DLFileEntryMetadataModel
Parameters:
fileEntryTypeId - the file entry type ID of this document library file entry metadata

getFileEntryId

public long getFileEntryId()
Returns the file entry ID of this document library file entry metadata.

Specified by:
getFileEntryId in interface DLFileEntryMetadataModel
Returns:
the file entry ID of this document library file entry metadata

setFileEntryId

public void setFileEntryId(long fileEntryId)
Sets the file entry ID of this document library file entry metadata.

Specified by:
setFileEntryId in interface DLFileEntryMetadataModel
Parameters:
fileEntryId - the file entry ID of this document library file entry metadata

getFileVersionId

public long getFileVersionId()
Returns the file version ID of this document library file entry metadata.

Specified by:
getFileVersionId in interface DLFileEntryMetadataModel
Returns:
the file version ID of this document library file entry metadata

setFileVersionId

public void setFileVersionId(long fileVersionId)
Sets the file version ID of this document library file entry metadata.

Specified by:
setFileVersionId in interface DLFileEntryMetadataModel
Parameters:
fileVersionId - the file version ID of this document library file entry metadata

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<DLFileEntryMetadata>
Specified by:
isNew in interface DLFileEntryMetadataModel
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<DLFileEntryMetadata>
Specified by:
setNew in interface DLFileEntryMetadataModel
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<DLFileEntryMetadata>
Specified by:
isCachedModel in interface DLFileEntryMetadataModel
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<DLFileEntryMetadata>
Specified by:
setCachedModel in interface DLFileEntryMetadataModel
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<DLFileEntryMetadata>
Specified by:
isEscapedModel in interface DLFileEntryMetadataModel
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<DLFileEntryMetadata>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface DLFileEntryMetadataModel
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<DLFileEntryMetadata>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface DLFileEntryMetadataModel
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<DLFileEntryMetadata>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface DLFileEntryMetadataModel
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<DLFileEntryMetadata>
Specified by:
setExpandoBridgeAttributes in interface DLFileEntryMetadataModel
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<DLFileEntryMetadata>
Specified by:
clone in interface DLFileEntryMetadataModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(DLFileEntryMetadata dlFileEntryMetadata)
Specified by:
compareTo in interface DLFileEntryMetadataModel
Specified by:
compareTo in interface Comparable<DLFileEntryMetadata>

hashCode

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

toCacheModel

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

Specified by:
toCacheModel in interface BaseModel<DLFileEntryMetadata>
Specified by:
toCacheModel in interface DLFileEntryMetadataModel
Returns:
the cache model object

toEscapedModel

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

toUnescapedModel

public DLFileEntryMetadata toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<DLFileEntryMetadata>
Specified by:
toUnescapedModel in interface DLFileEntryMetadataModel

toString

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

getDDMStructure

public DDMStructure getDDMStructure()
                             throws PortalException,
                                    SystemException
Specified by:
getDDMStructure in interface DLFileEntryMetadata
Throws:
PortalException
SystemException

getFileEntryType

public DLFileEntryType getFileEntryType()
                                 throws PortalException,
                                        SystemException
Specified by:
getFileEntryType in interface DLFileEntryMetadata
Throws:
PortalException
SystemException

getFileVersion

public DLFileVersion getFileVersion()
                             throws PortalException,
                                    SystemException
Specified by:
getFileVersion in interface DLFileEntryMetadata
Throws:
PortalException
SystemException

equals

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

getWrappedDLFileEntryMetadata

public DLFileEntryMetadata getWrappedDLFileEntryMetadata()
Deprecated. Renamed to getWrappedModel()


getWrappedModel

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

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<DLFileEntryMetadata>

Liferay 6.1.2-ce-ga3