|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.model.ShardWrapper
public class ShardWrapper
This class is a wrapper for Shard
.
Shard
,
Serialized FormConstructor 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()
|
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()
|
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 ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public 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 ShardModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ShardModel
primaryKey
- the primary key of this shardpublic long getShardId()
getShardId
in interface ShardModel
public void setShardId(long shardId)
setShardId
in interface ShardModel
shardId
- the shard ID of this shardpublic String getClassName()
getClassName
in interface AttachedModel
getClassName
in interface ShardModel
public void setClassName(String className)
setClassName
in interface ShardModel
public long getClassNameId()
getClassNameId
in interface AttachedModel
getClassNameId
in interface ShardModel
public void setClassNameId(long classNameId)
setClassNameId
in interface AttachedModel
setClassNameId
in interface ShardModel
classNameId
- the class name ID of this shardpublic long getClassPK()
getClassPK
in interface AttachedModel
getClassPK
in interface ShardModel
public void setClassPK(long classPK)
setClassPK
in interface AttachedModel
setClassPK
in interface ShardModel
classPK
- the class p k of this shardpublic String getName()
getName
in interface ShardModel
public void setName(String name)
setName
in interface ShardModel
name
- the name of this shardpublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface BaseModel<Shard>
isNew
in interface ShardModel
true
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 ShardModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.
isCachedModel
in interface BaseModel<Shard>
isCachedModel
in interface ShardModel
true
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 ShardModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<Shard>
isEscapedModel
in interface ShardModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Shard>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface ShardModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<Shard>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface ShardModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Shard>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface ShardModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Shard>
setExpandoBridgeAttributes
in interface ShardModel
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<Shard>
clone
in interface ShardModel
clone
in class Object
public int compareTo(Shard shard)
compareTo
in interface ShardModel
compareTo
in interface Comparable<Shard>
public int hashCode()
hashCode
in interface ShardModel
hashCode
in class Object
public CacheModel<Shard> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<Shard>
toCacheModel
in interface ShardModel
public Shard toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<Shard>
toEscapedModel
in interface ShardModel
AutoEscapeBeanHandler
public Shard toUnescapedModel()
toUnescapedModel
in interface BaseModel<Shard>
toUnescapedModel
in interface ShardModel
public String toString()
toString
in interface ShardModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<Shard>
toXmlString
in interface ShardModel
public void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic boolean equals(Object obj)
equals
in class Object
public Shard getWrappedShard()
getWrappedModel()
public Shard getWrappedModel()
getWrappedModel
in interface ModelWrapper<Shard>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<Shard>
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |