Class EntryImpl

All Implemented Interfaces:
IGSEntry, Serializable
Direct Known Subclasses:
CacheEntry, SpaceFilterEntryImpl

public class EntryImpl extends AbstractEntryType
Entry with type table information.
Since:
5.1
Version:
1.0
Author:
moran
See Also:
  • Field Details

  • Constructor Details

    • EntryImpl

      public EntryImpl(IEntryHolder entryHolder, ITypeDesc typeDesc)
      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

      public Map.Entry getMapEntry()
      Description copied from interface: IGSEntry
      Returns a Map.Entry (key-value pair) representation of this entity. Relevant when interacting with the Space using Map API; otherwise a null is returned.
      Returns:
      a Map.Entry representation of this entity; null if no representation.
      See Also:
    • getUID

      public String getUID()
      Description copied from interface: IGSEntry
      Entry UID.
      Returns:
      Returns the Entry UID
    • getClassName

      public String getClassName()
      Description copied from class: AbstractEntryType
      Entry class Name.
      Specified by:
      getClassName in interface IGSEntry
      Overrides:
      getClassName in class AbstractEntryType
      Returns:
      Returns the Entry class Name.
    • getFieldsValues

      public Object[] getFieldsValues()
      Description copied from interface: IGSEntry
      Entry field Values.
      Returns:
      Returns the entry field Values
    • isTransient

      public boolean isTransient()
      Description copied from interface: IGSEntry
      Checks entry is transient even if space is persistent.
      Returns:
      true if entry is transient
    • getTimeToLive

      public long getTimeToLive()
      Description copied from interface: IGSEntry
      Entry time to live.
      Returns:
      the Entry's time to live in milliseconds.
      See Also:
    • getVersion

      public int getVersion()
      Description copied from interface: IGSEntry
      Ascending version of this Entry
      Returns:
      the version of this entry.
    • getFieldValue

      public Object getFieldValue(String fieldName)
      Description copied from interface: IGSEntry
      Retrieves the given field value.
      Parameters:
      fieldName - name of the field (e.g. Field.getName().
      Returns:
      the field value.
    • getFieldValue

      public Object getFieldValue(int index)
      Description copied from interface: IGSEntry
      Retrieves the given field value by position.
      Parameters:
      index - the field position.
      Returns:
      the field value.
    • setFieldValue

      public Object setFieldValue(String fieldName, Object value)
      Description copied from interface: IGSEntry
      Associates 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

      public Object setFieldValue(int index, Object value)
      Description copied from interface: IGSEntry
      Associates 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

      public Entry getEntry(IJSpace space) throws UnusableEntryException
      Throws:
      UnusableEntryException
    • getHandback

      public MarshalledObject 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