@ProviderType public class DLSyncEventWrapper extends Object implements DLSyncEvent, ModelWrapper<DLSyncEvent>
This class is a wrapper for DLSyncEvent
.
DLSyncEvent
,
Serialized FormSYNC_EVENT_ID_ACCESSOR
Constructor and Description |
---|
DLSyncEventWrapper(DLSyncEvent dlSyncEvent) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(DLSyncEvent dlSyncEvent) |
boolean |
equals(Object obj) |
long |
getCompanyId()
Returns the company ID of this dl sync event.
|
String |
getEvent()
Returns the event of this dl sync event.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
long |
getModifiedTime()
Returns the modified time of this dl sync event.
|
long |
getPrimaryKey()
Returns the primary key of this dl sync event.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getSyncEventId()
Returns the sync event ID of this dl sync event.
|
String |
getType()
Returns the type of this dl sync event.
|
long |
getTypePK()
Returns the type pk of this dl sync event.
|
DLSyncEvent |
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 |
setCompanyId(long companyId)
Sets the company ID of this dl sync event.
|
void |
setEvent(String event)
Sets the event of this dl sync event.
|
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 |
setModifiedTime(long modifiedTime)
Sets the modified time of this dl sync event.
|
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 dl sync event.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setSyncEventId(long syncEventId)
Sets the sync event ID of this dl sync event.
|
void |
setType(String type)
Sets the type of this dl sync event.
|
void |
setTypePK(long typePK)
Sets the type pk of this dl sync event.
|
CacheModel<DLSyncEvent> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
DLSyncEvent |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler . |
String |
toString() |
DLSyncEvent |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public DLSyncEventWrapper(DLSyncEvent dlSyncEvent)
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<DLSyncEvent>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<DLSyncEvent>
public Object clone()
BaseModel
clone
in interface DLSyncEventModel
clone
in interface BaseModel<DLSyncEvent>
clone
in class Object
public int compareTo(DLSyncEvent dlSyncEvent)
compareTo
in interface DLSyncEventModel
compareTo
in interface Comparable<DLSyncEvent>
public long getCompanyId()
getCompanyId
in interface DLSyncEventModel
getCompanyId
in interface ShardedModel
public String getEvent()
getEvent
in interface DLSyncEventModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface DLSyncEventModel
getExpandoBridge
in interface BaseModel<DLSyncEvent>
getExpandoBridge
in interface ClassedModel
public long getModifiedTime()
getModifiedTime
in interface DLSyncEventModel
public long getPrimaryKey()
getPrimaryKey
in interface DLSyncEventModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface DLSyncEventModel
getPrimaryKeyObj
in interface BaseModel<DLSyncEvent>
getPrimaryKeyObj
in interface ClassedModel
public long getSyncEventId()
getSyncEventId
in interface DLSyncEventModel
public String getType()
getType
in interface DLSyncEventModel
public long getTypePK()
getTypePK
in interface DLSyncEventModel
public int hashCode()
hashCode
in interface DLSyncEventModel
hashCode
in class Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface DLSyncEventModel
isCachedModel
in interface BaseModel<DLSyncEvent>
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 DLSyncEventModel
isEscapedModel
in interface BaseModel<DLSyncEvent>
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 DLSyncEventModel
isNew
in interface BaseModel<DLSyncEvent>
true
if this model instance does not yet exist in
the database; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface DLSyncEventModel
setCachedModel
in interface BaseModel<DLSyncEvent>
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setCompanyId(long companyId)
setCompanyId
in interface DLSyncEventModel
setCompanyId
in interface ShardedModel
companyId
- the company ID of this dl sync eventpublic void setEvent(String event)
setEvent
in interface DLSyncEventModel
event
- the event of this dl sync eventpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface DLSyncEventModel
setExpandoBridgeAttributes
in interface BaseModel<DLSyncEvent>
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface DLSyncEventModel
setExpandoBridgeAttributes
in interface BaseModel<DLSyncEvent>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface DLSyncEventModel
setExpandoBridgeAttributes
in interface BaseModel<DLSyncEvent>
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setModifiedTime(long modifiedTime)
setModifiedTime
in interface DLSyncEventModel
modifiedTime
- the modified time of this dl sync eventpublic void setNew(boolean n)
BaseModel
setNew
in interface DLSyncEventModel
setNew
in interface BaseModel<DLSyncEvent>
n
- whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface DLSyncEventModel
primaryKey
- the primary key of this dl sync eventpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface DLSyncEventModel
setPrimaryKeyObj
in interface BaseModel<DLSyncEvent>
setPrimaryKeyObj
in interface ClassedModel
primaryKeyObj
- the primary key of this model instancepublic void setSyncEventId(long syncEventId)
setSyncEventId
in interface DLSyncEventModel
syncEventId
- the sync event ID of this dl sync eventpublic void setType(String type)
setType
in interface DLSyncEventModel
type
- the type of this dl sync eventpublic void setTypePK(long typePK)
setTypePK
in interface DLSyncEventModel
typePK
- the type pk of this dl sync eventpublic CacheModel<DLSyncEvent> toCacheModel()
BaseModel
toCacheModel
in interface DLSyncEventModel
toCacheModel
in interface BaseModel<DLSyncEvent>
public DLSyncEvent toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface DLSyncEventModel
toEscapedModel
in interface BaseModel<DLSyncEvent>
AutoEscapeBeanHandler
public String toString()
toString
in interface DLSyncEventModel
toString
in class Object
public DLSyncEvent toUnescapedModel()
toUnescapedModel
in interface DLSyncEventModel
toUnescapedModel
in interface BaseModel<DLSyncEvent>
public String toXmlString()
BaseModel
toXmlString
in interface DLSyncEventModel
toXmlString
in interface BaseModel<DLSyncEvent>
public boolean equals(Object obj)
equals
in class Object
public DLSyncEvent getWrappedModel()
getWrappedModel
in interface ModelWrapper<DLSyncEvent>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<DLSyncEvent>
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<DLSyncEvent>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<DLSyncEvent>