|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.liferay.portal.model.impl.BaseModelImpl<Shard>
com.liferay.portal.model.impl.ShardModelImpl
public class ShardModelImpl
The base model implementation for the Shard service. Represents a row in the "Shard" database table, with each column mapped to a property of this class.
This implementation and its corresponding interface ShardModel
exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in ShardImpl
.
ShardImpl
,
Shard
,
ShardModel
,
Serialized FormField Summary | |
---|---|
static long |
CLASSNAMEID_COLUMN_BITMASK
|
static long |
CLASSPK_COLUMN_BITMASK
|
static boolean |
COLUMN_BITMASK_ENABLED
|
static String |
DATA_SOURCE
|
static boolean |
ENTITY_CACHE_ENABLED
|
static boolean |
FINDER_CACHE_ENABLED
|
static long |
LOCK_EXPIRATION_TIME
|
static long |
NAME_COLUMN_BITMASK
|
static String |
SESSION_FACTORY
|
static Object[][] |
TABLE_COLUMNS
|
static String |
TABLE_NAME
|
static String |
TABLE_SQL_CREATE
|
static String |
TABLE_SQL_DROP
|
static String |
TX_MANAGER
|
Constructor Summary | |
---|---|
ShardModelImpl()
|
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. |
long |
getColumnBitmask()
|
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 |
getOriginalClassNameId()
|
long |
getOriginalClassPK()
|
String |
getOriginalName()
|
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. |
int |
hashCode()
|
void |
resetOriginalValues()
Reset all original fields to current values. |
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 |
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 com.liferay.portal.model.impl.BaseModelImpl |
---|
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setNew |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.liferay.portal.model.ShardModel |
---|
isCachedModel, isEscapedModel, isNew, setCachedModel, setNew |
Field Detail |
---|
public static final String TABLE_NAME
public static final Object[][] TABLE_COLUMNS
public static final String TABLE_SQL_CREATE
public static final String TABLE_SQL_DROP
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 long CLASSNAMEID_COLUMN_BITMASK
public static long CLASSPK_COLUMN_BITMASK
public static long NAME_COLUMN_BITMASK
public static final long LOCK_EXPIRATION_TIME
Constructor Detail |
---|
public ShardModelImpl()
Method Detail |
---|
public long getPrimaryKey()
ShardModel
getPrimaryKey
in interface ShardModel
public void setPrimaryKey(long primaryKey)
ShardModel
setPrimaryKey
in interface ShardModel
primaryKey
- the primary key of this shardpublic 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 Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<Shard>
getModelAttributes
in class BaseModelImpl<Shard>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<Shard>
setModelAttributes
in class BaseModelImpl<Shard>
public long getShardId()
ShardModel
getShardId
in interface ShardModel
public void setShardId(long shardId)
ShardModel
setShardId
in interface ShardModel
shardId
- the shard ID of this shardpublic String getClassName()
ShardModel
getClassName
in interface AttachedModel
getClassName
in interface ShardModel
public void setClassName(String className)
setClassName
in interface ShardModel
public long getClassNameId()
ShardModel
getClassNameId
in interface AttachedModel
getClassNameId
in interface ShardModel
public void setClassNameId(long classNameId)
ShardModel
setClassNameId
in interface AttachedModel
setClassNameId
in interface ShardModel
classNameId
- the class name ID of this shardpublic long getOriginalClassNameId()
public long getClassPK()
ShardModel
getClassPK
in interface AttachedModel
getClassPK
in interface ShardModel
public void setClassPK(long classPK)
ShardModel
setClassPK
in interface AttachedModel
setClassPK
in interface ShardModel
classPK
- the class p k of this shardpublic long getOriginalClassPK()
public String getName()
ShardModel
getName
in interface ShardModel
public void setName(String name)
ShardModel
setName
in interface ShardModel
name
- the name of this shardpublic String getOriginalName()
public long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Shard>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface ShardModel
getExpandoBridge
in class BaseModelImpl<Shard>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Shard>
setExpandoBridgeAttributes
in interface ShardModel
setExpandoBridgeAttributes
in class BaseModelImpl<Shard>
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public Shard toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<Shard>
toEscapedModel
in interface ShardModel
toEscapedModel
in class BaseModelImpl<Shard>
AutoEscapeBeanHandler
public Shard toUnescapedModel()
toUnescapedModel
in interface BaseModel<Shard>
toUnescapedModel
in interface ShardModel
toUnescapedModel
in class BaseModelImpl<Shard>
public Object clone()
BaseModel
clone
in interface BaseModel<Shard>
clone
in interface ShardModel
clone
in class BaseModelImpl<Shard>
public int compareTo(Shard shard)
compareTo
in interface ShardModel
compareTo
in interface Comparable<Shard>
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in interface ShardModel
hashCode
in class Object
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<Shard>
resetOriginalValues
in class BaseModelImpl<Shard>
public CacheModel<Shard> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<Shard>
toCacheModel
in interface ShardModel
toCacheModel
in class BaseModelImpl<Shard>
public String toString()
toString
in interface ShardModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<Shard>
toXmlString
in interface ShardModel
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |