Liferay 6.1.2-ce-ga3

com.liferay.portlet.documentlibrary.model
Class DLSyncWrapper

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

public class DLSyncWrapper
extends Object
implements DLSync, ModelWrapper<DLSync>

This class is a wrapper for DLSync.

See Also:
DLSync, Serialized Form

Constructor Summary
DLSyncWrapper(DLSync dlSync)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(DLSync dlSync)
           
 boolean equals(Object obj)
           
 long getCompanyId()
          Returns the company ID of this d l sync.
 Date getCreateDate()
          Returns the create date of this d l sync.
 String getDescription()
          Returns the description of this d l sync.
 String getEvent()
          Returns the event of this d l sync.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 long getFileId()
          Returns the file ID of this d l sync.
 String getFileUuid()
          Returns the file uuid of this d l sync.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this d l sync.
 String getName()
          Returns the name of this d l sync.
 long getParentFolderId()
          Returns the parent folder ID of this d l sync.
 long getPrimaryKey()
          Returns the primary key of this d l sync.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 long getRepositoryId()
          Returns the repository ID of this d l sync.
 long getSyncId()
          Returns the sync ID of this d l sync.
 String getType()
          Returns the type of this d l sync.
 String getVersion()
          Returns the version of this d l sync.
 DLSync getWrappedDLSync()
          Deprecated. Renamed to getWrappedModel()
 DLSync 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 setCompanyId(long companyId)
          Sets the company ID of this d l sync.
 void setCreateDate(Date createDate)
          Sets the create date of this d l sync.
 void setDescription(String description)
          Sets the description of this d l sync.
 void setEvent(String event)
          Sets the event of this d l sync.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setFileId(long fileId)
          Sets the file ID of this d l sync.
 void setFileUuid(String fileUuid)
          Sets the file uuid of this d l sync.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this d l sync.
 void setName(String name)
          Sets the name of this d l sync.
 void setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 void setParentFolderId(long parentFolderId)
          Sets the parent folder ID of this d l sync.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this d l sync.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setRepositoryId(long repositoryId)
          Sets the repository ID of this d l sync.
 void setSyncId(long syncId)
          Sets the sync ID of this d l sync.
 void setType(String type)
          Sets the type of this d l sync.
 void setVersion(String version)
          Sets the version of this d l sync.
 CacheModel<DLSync> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 DLSync toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 DLSync 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

DLSyncWrapper

public DLSyncWrapper(DLSync dlSync)
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<DLSync>

setModelAttributes

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

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this d l sync.

Specified by:
getPrimaryKey in interface DLSyncModel
Returns:
the primary key of this d l sync

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this d l sync.

Specified by:
setPrimaryKey in interface DLSyncModel
Parameters:
primaryKey - the primary key of this d l sync

getSyncId

public long getSyncId()
Returns the sync ID of this d l sync.

Specified by:
getSyncId in interface DLSyncModel
Returns:
the sync ID of this d l sync

setSyncId

public void setSyncId(long syncId)
Sets the sync ID of this d l sync.

Specified by:
setSyncId in interface DLSyncModel
Parameters:
syncId - the sync ID of this d l sync

getCompanyId

public long getCompanyId()
Returns the company ID of this d l sync.

Specified by:
getCompanyId in interface DLSyncModel
Returns:
the company ID of this d l sync

setCompanyId

public void setCompanyId(long companyId)
Sets the company ID of this d l sync.

Specified by:
setCompanyId in interface DLSyncModel
Parameters:
companyId - the company ID of this d l sync

getCreateDate

public Date getCreateDate()
Returns the create date of this d l sync.

Specified by:
getCreateDate in interface DLSyncModel
Returns:
the create date of this d l sync

setCreateDate

public void setCreateDate(Date createDate)
Sets the create date of this d l sync.

Specified by:
setCreateDate in interface DLSyncModel
Parameters:
createDate - the create date of this d l sync

getModifiedDate

public Date getModifiedDate()
Returns the modified date of this d l sync.

