Class EntryAdapter
java.lang.Object
com.j_spaces.core.AbstractEntryType
com.j_spaces.core.EntryImpl
com.j_spaces.sadapter.cache.CacheEntry
com.j_spaces.sadapter.datasource.EntryAdapter
- All Implemented Interfaces:
IGSEntry, Serializable
- Direct Known Subclasses:
BulkDataItem
Wraps space EntryHolder and supplies seamless conversion
to used defined types
- Since:
- 6.0
- Author:
- anna
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IDataConverter<IEntryPacket> Converts the external entry to user defined objectsFields inherited from class EntryImpl
_entryHolderFields inherited from class AbstractEntryType
_typeDesc -
Constructor Summary
ConstructorsConstructorDescriptionEntryAdapter(IEntryHolder entryHolder, ITypeDesc typeDesc) EntryAdapter(IEntryHolder entryHolder, ITypeDesc typeDesc, IDataConverter<IEntryPacket> converter) EntryAdapter(IDataConverter<IEntryPacket> converter) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetConverter(IDataConverter<IEntryPacket> converter) toDocument(String typeName) Converts given object to IGSEntryConvert key value to entrytoObject()Methods inherited from class CacheEntry
getClassName, getEntry, getMapEntry, setClassName, toString, toStringMethods inherited from class EntryImpl
getCustomQueryDescription, getFieldsValues, getFieldValue, getFieldValue, getHandback, getNotifyType, getTimeToLive, getUID, getVersion, isTransient, setFieldValue, setFieldValueMethods inherited from class AbstractEntryType
getCodebase, getFieldPosition, getFieldsNames, getFieldsTypes, getFieldType, getIndexIndicators, getObject, getPrimaryKeyName, getProperties, getRoutingFieldName, getSuperClassesNames, hasDummyTTE, isBroadcast, isFifo, isIndexedField, isReplicatable
-
Field Details
-
_converter
Converts the external entry to user defined objects
-
-
Constructor Details
-
EntryAdapter
- Parameters:
converter-
-
EntryAdapter
public EntryAdapter(IEntryHolder entryHolder, ITypeDesc typeDesc, IDataConverter<IEntryPacket> converter) - Parameters:
entryHolder-typeDesc-converter-
-
EntryAdapter
- Parameters:
entryHolder-typeDesc-
-
-
Method Details
-
getConverter
- Returns:
- the converter
-
setConverter
- Parameters:
converter- the converter to set
-
toObject
- Returns:
- the user defined representation of the underlying entry
-
toDocument
- Returns:
SpaceDocumentinstance representation of this entry.
-
toDocument
- Returns:
SpaceDocumentinstance representation of this entry with the provided type name.
-
toEntryPacket
- Returns:
- the converted IEntryHolder to EnteryPacket
-
toEntry
public IEntryPacket toEntry(Object object) throws RemoteException, UnusableEntryException, UnknownTypeException Converts given object to IGSEntry -
toEntry
public IEntryPacket toEntry(Object key, Object value) throws RemoteException, UnusableEntryException, UnknownTypeException Convert key value to entry- Returns:
- IEntryPacket
- Throws:
RemoteExceptionUnusableEntryExceptionUnknownTypeException
-
getTypeDescriptor
-