|
Liferay 6.2.0-ce-m1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.ShardWrapper
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)
|
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()
|
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. Renamed to getWrappedModel() |
int |
hashCode()
|
boolean |
isCachedModel()
Returns true if this model instance was retrieved from the
entity cache. |
boolean |
isEscapedModel()
Returns true if this model instance is escaped. |
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(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 |
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()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, 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 long getPrimaryKey()
getPrimaryKey in interface ShardModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface ShardModelprimaryKey - the primary key of this shardpublic long getShardId()
getShardId in interface ShardModelpublic void setShardId(long shardId)
setShardId in interface ShardModelshardId - the shard ID of this shardpublic String getClassName()
getClassName in interface AttachedModelgetClassName in interface ShardModelpublic void setClassName(String className)
setClassName in interface ShardModelpublic long getClassNameId()
getClassNameId in interface AttachedModelgetClassNameId in interface ShardModelpublic void setClassNameId(long classNameId)
setClassNameId in interface AttachedModelsetClassNameId in interface ShardModelclassNameId - the class name ID of this shardpublic long getClassPK()
getClassPK in interface AttachedModelgetClassPK in interface ShardModelpublic void setClassPK(long classPK)
setClassPK in interface AttachedModelsetClassPK in interface ShardModelclassPK - the class p k of this shardpublic String getName()
getName in interface ShardModelpublic void setName(String name)
setName in interface ShardModelname - the name of this shardpublic 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 setNew(boolean n)
BaseModel
setNew in interface BaseModel<Shard>setNew in interface ShardModeln - whether this model instance does not yet exist in the databasepublic 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 void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<Shard>setCachedModel in interface ShardModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic 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 Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<Shard>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface ShardModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<Shard>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface ShardModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<Shard>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface ShardModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<Shard>setExpandoBridgeAttributes in interface ShardModelserviceContext - the service contextServiceContext.getExpandoBridgeAttributes(
)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 int hashCode()
hashCode in interface ShardModelhashCode in class Objectpublic 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 String toXmlString()
BaseModel
toXmlString in interface BaseModel<Shard>toXmlString in interface ShardModel
public void persist()
throws SystemException
PersistedModel
persist in interface PersistedModelSystemException - if a system exception occurredpublic Shard getWrappedShard()
getWrappedModel()
public Shard getWrappedModel()
getWrappedModel in interface ModelWrapper<Shard>public void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<Shard>
|
Liferay 6.2.0-ce-m1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||