Package com.j_spaces.core
Class EntryImpl
java.lang.Object
com.j_spaces.core.AbstractEntryType
com.j_spaces.core.EntryImpl
- All Implemented Interfaces:
IGSEntry,Serializable
- Direct Known Subclasses:
CacheEntry,SpaceFilterEntryImpl
Entry with type table information.
- Since:
- 5.1
- Version:
- 1.0
- Author:
- moran
- See Also:
-
Field Summary
FieldsFields inherited from class com.j_spaces.core.AbstractEntryType
_typeDesc -
Constructor Summary
ConstructorsConstructorDescriptionEntryImpl(IEntryHolder entryHolder, ITypeDesc typeDesc) Constructs an Entry implementation including its class-type meta-data. -
Method Summary
Modifier and TypeMethodDescriptionEntry class Name.Object[]Entry field Values.getFieldValue(int index) Retrieves the given field value by position.getFieldValue(String fieldName) Retrieves the given field value.Returns the handbag represented by this Entry.Returns a Map.Entry (key-value pair) representation of this entity.intReturns the notify type represented by this Entry.longEntry time to live.getUID()Entry UID.intAscending version of this EntrybooleanChecks entry is transient even if space is persistent.setFieldValue(int index, Object value) Associates the specified value with the specified field position.setFieldValue(String fieldName, Object value) Associates the specified value with the specified field.Methods inherited from class com.j_spaces.core.AbstractEntryType
getCodebase, getFieldPosition, getFieldsNames, getFieldsTypes, getFieldType, getIndexIndicators, getObject, getPrimaryKeyName, getProperties, getRoutingFieldName, getSuperClassesNames, hasDummyTTE, isBroadcast, isFifo, isIndexedField, isReplicatable
-
Field Details
-
_entryHolder
-
-
Constructor Details
-
EntryImpl
Constructs an Entry implementation including its class-type meta-data.- Parameters:
entryHolder- the entry holder (internal entry representation).typeDesc- the class-type meta-data of this entry.
-
-
Method Details
-
getMapEntry
Description copied from interface:IGSEntryReturns a Map.Entry (key-value pair) representation of this entity. Relevant when interacting with the Space using Map API; otherwise anullis returned.- Returns:
- a Map.Entry representation of this entity;
nullif no representation. - See Also:
-
getUID
Description copied from interface:IGSEntryEntry UID.- Returns:
- Returns the Entry UID
-
getClassName
Description copied from class:AbstractEntryTypeEntry class Name.- Specified by:
getClassNamein interfaceIGSEntry- Overrides:
getClassNamein classAbstractEntryType- Returns:
- Returns the Entry class Name.
-
getFieldsValues
Description copied from interface:IGSEntryEntry field Values.- Returns:
- Returns the entry field Values
-
isTransient
public boolean isTransient()Description copied from interface:IGSEntryChecks entry is transient even if space is persistent.- Returns:
trueif entry is transient
-
getTimeToLive
public long getTimeToLive()Description copied from interface:IGSEntryEntry time to live.- Returns:
- the Entry's time to live in milliseconds.
- See Also:
-
getVersion
public int getVersion()Description copied from interface:IGSEntryAscending version of this Entry- Returns:
- the version of this entry.
-
getFieldValue
Description copied from interface:IGSEntryRetrieves the given field value.- Parameters:
fieldName- name of the field (e.g.Field.getName().- Returns:
- the field value.
-
getFieldValue
Description copied from interface:IGSEntryRetrieves the given field value by position.- Parameters:
index- the field position.- Returns:
- the field value.
-
setFieldValue
Description copied from interface:IGSEntryAssociates the specified value with the specified field.- Parameters:
fieldName- the field name.value- value to be associated with the specified field.- Returns:
- the value that was associated with the specified field.
-
setFieldValue
Description copied from interface:IGSEntryAssociates the specified value with the specified field position.- Parameters:
index- the field position.value- value to be associated with the specified field.- Returns:
- the value that was associated with the specified field.
-
getEntry
- Throws:
UnusableEntryException
-
getHandback
Returns the handbag represented by this Entry.- Returns:
- handbag object.
-
getNotifyType
public int getNotifyType()Returns the notify type represented by this Entry.- Returns:
- return one of
NotifyModifiers
-