Liferay 6.1.2-ce-ga3

com.liferay.portlet.documentlibrary.model.impl
Class DLContentModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<DLContent>
      extended by com.liferay.portlet.documentlibrary.model.impl.DLContentModelImpl
All Implemented Interfaces:
BaseModel<DLContent>, ClassedModel, DLContentModel, Serializable, Cloneable, Comparable<DLContent>
Direct Known Subclasses:
DLContentBaseImpl

public class DLContentModelImpl
extends BaseModelImpl<DLContent>
implements DLContentModel

The base model implementation for the DLContent service. Represents a row in the "DLContent" database table, with each column mapped to a property of this class.

This implementation and its corresponding interface DLContentModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in DLContentImpl.

See Also:
DLContentImpl, DLContent, DLContentModel, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
static boolean COLUMN_BITMASK_ENABLED
           
static long COMPANYID_COLUMN_BITMASK
           
static String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static long LOCK_EXPIRATION_TIME
           
static String ORDER_BY_JPQL
           
static String ORDER_BY_SQL
           
static long PATH_COLUMN_BITMASK
           
static long REPOSITORYID_COLUMN_BITMASK
           
static String SESSION_FACTORY
           
static Object[][] TABLE_COLUMNS
           
static String TABLE_NAME
           
static String TABLE_SQL_CREATE
           
static String TABLE_SQL_DROP
           
static String TX_MANAGER
           
static long VERSION_COLUMN_BITMASK
           
 
Constructor Summary
DLContentModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(DLContent dlContent)
           
 boolean equals(Object obj)
           
 long getColumnBitmask()
           
 long getCompanyId()
          Returns the company ID of this document library content.
 long getContentId()
          Returns the content ID of this document library content.
 Blob getData()
          Returns the data of this document library content.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 long getGroupId()
          Returns the group ID of this document library content.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 long getOriginalCompanyId()
           
 String getOriginalPath()
           
 long getOriginalRepositoryId()
           
 String getOriginalVersion()
           
 String getPath()
          Returns the path of this document library content.
 long getPrimaryKey()
          Returns the primary key of this document library content.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 long getRepositoryId()
          Returns the repository ID of this document library content.
 long getSize()
          Returns the size of this document library content.
 String getVersion()
          Returns the version of this document library content.
 int hashCode()
           
 void resetOriginalValues()
          Reset all original fields to current values.
 void setCompanyId(long companyId)
          Sets the company ID of this document library content.
 void setContentId(long contentId)
          Sets the content ID of this document library content.
 void setData(Blob data)
          Sets the data of this document library content.
 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 document library content.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setPath(String path)
          Sets the path of this document library content.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this document library content.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setRepositoryId(long repositoryId)
          Sets the repository ID of this document library content.
 void setSize(long size)
          Sets the size of this document library content.
 void setVersion(String version)
          Sets the version of this document library content.
 CacheModel<DLContent> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 DLContent toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 DLContent toUnescapedModel()
           
 String toXmlString()
          Returns the XML representation of this model instance.
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.documentlibrary.model.DLContentModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setNew
 

Field Detail

TABLE_NAME

public static final String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final Object[][] TABLE_COLUMNS

TABLE_SQL_CREATE

public static final String TABLE_SQL_CREATE
See Also:
Constant Field Values

TABLE_SQL_DROP

public static final String TABLE_SQL_DROP
See Also:
Constant Field Values

ORDER_BY_JPQL

public static final String ORDER_BY_JPQL
See Also:
Constant Field Values

ORDER_BY_SQL

public static final String ORDER_BY_SQL
See Also:
Constant Field Values

DATA_SOURCE

public static final String DATA_SOURCE
See Also:
Constant Field Values

SESSION_FACTORY

public static final String SESSION_FACTORY
See Also:
Constant Field Values

TX_MANAGER

public static final String TX_MANAGER
See Also:
Constant Field Values

ENTITY_CACHE_ENABLED

public static final boolean ENTITY_CACHE_ENABLED

FINDER_CACHE_ENABLED

public static final boolean FINDER_CACHE_ENABLED

COLUMN_BITMASK_ENABLED

public static final boolean COLUMN_BITMASK_ENABLED

COMPANYID_COLUMN_BITMASK

public static long COMPANYID_COLUMN_BITMASK

PATH_COLUMN_BITMASK

public static long PATH_COLUMN_BITMASK

REPOSITORYID_COLUMN_BITMASK

public static long REPOSITORYID_COLUMN_BITMASK

VERSION_COLUMN_BITMASK

public static long VERSION_COLUMN_BITMASK

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

DLContentModelImpl

public DLContentModelImpl()
Method Detail

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: DLContentModel
Returns the primary key of this document library content.

Specified by:
getPrimaryKey in interface DLContentModel
Returns:
the primary key of this document library content

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Description copied from interface: DLContentModel
Sets the primary key of this document library content.

Specified by:
setPrimaryKey in interface DLContentModel
Parameters:
primaryKey - the primary key of this document library content

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Returns the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<DLContent>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface DLContentModel
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<DLContent>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface DLContentModel
Parameters:
primaryKeyObj - the primary key of this model instance

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<DLContent>
Overrides:
getModelAttributes in class BaseModelImpl<DLContent>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<DLContent>
Overrides:
setModelAttributes in class BaseModelImpl<DLContent>

