Liferay 6.2-ce-ga5

com.liferay.portal.model.impl
Class RepositoryModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<Repository>
      extended by com.liferay.portal.model.impl.RepositoryModelImpl
All Implemented Interfaces:
AuditedModel, BaseModel<Repository>, ClassedModel, GroupedModel, RepositoryModel, StagedGroupedModel, StagedModel, TypedModel, Serializable, Cloneable, Comparable<Repository>
Direct Known Subclasses:
RepositoryBaseImpl

@JSON(strict=true)
public class RepositoryModelImpl
extends BaseModelImpl<Repository>
implements RepositoryModel

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

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

See Also:
RepositoryImpl, Repository, RepositoryModel, 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 GROUPID_COLUMN_BITMASK
           
static long LOCK_EXPIRATION_TIME
           
static long NAME_COLUMN_BITMASK
           
static String ORDER_BY_JPQL
           
static String ORDER_BY_SQL
           
static long PORTLETID_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 UUID_COLUMN_BITMASK
           
 
Constructor Summary
RepositoryModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Repository repository)
           
 boolean equals(Object obj)
           
 String getClassName()
          Returns the fully qualified class name of this repository.
 long getClassNameId()
          Returns the class name ID of this repository.
 long getColumnBitmask()
           
 long getCompanyId()
          Returns the company ID of this repository.
 Date getCreateDate()
          Returns the create date of this repository.
 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.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this repository.
 String getName()
          Returns the name of this repository.
 long getOriginalCompanyId()
           
 long getOriginalGroupId()
           
 String getOriginalName()
           
 String getOriginalPortletId()
           
 String getOriginalUuid()
           
 String getPortletId()
          Returns the portlet ID of this repository.
 long getPrimaryKey()
          Returns the primary key of this repository.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 long getRepositoryId()
          Returns the repository ID of this repository.
 StagedModelType getStagedModelType()
           
 String getTypeSettings()
          Returns the type settings of this repository.
 long getUserId()
          Returns the user ID of this repository.
 String getUserName()
          Returns the user name of this repository.
 String getUserUuid()
          Returns the user uuid of this repository.
 String getUuid()
          Returns the uuid of this repository.
 int hashCode()
           
 void resetOriginalValues()
          Reset all original fields to current values.
 void setClassName(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(Date createDate)
          Sets the create date of this repository.
 void setDescription(String description)
          Sets the description of this repository.
 void setDlFolderId(long dlFolderId)
          Sets the dl folder ID of this repository.
 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(Map<String,Object> attributes)
           
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this repository.
 void setName(String name)
          Sets the name of this repository.
 void setPortletId(String portletId)
          Sets the portlet ID of this repository.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this repository.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setRepositoryId(long repositoryId)
          Sets the repository ID of this repository.
 void setTypeSettings(String typeSettings)
          Sets the type settings of this repository.
 void setUserId(long userId)
          Sets the user ID of this repository.
 void setUserName(String userName)
          Sets the user name of this repository.
 void setUserUuid(String userUuid)
          Sets the user uuid of this repository.
 void setUuid(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.
static Repository toModel(RepositorySoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<Repository> toModels(RepositorySoap[] soapModels)
          Converts the soap model instances into normal model instances.
 String toString()
           
 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, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.model.RepositoryModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
 

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

GROUPID_COLUMN_BITMASK

public static long GROUPID_COLUMN_BITMASK

NAME_COLUMN_BITMASK

public static long NAME_COLUMN_BITMASK

PORTLETID_COLUMN_BITMASK

public static long PORTLETID_COLUMN_BITMASK

UUID_COLUMN_BITMASK

public static long UUID_COLUMN_BITMASK

REPOSITORYID_COLUMN_BITMASK

public static long REPOSITORYID_COLUMN_BITMASK

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

RepositoryModelImpl

public RepositoryModelImpl()
Method Detail

toModel

public static Repository toModel(RepositorySoap soapModel)
Converts the soap model instance into a normal model instance.

Parameters:
soapModel - the soap model instance to convert
Returns:
the normal model instance

toModels

public static List<Repository> toModels(RepositorySoap[] soapModels)
Converts the soap model instances into normal model instances.

Parameters:
soapModels - the soap model instances to convert
Returns:
the normal model instances

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: RepositoryModel
Returns the primary key of this repository.

Specified by:
getPrimaryKey in interface RepositoryModel
Returns:
the primary key of this repository

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Description copied from interface: RepositoryModel
Sets the primary key of this repository.

Specified by:
setPrimaryKey in interface RepositoryModel
Parameters:
primaryKey - the primary key of this repository

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<Repository>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface RepositoryModel
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<Repository>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface RepositoryModel
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<Repository>
Overrides:
getModelAttributes in class BaseModelImpl<Repository>

setModelAttributes

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

getUuid

@JSON
public String getUuid()
Description copied from interface: RepositoryModel
Returns the uuid of this repository.

Specified by:
getUuid in interface RepositoryModel
Specified by:
getUuid in interface StagedModel
Returns:
the uuid of this repository

setUuid

public void setUuid(String uuid)
Description copied from interface: RepositoryModel
Sets the uuid of this repository.

Specified by:
setUuid in interface RepositoryModel
Specified by:
setUuid in interface StagedModel
Parameters:
uuid - the uuid of this repository

getOriginalUuid

public String getOriginalUuid()

getRepositoryId

@JSON
public long getRepositoryId()
Description copied from interface: RepositoryModel
Returns the repository ID of this repository.

Specified by:
getRepositoryId in interface RepositoryModel
Returns:
the repository ID of this repository

setRepositoryId

public void setRepositoryId(long repositoryId)
Description copied from interface: RepositoryModel
Sets the repository ID of this repository.

Specified by:
setRepositoryId in interface RepositoryModel
Parameters:
repositoryId - the repository ID of this repository

getGroupId

@JSON
public long getGroupId()
Description copied from interface: RepositoryModel
Returns the group ID of this repository.

Specified by:
getGroupId in interface GroupedModel
Specified by:
getGroupId in interface RepositoryModel
Returns:
the group ID of this repository

setGroupId

public void setGroupId(long groupId)
Description copied from interface: RepositoryModel
Sets the group ID of this repository.

Specified by:
setGroupId in interface GroupedModel
Specified by:
setGroupId in interface RepositoryModel
Parameters:
groupId - the group ID of this repository

getOriginalGroupId

public long getOriginalGroupId()

getCompanyId

@JSON
public long getCompanyId()
Description copied from interface: RepositoryModel
Returns the company ID of this repository.

Specified by:
getCompanyId in interface AuditedModel
Specified by:
getCompanyId in interface RepositoryModel
Specified by:
getCompanyId in interface StagedModel
Returns:
the company ID of this repository

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: RepositoryModel
Sets the company ID of this repository.

Specified by:
setCompanyId in interface AuditedModel
Specified by:
setCompanyId in interface RepositoryModel
Specified by:
setCompanyId in interface StagedModel
Parameters:
companyId - the company ID of this repository

getOriginalCompanyId

public long getOriginalCompanyId()

getUserId

@JSON
public long getUserId()
Description copied from interface: RepositoryModel
Returns the user ID of this repository.

Specified by:
getUserId in interface AuditedModel
Specified by:
getUserId in interface RepositoryModel
Returns:
the user ID of this repository

setUserId

public void setUserId(long userId)
Description copied from interface: RepositoryModel
Sets the user ID of this repository.

Specified by:
setUserId in interface AuditedModel
Specified by:
setUserId in interface RepositoryModel
Parameters:
userId - the user ID of this repository

getUserUuid

public String getUserUuid()
                   throws SystemException
Description copied from interface: RepositoryModel
Returns the user uuid of this repository.

Specified by:
getUserUuid in interface AuditedModel
Specified by:
getUserUuid in interface RepositoryModel
Returns:
the user uuid of this repository
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Description copied from interface: RepositoryModel
Sets the user uuid of this repository.

Specified by:
setUserUuid in interface AuditedModel
Specified by:
setUserUuid in interface RepositoryModel
Parameters:
userUuid - the user uuid of this repository

getUserName

@JSON
public String getUserName()
Description copied from interface: RepositoryModel
Returns the user name of this repository.

Specified by:
getUserName in interface AuditedModel
Specified by:
getUserName in interface RepositoryModel
Returns:
the user name of this repository

setUserName

public void setUserName(String userName)
Description copied from interface: RepositoryModel
Sets the user name of this repository.

Specified by:
setUserName in interface AuditedModel
Specified by:
setUserName in interface RepositoryModel
Parameters:
userName - the user name of this repository

getCreateDate

@JSON
public Date getCreateDate()
Description copied from interface: RepositoryModel
Returns the create date of this repository.

Specified by:
getCreateDate in interface AuditedModel
Specified by:
getCreateDate in interface RepositoryModel
Specified by:
getCreateDate in interface StagedModel
Returns:
the create date of this repository

setCreateDate

public void setCreateDate(Date createDate)
Description copied from interface: RepositoryModel
Sets the create date of this repository.

Specified by:
setCreateDate in interface AuditedModel
Specified by:
setCreateDate in interface RepositoryModel
Specified by:
setCreateDate in interface StagedModel
Parameters:
createDate - the create date of this repository

getModifiedDate

@JSON
public Date getModifiedDate()
Description copied from interface: RepositoryModel
Returns the modified date of this repository.

Specified by:
getModifiedDate in interface AuditedModel
Specified by:
getModifiedDate in interface RepositoryModel
Specified by:
getModifiedDate in interface StagedModel
Returns:
the modified date of this repository

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Description copied from interface: RepositoryModel
Sets the modified date of this repository.

Specified by:
setModifiedDate in interface AuditedModel
Specified by:
setModifiedDate in interface RepositoryModel
Specified by:
setModifiedDate in interface StagedModel
Parameters:
modifiedDate - the modified date of this repository

getClassName

public String getClassName()
Description copied from interface: RepositoryModel
Returns the fully qualified class name of this repository.

Specified by:
getClassName in interface RepositoryModel
Specified by:
getClassName in interface TypedModel
Returns:
the fully qualified class name of this repository

setClassName

public void setClassName(String className)
Specified by:
setClassName in interface RepositoryModel

getClassNameId

@JSON
public long getClassNameId()
Description copied from interface: RepositoryModel
Returns the class name ID of this repository.

Specified by:
getClassNameId in interface RepositoryModel
Specified by:
getClassNameId in interface TypedModel
Returns:
the class name ID of this repository

setClassNameId

public void setClassNameId(long classNameId)
Description copied from interface: RepositoryModel
Sets the class name ID of this repository.

Specified by:
setClassNameId in interface RepositoryModel
Specified by:
setClassNameId in interface TypedModel
Parameters:
classNameId - the class name ID of this repository

getName

@JSON
public String getName()
Description copied from interface: RepositoryModel
Returns the name of this repository.

Specified by:
getName in interface RepositoryModel
Returns:
the name of this repository

setName

public void setName(String name)
Description copied from interface: RepositoryModel
Sets the name of this repository.

Specified by:
setName in interface RepositoryModel
Parameters:
name - the name of this repository

getOriginalName

public String getOriginalName()

getDescription

@JSON
public String getDescription()
Description copied from interface: RepositoryModel
Returns the description of this repository.

Specified by:
getDescription in interface RepositoryModel
Returns:
the description of this repository

setDescription

public void setDescription(String description)
Description copied from interface: RepositoryModel
Sets the description of this repository.

Specified by:
setDescription in interface RepositoryModel
Parameters:
description - the description of this repository

getPortletId

@JSON
public String getPortletId()
Description copied from interface: RepositoryModel
Returns the portlet ID of this repository.

Specified by:
getPortletId in interface RepositoryModel
Returns:
the portlet ID of this repository

setPortletId

public void setPortletId(String portletId)
Description copied from interface: RepositoryModel
Sets the portlet ID of this repository.

Specified by:
setPortletId in interface RepositoryModel
Parameters:
portletId - the portlet ID of this repository

getOriginalPortletId

public String getOriginalPortletId()

getTypeSettings

@JSON
public String getTypeSettings()
Description copied from interface: RepositoryModel
Returns the type settings of this repository.

Specified by:
getTypeSettings in interface RepositoryModel
Returns:
the type settings of this repository

setTypeSettings

public void setTypeSettings(String typeSettings)
Description copied from interface: RepositoryModel
Sets the type settings of this repository.

Specified by:
setTypeSettings in interface RepositoryModel
Parameters:
typeSettings - the type settings of this repository

getDlFolderId

@JSON
public long getDlFolderId()
Description copied from interface: RepositoryModel
Returns the dl folder ID of this repository.

Specified by:
getDlFolderId in interface RepositoryModel
Returns:
the dl folder ID of this repository

setDlFolderId

public void setDlFolderId(long dlFolderId)
Description copied from interface: RepositoryModel
Sets the dl folder ID of this repository.

Specified by:
setDlFolderId in interface RepositoryModel
Parameters:
dlFolderId - the dl folder ID of this repository

getStagedModelType

public StagedModelType getStagedModelType()
Specified by:
getStagedModelType in interface StagedModel

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<Repository>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface RepositoryModel
Overrides:
getExpandoBridge in class BaseModelImpl<Repository>
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<Repository>
Specified by:
setExpandoBridgeAttributes in interface RepositoryModel
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<Repository>
Parameters:
serviceContext - the service context to be applied
See Also:
ServiceContext.getExpandoBridgeAttributes( )

toEscapedModel

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

clone

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

Specified by:
clone in interface BaseModel<Repository>
Specified by:
clone in interface RepositoryModel
Specified by:
clone in interface StagedModel
Specified by:
clone in class BaseModelImpl<Repository>
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(Repository repository)
Specified by:
compareTo in interface RepositoryModel
Specified by:
compareTo in interface Comparable<Repository>

equals

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

hashCode

public int hashCode()
Specified by:
hashCode in interface RepositoryModel
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<Repository>
Overrides:
resetOriginalValues in class BaseModelImpl<Repository>

toCacheModel

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

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

toString

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

Liferay 6.2-ce-ga5