|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.impl.BaseModelImpl<ResourceBlock>
com.liferay.portal.model.impl.ResourceBlockModelImpl
@JSON(strict=true) @ProviderType public class ResourceBlockModelImpl
The base model implementation for the ResourceBlock service. Represents a row in the "ResourceBlock" database table, with each column mapped to a property of this class.
This implementation and its corresponding interface ResourceBlockModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in ResourceBlockImpl.
ResourceBlockImpl,
ResourceBlock,
ResourceBlockModel,
Serialized Form| 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 |
PERMISSIONSHASH_COLUMN_BITMASK
|
static long |
RESOURCEBLOCKID_COLUMN_BITMASK
|
static String |
SESSION_FACTORY
|
static Object[][] |
TABLE_COLUMNS
|
static Map<String,Integer> |
TABLE_COLUMNS_MAP
|
static String |
TABLE_NAME
|
static String |
TABLE_SQL_CREATE
|
static String |
TABLE_SQL_DROP
|
static String |
TX_MANAGER
|
| Constructor Summary | |
|---|---|
ResourceBlockModelImpl()
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(ResourceBlock resourceBlock)
|
boolean |
equals(Object obj)
|
long |
getColumnBitmask()
|
long |
getCompanyId()
Returns the company ID of this resource block. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
long |
getGroupId()
Returns the group ID of this resource block. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
long |
getMvccVersion()
Returns the mvcc version of this resource block. |
String |
getName()
Returns the name of this resource block. |
long |
getOriginalCompanyId()
|
long |
getOriginalGroupId()
|
String |
getOriginalName()
|
String |
getOriginalPermissionsHash()
|
String |
getPermissionsHash()
Returns the permissions hash of this resource block. |
long |
getPrimaryKey()
Returns the primary key of this resource block. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
long |
getReferenceCount()
Returns the reference count of this resource block. |
long |
getResourceBlockId()
Returns the resource block ID of this resource block. |
int |
hashCode()
|
boolean |
isEntityCacheEnabled()
Returns true if this model's entity cache is enabled. |
boolean |
isFinderCacheEnabled()
Returns true if this model's finder cache is enabled. |
void |
resetOriginalValues()
Reset all original fields to current values. |
void |
setCompanyId(long companyId)
Sets the company ID of this resource block. |
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 resource block. |
void |
setModelAttributes(Map<String,Object> attributes)
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this resource block. |
void |
setName(String name)
Sets the name of this resource block. |
void |
setPermissionsHash(String permissionsHash)
Sets the permissions hash of this resource block. |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this resource block. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setReferenceCount(long referenceCount)
Sets the reference count of this resource block. |
void |
setResourceBlockId(long resourceBlockId)
Sets the resource block ID of this resource block. |
CacheModel<ResourceBlock> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
ResourceBlock |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
static ResourceBlock |
toModel(ResourceBlockSoap soapModel)
Converts the soap model instance into a normal model instance. |
static List<ResourceBlock> |
toModels(ResourceBlockSoap[] 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.ResourceBlockModel |
|---|
isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel |
| Field Detail |
|---|
public static final String TABLE_NAME
public static final Object[][] TABLE_COLUMNS
public static final Map<String,Integer> TABLE_COLUMNS_MAP
public static final String TABLE_SQL_CREATE
public static final String TABLE_SQL_DROP
public static final String ORDER_BY_JPQL
public static final String ORDER_BY_SQL
public static final String DATA_SOURCE
public static final String SESSION_FACTORY
public static final String TX_MANAGER
public static final boolean ENTITY_CACHE_ENABLED
public static final boolean FINDER_CACHE_ENABLED
public static final boolean COLUMN_BITMASK_ENABLED
public static final long COMPANYID_COLUMN_BITMASK
public static final long GROUPID_COLUMN_BITMASK
public static final long NAME_COLUMN_BITMASK
public static final long PERMISSIONSHASH_COLUMN_BITMASK
public static final long RESOURCEBLOCKID_COLUMN_BITMASK
public static final long LOCK_EXPIRATION_TIME
| Constructor Detail |
|---|
public ResourceBlockModelImpl()
| Method Detail |
|---|
public static ResourceBlock toModel(ResourceBlockSoap soapModel)
soapModel - the soap model instance to convert
public static List<ResourceBlock> toModels(ResourceBlockSoap[] soapModels)
soapModels - the soap model instances to convert
public long getPrimaryKey()
ResourceBlockModel
getPrimaryKey in interface ResourceBlockModelpublic void setPrimaryKey(long primaryKey)
ResourceBlockModel
setPrimaryKey in interface ResourceBlockModelprimaryKey - the primary key of this resource blockpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<ResourceBlock>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface ResourceBlockModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<ResourceBlock>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface ResourceBlockModelprimaryKeyObj - the primary key of this model instancepublic Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<ResourceBlock>getModelAttributes in class BaseModelImpl<ResourceBlock>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<ResourceBlock>setModelAttributes in class BaseModelImpl<ResourceBlock>@JSON public long getMvccVersion()
ResourceBlockModel
getMvccVersion in interface MVCCModelgetMvccVersion in interface ResourceBlockModelpublic void setMvccVersion(long mvccVersion)
ResourceBlockModel
setMvccVersion in interface MVCCModelsetMvccVersion in interface ResourceBlockModelmvccVersion - the mvcc version of this resource block@JSON public long getResourceBlockId()
ResourceBlockModel
getResourceBlockId in interface ResourceBlockModelpublic void setResourceBlockId(long resourceBlockId)
ResourceBlockModel
setResourceBlockId in interface ResourceBlockModelresourceBlockId - the resource block ID of this resource block@JSON public long getCompanyId()
ResourceBlockModel
getCompanyId in interface ResourceBlockModelgetCompanyId in interface ShardedModelpublic void setCompanyId(long companyId)
ResourceBlockModel
setCompanyId in interface ResourceBlockModelsetCompanyId in interface ShardedModelcompanyId - the company ID of this resource blockpublic long getOriginalCompanyId()
@JSON public long getGroupId()
ResourceBlockModel
getGroupId in interface ResourceBlockModelpublic void setGroupId(long groupId)
ResourceBlockModel
setGroupId in interface ResourceBlockModelgroupId - the group ID of this resource blockpublic long getOriginalGroupId()
@JSON public String getName()
ResourceBlockModel
getName in interface ResourceBlockModelpublic void setName(String name)
ResourceBlockModel
setName in interface ResourceBlockModelname - the name of this resource blockpublic String getOriginalName()
@JSON public String getPermissionsHash()
ResourceBlockModel
getPermissionsHash in interface ResourceBlockModelpublic void setPermissionsHash(String permissionsHash)
ResourceBlockModel
setPermissionsHash in interface ResourceBlockModelpermissionsHash - the permissions hash of this resource blockpublic String getOriginalPermissionsHash()
@JSON public long getReferenceCount()
ResourceBlockModel
getReferenceCount in interface ResourceBlockModelpublic void setReferenceCount(long referenceCount)
ResourceBlockModel
setReferenceCount in interface ResourceBlockModelreferenceCount - the reference count of this resource blockpublic long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<ResourceBlock>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface ResourceBlockModelgetExpandoBridge in class BaseModelImpl<ResourceBlock>public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<ResourceBlock>setExpandoBridgeAttributes in interface ResourceBlockModelsetExpandoBridgeAttributes in class BaseModelImpl<ResourceBlock>serviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public ResourceBlock toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<ResourceBlock>toEscapedModel in interface ResourceBlockModeltoEscapedModel in class BaseModelImpl<ResourceBlock>AutoEscapeBeanHandlerpublic Object clone()
BaseModel
clone in interface BaseModel<ResourceBlock>clone in interface ResourceBlockModelclone in class BaseModelImpl<ResourceBlock>public int compareTo(ResourceBlock resourceBlock)
compareTo in interface ResourceBlockModelcompareTo in interface Comparable<ResourceBlock>public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in interface ResourceBlockModelhashCode in class Objectpublic boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.
isEntityCacheEnabled in interface BaseModel<ResourceBlock>true if this model's entity cache is enabled;
false otherwisepublic boolean isFinderCacheEnabled()
BaseModeltrue if this model's finder cache is enabled.
isFinderCacheEnabled in interface BaseModel<ResourceBlock>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<ResourceBlock>resetOriginalValues in class BaseModelImpl<ResourceBlock>public CacheModel<ResourceBlock> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<ResourceBlock>toCacheModel in interface ResourceBlockModeltoCacheModel in class BaseModelImpl<ResourceBlock>public String toString()
toString in interface ResourceBlockModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<ResourceBlock>toXmlString in interface ResourceBlockModel
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||