getContentId

public long getContentId()
Description copied from interface: DLContentModel
Returns the content ID of this document library content.

Specified by:
getContentId in interface DLContentModel
Returns:
the content ID of this document library content

setContentId

public void setContentId(long contentId)
Description copied from interface: DLContentModel
Sets the content ID of this document library content.

Specified by:
setContentId in interface DLContentModel
Parameters:
contentId - the content ID of this document library content

getGroupId

public long getGroupId()
Description copied from interface: DLContentModel
Returns the group ID of this document library content.

Specified by:
getGroupId in interface DLContentModel
Returns:
the group ID of this document library content

setGroupId

public void setGroupId(long groupId)
Description copied from interface: DLContentModel
Sets the group ID of this document library content.

Specified by:
setGroupId in interface DLContentModel
Parameters:
groupId - the group ID of this document library content

getCompanyId

public long getCompanyId()
Description copied from interface: DLContentModel
Returns the company ID of this document library content.

Specified by:
getCompanyId in interface DLContentModel
Returns:
the company ID of this document library content

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: DLContentModel
Sets the company ID of this document library content.

Specified by:
setCompanyId in interface DLContentModel
Parameters:
companyId - the company ID of this document library content

getOriginalCompanyId

public long getOriginalCompanyId()

getRepositoryId

public long getRepositoryId()
Description copied from interface: DLContentModel
Returns the repository ID of this document library content.

Specified by:
getRepositoryId in interface DLContentModel
Returns:
the repository ID of this document library content

setRepositoryId

public void setRepositoryId(long repositoryId)
Description copied from interface: DLContentModel
Sets the repository ID of this document library content.

Specified by:
setRepositoryId in interface DLContentModel
Parameters:
repositoryId - the repository ID of this document library content

getOriginalRepositoryId

public long getOriginalRepositoryId()

getPath

public String getPath()
Description copied from interface: DLContentModel
Returns the path of this document library content.

Specified by:
getPath in interface DLContentModel
Returns:
the path of this document library content

setPath

public void setPath(String path)
Description copied from interface: DLContentModel
Sets the path of this document library content.

Specified by:
setPath in interface DLContentModel
Parameters:
path - the path of this document library content

getOriginalPath

public String getOriginalPath()

getVersion

public String getVersion()
Description copied from interface: DLContentModel
Returns the version of this document library content.

Specified by:
getVersion in interface DLContentModel
Returns:
the version of this document library content

setVersion

public void setVersion(String version)
Description copied from interface: DLContentModel
Sets the version of this document library content.

Specified by:
setVersion in interface DLContentModel
Parameters:
version - the version of this document library content

getOriginalVersion

public String getOriginalVersion()

getData

public Blob getData()
Description copied from interface: DLContentModel
Returns the data of this document library content.

Specified by:
getData in interface DLContentModel
Returns:
the data of this document library content

setData

public void setData(Blob data)
Description copied from interface: DLContentModel
Sets the data of this document library content.

Specified by:
setData in interface DLContentModel
Parameters:
data - the data of this document library content

getSize

public long getSize()
Description copied from interface: DLContentModel
Returns the size of this document library content.

Specified by:
getSize in interface DLContentModel
Returns:
the size of this document library content

setSize

public void setSize(long size)
Description copied from interface: DLContentModel
Sets the size of this document library content.

Specified by:
setSize in interface DLContentModel
Parameters:
size - the size of this document library content

getColumnBitmask

public long getColumnBitmask()

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Returns the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<DLContent>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface DLContentModel
Overrides:
getExpandoBridge in class BaseModelImpl<DLContent>
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<DLContent>
Specified by:
setExpandoBridgeAttributes in interface DLContentModel
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<DLContent>
Parameters:
serviceContext - the service context
See Also:
ServiceContext.getExpandoBridgeAttributes( )

toEscapedModel

public DLContent 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<DLContent>
Specified by:
toEscapedModel in interface DLContentModel
Overrides:
toEscapedModel in class BaseModelImpl<DLContent>
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public DLContent toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<DLContent>
Specified by:
toUnescapedModel in interface DLContentModel
Overrides:
toUnescapedModel in class BaseModelImpl<DLContent>

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<DLContent>
Specified by:
clone in interface DLContentModel
Specified by:
clone in class BaseModelImpl<DLContent>
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(DLContent dlContent)
Specified by:
compareTo in interface DLContentModel
Specified by:
compareTo in interface Comparable<DLContent>

equals

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

hashCode

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

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<DLContent>
Overrides:
resetOriginalValues in class BaseModelImpl<DLContent>

toCacheModel

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

Specified by:
toCacheModel in interface BaseModel<DLContent>
Specified by:
toCacheModel in interface DLContentModel
Overrides:
toCacheModel in class BaseModelImpl<DLContent>
Returns:
the cache model object

toString

public String toString()
Specified by:
toString in interface DLContentModel
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<DLContent>
Specified by:
toXmlString in interface DLContentModel
Returns:
the XML representation of this model instance

Liferay 6.1.2-ce-ga3