public interface IGSEntry extends Serializable
Entry
in a GigaSpace.
Each instance of this class contains a reference to the Entry value plus
any other necessary info about the entry; including its class name, field types, and field values
(could be in a MarshalledObject
or
MarshObject
form).Modifier and Type | Method and Description |
---|---|
String |
getClassName()
Entry class Name.
|
String |
getCodebase()
Entry-class codebase.
|
int |
getFieldPosition(String fieldName)
Return the the field position in the
FieldsValues array. |
String[] |
getFieldsNames()
Entry fields names.
|
String[] |
getFieldsTypes()
Entry Fields Types.
|
Object[] |
getFieldsValues()
Entry field Values.
|
String |
getFieldType(String fieldName)
Retries the given field its type class name.
|
Object |
getFieldValue(int position)
Retrieves the given field value by position.
|
Object |
getFieldValue(String fieldName)
Retrieves the given field value.
|
boolean[] |
getIndexIndicators()
Indexed fields array indication.
|
Map.Entry |
getMapEntry()
Returns a Map.Entry (key-value pair) representation of this
entity.
|
Object |
getObject(IJSpace space)
Converts to object.
|
String |
getPrimaryKeyName()
The field name representing the primary key.
|
String |
getRoutingFieldName() |
String[] |
getSuperClassesNames()
Entry Super Classes Names.
|
long |
getTimeToLive()
Entry time to live.
|
String |
getUID()
Entry UID.
|
int |
getVersion()
Ascending version of this Entry
|
boolean |
isFifo()
If true operations will be done using FIFO ordering when multiple match found.
|
boolean |
isIndexedField(String fieldName)
Checks if the given field is indexed.
|
boolean |
isReplicatable()
Check if replicatable, applicable only when used with partial replication.
|
boolean |
isTransient()
Checks entry is transient even if space is persistent.
|
Object |
setFieldValue(int position,
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.
|
Map.Entry getMapEntry()
null
is returned.null
if no representation.Map.Entry
String getUID()
String getClassName()
String[] getSuperClassesNames()
String getCodebase()
String[] getFieldsNames()
String[] getFieldsTypes()
Object[] getFieldsValues()
boolean[] getIndexIndicators()
String getPrimaryKeyName()
boolean isFifo()
true
if FIFO ordering is usedboolean isTransient()
true
if entry is transientboolean isReplicatable()
true
if this entry is replicatable.IReplicatable
long getTimeToLive()
Lease
int getVersion()
int getFieldPosition(String fieldName)
FieldsValues
array.fieldName
- name of the field (e.g. Field.getName()
.getFieldsValues()
.Object getFieldValue(String fieldName) throws IllegalArgumentException, IllegalStateException
fieldName
- name of the field (e.g. Field.getName()
.IllegalArgumentException
- if field name is not avaliableIllegalStateException
- if field values array was not properly setObject getFieldValue(int position) throws IllegalArgumentException, IllegalStateException
position
- the field position.IllegalArgumentException
- if field name is not avaliableIllegalStateException
- if field values array was not properly setObject setFieldValue(String fieldName, Object value) throws IllegalArgumentException, IllegalStateException
fieldName
- the field name.value
- value to be associated with the specified field.IllegalArgumentException
- if field name is not avaliableIllegalStateException
- if field values array was not properly setObject setFieldValue(int position, Object value) throws IllegalArgumentException, IllegalStateException
position
- the field position.value
- value to be associated with the specified field.IllegalArgumentException
- if field name is not avaliableIllegalStateException
- if field values array was not properly setString getFieldType(String fieldName) throws IllegalArgumentException, IllegalStateException
fieldName
- the field name.IllegalArgumentException
- if field name is not avaliableIllegalStateException
- if field types array was not properly setboolean isIndexedField(String fieldName) throws IllegalArgumentException, IllegalStateException
fieldName
- the field name.true
if the the field is indexed.IllegalArgumentException
- if field name is not avaliableIllegalStateException
- if field indexes array was not properly setObject getObject(IJSpace space) throws UnusableEntryException
setFieldValue(int, Object)
or setFieldValue(String, Object)
.space
- Space proxy.UnusableEntryException
- One or more fields in the entry cannot be
deserialized, or the class for the entry type
itself cannot be deserialized.String getRoutingFieldName()
Copyright © GigaSpaces.