|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGSEntry
This class represents an 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).
Method Summary | |
---|---|
String |
getClassName()
Entry class Name. |
String |
getCodebase()
Entry-class codebase. |
net.jini.core.entry.Entry |
getEntry(IJSpace space)
Deprecated. use getObject(IJSpace) instead. |
com.j_spaces.core.ITypeDescriptor.Type |
getEntryType()
|
ExternalEntry |
getExternalEntry(IJSpace space)
Convert to Entry object or ExternalEntry. |
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. |
short |
getFormat()
Returns one of the applicable Object formats ObjectFormat . |
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. |
boolean[] |
getPrimitiveFields()
|
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. |
Method Detail |
---|
Map.Entry getMapEntry()
null
is returned.
null
if no representation.Map.Entry
short getFormat()
ObjectFormat
.
Default is ObjectFormat.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 avaliable
IllegalStateException
- if field values array was not properly setObject getFieldValue(int position) throws IllegalArgumentException, IllegalStateException
position
- the field position.
IllegalArgumentException
- if field name is not avaliable
IllegalStateException
- 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 avaliable
IllegalStateException
- 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 avaliable
IllegalStateException
- if field values array was not properly setString getFieldType(String fieldName) throws IllegalArgumentException, IllegalStateException
fieldName
- the field name.
IllegalArgumentException
- if field name is not avaliable
IllegalStateException
- 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 avaliable
IllegalStateException
- if field indexes array was not properly set@Deprecated net.jini.core.entry.Entry getEntry(IJSpace space) throws net.jini.core.entry.UnusableEntryException
getObject(IJSpace)
instead.
setFieldValue(int, Object)
or setFieldValue(String, Object)
.
space
- Space proxy.
net.jini.core.entry.UnusableEntryException
- One or more fields in the entry cannot be
deserialized, or the class for the entry type
itself cannot be deserialized.ExternalEntry getExternalEntry(IJSpace space) throws net.jini.core.entry.UnusableEntryException
setFieldValue(int, Object)
or setFieldValue(String, Object)
.
space
- Space proxy.
net.jini.core.entry.UnusableEntryException
- One or more fields in the entry cannot be
deserialized, or the class for the entry type
itself cannot be deserialized.Object getObject(IJSpace space) throws net.jini.core.entry.UnusableEntryException
setFieldValue(int, Object)
or setFieldValue(String, Object)
.
space
- Space proxy.
net.jini.core.entry.UnusableEntryException
- One or more fields in the entry cannot be
deserialized, or the class for the entry type
itself cannot be deserialized.String getRoutingFieldName()
boolean[] getPrimitiveFields()
com.j_spaces.core.ITypeDescriptor.Type getEntryType()
|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |