@ProviderType public class OrgGroupRoleWrapper extends Object implements OrgGroupRole, ModelWrapper<OrgGroupRole>
This class is a wrapper for OrgGroupRole
.
OrgGroupRole
,
Serialized FormGROUP_ID_ACCESSOR, ORGANIZATION_ID_ACCESSOR, ROLE_ID_ACCESSOR
Constructor and Description |
---|
OrgGroupRoleWrapper(OrgGroupRole orgGroupRole) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(OrgGroupRole orgGroupRole) |
boolean |
containsGroup(List<Group> groups) |
boolean |
containsOrganization(List<Organization> organizations) |
boolean |
equals(Object obj) |
long |
getCompanyId()
Returns the company ID of this org group role.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
long |
getGroupId()
Returns the group ID of this org group role.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
long |
getMvccVersion()
Returns the mvcc version of this org group role.
|
long |
getOrganizationId()
Returns the organization ID of this org group role.
|
OrgGroupRolePK |
getPrimaryKey()
Returns the primary key of this org group role.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getRoleId()
Returns the role ID of this org group role.
|
OrgGroupRole |
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns
true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns
true if this model's finder cache is enabled. |
boolean |
isNew()
Returns
true if this model instance does not yet exist in
the database. |
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 org group role.
|
void |
setExpandoBridgeAttributes(BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge) |
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 org group role.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this org group role.
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setOrganizationId(long organizationId)
Sets the organization ID of this org group role.
|
void |
setPrimaryKey(OrgGroupRolePK primaryKey)
Sets the primary key of this org group role.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setRoleId(long roleId)
Sets the role ID of this org group role.
|
CacheModel<OrgGroupRole> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
OrgGroupRole |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler . |
String |
toString() |
OrgGroupRole |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public OrgGroupRoleWrapper(OrgGroupRole orgGroupRole)
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<OrgGroupRole>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<OrgGroupRole>
public Object clone()
BaseModel
clone
in interface BaseModel<OrgGroupRole>
clone
in interface OrgGroupRoleModel
clone
in class Object
public int compareTo(OrgGroupRole orgGroupRole)
compareTo
in interface OrgGroupRoleModel
compareTo
in interface Comparable<OrgGroupRole>
public boolean containsGroup(List<Group> groups)
containsGroup
in interface OrgGroupRole
public boolean containsOrganization(List<Organization> organizations)
containsOrganization
in interface OrgGroupRole
public long getCompanyId()
getCompanyId
in interface OrgGroupRoleModel
getCompanyId
in interface ShardedModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<OrgGroupRole>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface OrgGroupRoleModel
public long getGroupId()
getGroupId
in interface OrgGroupRoleModel
public long getMvccVersion()
getMvccVersion
in interface MVCCModel
getMvccVersion
in interface OrgGroupRoleModel
public long getOrganizationId()
getOrganizationId
in interface OrgGroupRoleModel
public OrgGroupRolePK getPrimaryKey()
getPrimaryKey
in interface OrgGroupRoleModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<OrgGroupRole>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface OrgGroupRoleModel
public long getRoleId()
getRoleId
in interface OrgGroupRoleModel
public int hashCode()
hashCode
in interface OrgGroupRoleModel
hashCode
in class Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface BaseModel<OrgGroupRole>
isCachedModel
in interface OrgGroupRoleModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.isEscapedModel
in interface BaseModel<OrgGroupRole>
isEscapedModel
in interface OrgGroupRoleModel
true
if this model instance is escaped;
false
otherwisepublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.isNew
in interface BaseModel<OrgGroupRole>
isNew
in interface OrgGroupRoleModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<OrgGroupRole>
setCachedModel
in interface OrgGroupRoleModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setCompanyId(long companyId)
setCompanyId
in interface OrgGroupRoleModel
setCompanyId
in interface ShardedModel
companyId
- the company ID of this org group rolepublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<OrgGroupRole>
setExpandoBridgeAttributes
in interface OrgGroupRoleModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<OrgGroupRole>
setExpandoBridgeAttributes
in interface OrgGroupRoleModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<OrgGroupRole>
setExpandoBridgeAttributes
in interface OrgGroupRoleModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setGroupId(long groupId)
setGroupId
in interface OrgGroupRoleModel
groupId
- the group ID of this org group rolepublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface MVCCModel
setMvccVersion
in interface OrgGroupRoleModel
mvccVersion
- the mvcc version of this org group rolepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<OrgGroupRole>
setNew
in interface OrgGroupRoleModel
n
- whether this model instance does not yet exist in the databasepublic void setOrganizationId(long organizationId)
setOrganizationId
in interface OrgGroupRoleModel
organizationId
- the organization ID of this org group rolepublic void setPrimaryKey(OrgGroupRolePK primaryKey)
setPrimaryKey
in interface OrgGroupRoleModel
primaryKey
- the primary key of this org group rolepublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<OrgGroupRole>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface OrgGroupRoleModel
primaryKeyObj
- the primary key of this model instancepublic void setRoleId(long roleId)
setRoleId
in interface OrgGroupRoleModel
roleId
- the role ID of this org group rolepublic CacheModel<OrgGroupRole> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<OrgGroupRole>
toCacheModel
in interface OrgGroupRoleModel
public OrgGroupRole toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface BaseModel<OrgGroupRole>
toEscapedModel
in interface OrgGroupRoleModel
AutoEscapeBeanHandler
public String toString()
toString
in interface OrgGroupRoleModel
toString
in class Object
public OrgGroupRole toUnescapedModel()
toUnescapedModel
in interface BaseModel<OrgGroupRole>
toUnescapedModel
in interface OrgGroupRoleModel
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<OrgGroupRole>
toXmlString
in interface OrgGroupRoleModel
public boolean equals(Object obj)
equals
in class Object
public OrgGroupRole getWrappedModel()
getWrappedModel
in interface ModelWrapper<OrgGroupRole>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<OrgGroupRole>
true
if this model's entity cache is enabled;
false
otherwisepublic boolean isFinderCacheEnabled()
BaseModel
true
if this model's finder cache is enabled.isFinderCacheEnabled
in interface BaseModel<OrgGroupRole>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<OrgGroupRole>