public class EntryImpl extends AbstractEntryType
Modifier and Type | Field and Description |
---|---|
protected IEntryHolder |
_entryHolder |
_typeDesc
Constructor and Description |
---|
EntryImpl(IEntryHolder entryHolder,
ITypeDesc typeDesc)
Constructs an Entry implementation including its class-type meta-data.
|
Modifier and Type | Method and Description |
---|---|
String |
getClassName()
Entry class Name.
|
Entry |
getEntry(IJSpace space) |
Object[] |
getFieldsValues()
Entry field Values.
|
Object |
getFieldValue(int index)
Retrieves the given field value by position.
|
Object |
getFieldValue(String fieldName)
Retrieves the given field value.
|
MarshalledObject |
getHandback()
Returns the handbag represented by this Entry.
|
Map.Entry |
getMapEntry()
Returns a Map.Entry (key-value pair) representation of this entity.
|
int |
getNotifyType()
Returns the notify type represented by this Entry.
|
long |
getTimeToLive()
Entry time to live.
|
String |
getUID()
Entry UID.
|
int |
getVersion()
Ascending version of this Entry
|
boolean |
isTransient()
Checks entry is transient even if space is persistent.
|
Object |
setFieldValue(int index,
Object value)
Associates the specified value with the specified field position.
|
Object |
setFieldValue(String fieldName,
Object value)
Associates the specified value with the specified field.
|
getCodebase, getFieldPosition, getFieldsNames, getFieldsTypes, getFieldType, getIndexIndicators, getObject, getPrimaryKeyName, getProperties, getRoutingFieldName, getSuperClassesNames, hasDummyTTE, isFifo, isIndexedField, isReplicatable
protected final IEntryHolder _entryHolder
public EntryImpl(IEntryHolder entryHolder, ITypeDesc typeDesc)
entryHolder
- the entry holder (internal entry representation).typeDesc
- the class-type meta-data of this entry.public Map.Entry getMapEntry()
IGSEntry
null
is returned.null
if no
representation.Map.Entry
public String getUID()
IGSEntry
public String getClassName()
AbstractEntryType
getClassName
in interface IGSEntry
getClassName
in class AbstractEntryType
public Object[] getFieldsValues()
IGSEntry
public boolean isTransient()
IGSEntry
true
if entry is transientpublic long getTimeToLive()
IGSEntry
Lease
public int getVersion()
IGSEntry
public Object getFieldValue(String fieldName)
IGSEntry
fieldName
- name of the field (e.g. Field.getName()
.public Object getFieldValue(int index)
IGSEntry
index
- the field position.public Object setFieldValue(String fieldName, Object value)
IGSEntry
fieldName
- the field name.value
- value to be associated with the specified field.public Object setFieldValue(int index, Object value)
IGSEntry
index
- the field position.value
- value to be associated with the specified field.public Entry getEntry(IJSpace space) throws UnusableEntryException
UnusableEntryException
public MarshalledObject getHandback()
public int getNotifyType()
NotifyModifiers
Copyright © GigaSpaces.