|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.ShardWrapper
@ProviderType public class ShardWrapper
This class is a wrapper for Shard.
Shard,
Serialized Form| Constructor Summary | |
|---|---|
ShardWrapper(Shard shard)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(Shard shard)
|
boolean |
equals(Object obj)
|
String |
getClassName()
Returns the fully qualified class name of this shard. |
long |
getClassNameId()
Returns the class name ID of this shard. |
long |
getClassPK()
Returns the class p k of this shard. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
long |
getMvccVersion()
Returns the mvcc version of this shard. |
String |
getName()
Returns the name of this shard. |
long |
getPrimaryKey()
Returns the primary key of this shard. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
long |
getShardId()
Returns the shard ID of this shard. |
Shard |
getWrappedModel()
|
Shard |
getWrappedShard()
Deprecated. As of 6.1.0, replaced by 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 |
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 |
setClassName(String className)
|
void |
setClassNameId(long classNameId)
Sets the class name ID of this shard. |
void |
setClassPK(long classPK)
Sets the class p k of this shard. |
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 |
setModelAttributes(Map<String,Object> attributes)
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this shard. |
void |
setName(String name)
Sets the name of this shard. |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this shard. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setShardId(long shardId)
Sets the shard ID of this shard. |
CacheModel<Shard> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
Shard |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
String |
toString()
|
Shard |
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 |
|---|
public ShardWrapper(Shard shard)
| Method Detail |
|---|
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<Shard>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<Shard>public Object clone()
BaseModel
clone in interface BaseModel<Shard>clone in interface ShardModelclone in class Objectpublic int compareTo(Shard shard)
compareTo in interface ShardModelcompareTo in interface Comparable<Shard>public String getClassName()
getClassName in interface ShardModelgetClassName in interface TypedModelpublic long getClassNameId()
getClassNameId in interface ShardModelgetClassNameId in interface TypedModelpublic long getClassPK()
getClassPK in interface AttachedModelgetClassPK in interface ShardModelpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<Shard>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface ShardModelpublic long getMvccVersion()
getMvccVersion in interface MVCCModelgetMvccVersion in interface ShardModelpublic String getName()
getName in interface ShardModelpublic long getPrimaryKey()
getPrimaryKey in interface ShardModelpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<Shard>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface ShardModelpublic long getShardId()
getShardId in interface ShardModelpublic int hashCode()
hashCode in interface ShardModelhashCode in class Objectpublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.
isCachedModel in interface BaseModel<Shard>isCachedModel in interface ShardModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<Shard>isEscapedModel in interface ShardModeltrue if this model instance is escaped;
false otherwisepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.
isNew in interface BaseModel<Shard>isNew in interface ShardModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void persist()
PersistedModel
persist in interface PersistedModelpublic void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<Shard>setCachedModel in interface ShardModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setClassName(String className)
setClassName in interface ShardModelpublic void setClassNameId(long classNameId)
setClassNameId in interface ShardModelsetClassNameId in interface TypedModelclassNameId - the class name ID of this shardpublic void setClassPK(long classPK)
setClassPK in interface AttachedModelsetClassPK in interface ShardModelclassPK - the class p k of this shardpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<Shard>setExpandoBridgeAttributes in interface ShardModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<Shard>setExpandoBridgeAttributes in interface ShardModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<Shard>setExpandoBridgeAttributes in interface ShardModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public void setMvccVersion(long mvccVersion)
setMvccVersion in interface MVCCModelsetMvccVersion in interface ShardModelmvccVersion - the mvcc version of this shardpublic void setName(String name)
setName in interface ShardModelname - the name of this shardpublic void setNew(boolean n)
BaseModel
setNew in interface BaseModel<Shard>setNew in interface ShardModeln - whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface ShardModelprimaryKey - the primary key of this shardpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<Shard>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface ShardModelprimaryKeyObj - the primary key of this model instancepublic void setShardId(long shardId)
setShardId in interface ShardModelshardId - the shard ID of this shardpublic CacheModel<Shard> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<Shard>toCacheModel in interface ShardModelpublic Shard toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<Shard>toEscapedModel in interface ShardModelAutoEscapeBeanHandlerpublic String toString()
toString in interface ShardModeltoString in class Objectpublic Shard toUnescapedModel()
toUnescapedModel in interface BaseModel<Shard>toUnescapedModel in interface ShardModelpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<Shard>toXmlString in interface ShardModelpublic boolean equals(Object obj)
equals in class Object@Deprecated public Shard getWrappedShard()
getWrappedModel()
public Shard getWrappedModel()
getWrappedModel in interface ModelWrapper<Shard>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.
isEntityCacheEnabled in interface BaseModel<Shard>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<Shard>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<Shard>
|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||