@ProviderType public class BrowserTrackerWrapper extends Object implements BrowserTracker, ModelWrapper<BrowserTracker>
This class is a wrapper for BrowserTracker
.
BrowserTracker
,
Serialized FormBROWSER_TRACKER_ID_ACCESSOR
Constructor and Description |
---|
BrowserTrackerWrapper(BrowserTracker browserTracker) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(BrowserTracker browserTracker) |
boolean |
equals(Object obj) |
long |
getBrowserKey()
Returns the browser key of this browser tracker.
|
long |
getBrowserTrackerId()
Returns the browser tracker ID of this browser tracker.
|
long |
getCompanyId()
Returns the company ID of this browser tracker.
|
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 browser tracker.
|
long |
getPrimaryKey()
Returns the primary key of this browser tracker.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getUserId()
Returns the user ID of this browser tracker.
|
String |
getUserUuid()
Returns the user uuid of this browser tracker.
|
BrowserTracker |
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 |
setBrowserKey(long browserKey)
Sets the browser key of this browser tracker.
|
void |
setBrowserTrackerId(long browserTrackerId)
Sets the browser tracker ID of this browser tracker.
|
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 browser tracker.
|
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 browser tracker.
|
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 browser tracker.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setUserId(long userId)
Sets the user ID of this browser tracker.
|
void |
setUserUuid(String userUuid)
Sets the user uuid of this browser tracker.
|
CacheModel<BrowserTracker> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
BrowserTracker |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler . |
String |
toString() |
BrowserTracker |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public BrowserTrackerWrapper(BrowserTracker browserTracker)
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<BrowserTracker>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<BrowserTracker>
public Object clone()
BaseModel
clone
in interface BaseModel<BrowserTracker>
clone
in interface BrowserTrackerModel
clone
in class Object
public int compareTo(BrowserTracker browserTracker)
compareTo
in interface BrowserTrackerModel
compareTo
in interface Comparable<BrowserTracker>
public long getBrowserKey()
getBrowserKey
in interface BrowserTrackerModel
public long getBrowserTrackerId()
getBrowserTrackerId
in interface BrowserTrackerModel
public long getCompanyId()
getCompanyId
in interface BrowserTrackerModel
getCompanyId
in interface ShardedModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<BrowserTracker>
getExpandoBridge
in interface BrowserTrackerModel
getExpandoBridge
in interface ClassedModel
public long getMvccVersion()
getMvccVersion
in interface BrowserTrackerModel
getMvccVersion
in interface MVCCModel
public long getPrimaryKey()
getPrimaryKey
in interface BrowserTrackerModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<BrowserTracker>
getPrimaryKeyObj
in interface BrowserTrackerModel
getPrimaryKeyObj
in interface ClassedModel
public long getUserId()
getUserId
in interface BrowserTrackerModel
public String getUserUuid()
getUserUuid
in interface BrowserTrackerModel
public int hashCode()
hashCode
in interface BrowserTrackerModel
hashCode
in class Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface BaseModel<BrowserTracker>
isCachedModel
in interface BrowserTrackerModel
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 BaseModel<BrowserTracker>
isEscapedModel
in interface BrowserTrackerModel
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 BaseModel<BrowserTracker>
isNew
in interface BrowserTrackerModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void setBrowserKey(long browserKey)
setBrowserKey
in interface BrowserTrackerModel
browserKey
- the browser key of this browser trackerpublic void setBrowserTrackerId(long browserTrackerId)
setBrowserTrackerId
in interface BrowserTrackerModel
browserTrackerId
- the browser tracker ID of this browser trackerpublic void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<BrowserTracker>
setCachedModel
in interface BrowserTrackerModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setCompanyId(long companyId)
setCompanyId
in interface BrowserTrackerModel
setCompanyId
in interface ShardedModel
companyId
- the company ID of this browser trackerpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<BrowserTracker>
setExpandoBridgeAttributes
in interface BrowserTrackerModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<BrowserTracker>
setExpandoBridgeAttributes
in interface BrowserTrackerModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<BrowserTracker>
setExpandoBridgeAttributes
in interface BrowserTrackerModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setMvccVersion(long mvccVersion)
setMvccVersion
in interface BrowserTrackerModel
setMvccVersion
in interface MVCCModel
mvccVersion
- the mvcc version of this browser trackerpublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<BrowserTracker>
setNew
in interface BrowserTrackerModel
n
- whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface BrowserTrackerModel
primaryKey
- the primary key of this browser trackerpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<BrowserTracker>
setPrimaryKeyObj
in interface BrowserTrackerModel
setPrimaryKeyObj
in interface ClassedModel
primaryKeyObj
- the primary key of this model instancepublic void setUserId(long userId)
setUserId
in interface BrowserTrackerModel
userId
- the user ID of this browser trackerpublic void setUserUuid(String userUuid)
setUserUuid
in interface BrowserTrackerModel
userUuid
- the user uuid of this browser trackerpublic CacheModel<BrowserTracker> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<BrowserTracker>
toCacheModel
in interface BrowserTrackerModel
public BrowserTracker toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface BaseModel<BrowserTracker>
toEscapedModel
in interface BrowserTrackerModel
AutoEscapeBeanHandler
public String toString()
toString
in interface BrowserTrackerModel
toString
in class Object
public BrowserTracker toUnescapedModel()
toUnescapedModel
in interface BaseModel<BrowserTracker>
toUnescapedModel
in interface BrowserTrackerModel
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<BrowserTracker>
toXmlString
in interface BrowserTrackerModel
public boolean equals(Object obj)
equals
in class Object
public BrowserTracker getWrappedModel()
getWrappedModel
in interface ModelWrapper<BrowserTracker>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<BrowserTracker>
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<BrowserTracker>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<BrowserTracker>