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 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.For a template holder carrying a compiled custom query (SQL/SQLQuery-based read/take, where the template's own fields are null), translates the custom query back into a readable SQL condition.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) /NOTE: we bypass the snapshot mechanism!!!!!!setFieldValue(String fieldName, Object value) Associates the specified value with the specified field.Methods inherited from class 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
-
getClassName
Description copied from class:AbstractEntryTypeEntry class Name.- Specified by:
getClassNamein interfaceIGSEntry- Overrides:
getClassNamein classAbstractEntryType- Returns:
- Returns the Entry class Name.
-
getFieldsValues
-
getCustomQueryDescription
For a template holder carrying a compiled custom query (SQL/SQLQuery-based read/take, where the template's own fields are null), translates the custom query back into a readable SQL condition. Returns null for plain field-matching templates or non-template entries. -
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
-
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
-
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
-