Specified by:
getModifiedDate in interface DLSyncModel
Returns:
the modified date of this d l sync

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Sets the modified date of this d l sync.

Specified by:
setModifiedDate in interface DLSyncModel
Parameters:
modifiedDate - the modified date of this d l sync

getFileId

public long getFileId()
Returns the file ID of this d l sync.

Specified by:
getFileId in interface DLSyncModel
Returns:
the file ID of this d l sync

setFileId

public void setFileId(long fileId)
Sets the file ID of this d l sync.

Specified by:
setFileId in interface DLSyncModel
Parameters:
fileId - the file ID of this d l sync

getFileUuid

public String getFileUuid()
Returns the file uuid of this d l sync.

Specified by:
getFileUuid in interface DLSyncModel
Returns:
the file uuid of this d l sync

setFileUuid

public void setFileUuid(String fileUuid)
Sets the file uuid of this d l sync.

Specified by:
setFileUuid in interface DLSyncModel
Parameters:
fileUuid - the file uuid of this d l sync

getRepositoryId

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

Specified by:
getRepositoryId in interface DLSyncModel
Returns:
the repository ID of this d l sync

setRepositoryId

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

Specified by:
setRepositoryId in interface DLSyncModel
Parameters:
repositoryId - the repository ID of this d l sync

getParentFolderId

public long getParentFolderId()
Returns the parent folder ID of this d l sync.

Specified by:
getParentFolderId in interface DLSyncModel
Returns:
the parent folder ID of this d l sync

setParentFolderId

public void setParentFolderId(long parentFolderId)
Sets the parent folder ID of this d l sync.

Specified by:
setParentFolderId in interface DLSyncModel
Parameters:
parentFolderId - the parent folder ID of this d l sync

getName

public String getName()
Returns the name of this d l sync.

Specified by:
getName in interface DLSyncModel
Returns:
the name of this d l sync

setName

public void setName(String name)
Sets the name of this d l sync.

Specified by:
setName in interface DLSyncModel
Parameters:
name - the name of this d l sync

getDescription

public String getDescription()
Returns the description of this d l sync.

Specified by:
getDescription in interface DLSyncModel
Returns:
the description of this d l sync

setDescription

public void setDescription(String description)
Sets the description of this d l sync.

Specified by:
setDescription in interface DLSyncModel
Parameters:
description - the description of this d l sync

getEvent

public String getEvent()
Returns the event of this d l sync.

Specified by:
getEvent in interface DLSyncModel
Returns:
the event of this d l sync

setEvent

public void setEvent(String event)
Sets the event of this d l sync.

Specified by:
setEvent in interface DLSyncModel
Parameters:
event - the event of this d l sync

getType

public String getType()
Returns the type of this d l sync.

Specified by:
getType in interface DLSyncModel
Returns:
the type of this d l sync

setType

public void setType(String type)
Sets the type of this d l sync.

Specified by:
setType in interface DLSyncModel
Parameters:
type - the type of this d l sync

getVersion

public String getVersion()
Returns the version of this d l sync.

Specified by:
getVersion in interface DLSyncModel
Returns:
the version of this d l sync

setVersion

public void setVersion(String version)
Sets the version of this d l sync.

Specified by:
setVersion in interface DLSyncModel
Parameters:
version - the version of this d l sync

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

compareTo

public int compareTo(DLSync dlSync)
Specified by:
compareTo in interface DLSyncModel
Specified by:
compareTo in interface Comparable<DLSync>

hashCode

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

toCacheModel

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

Specified by:
toCacheModel in interface BaseModel<DLSync>
Specified by:
toCacheModel in interface DLSyncModel
Returns:
the cache model object

toEscapedModel

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

toUnescapedModel

public DLSync toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<DLSync>
Specified by:
toUnescapedModel in interface DLSyncModel

toString

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

getWrappedDLSync

public DLSync getWrappedDLSync()
Deprecated. Renamed to getWrappedModel()


getWrappedModel

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

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<DLSync>

Liferay 6.1.2-ce-ga3