public class EntryAdapter extends CacheEntry
Modifier and Type | Field and Description |
---|---|
protected IDataConverter<IEntryPacket> |
_converter
Converts the external entry to user defined objects
|
_entryHolder
_typeDesc
Constructor and Description |
---|
EntryAdapter(IDataConverter<IEntryPacket> converter) |
EntryAdapter(IEntryHolder entryHolder,
ITypeDesc typeDesc) |
EntryAdapter(IEntryHolder entryHolder,
ITypeDesc typeDesc,
IDataConverter<IEntryPacket> converter) |
Modifier and Type | Method and Description |
---|---|
IDataConverter<IEntryPacket> |
getConverter() |
ITypeDesc |
getTypeDescriptor() |
void |
setConverter(IDataConverter<IEntryPacket> converter) |
SpaceDocument |
toDocument() |
SpaceDocument |
toDocument(String typeName) |
IEntryPacket |
toEntry(Object object)
Converts given object to IGSEntry
|
IEntryPacket |
toEntry(Object key,
Object value)
Convert key value to entry
|
IEntryPacket |
toEntryPacket() |
Object |
toObject() |
getClassName, getEntry, getMapEntry, setClassName, toString, toString
getFieldsValues, getFieldValue, getFieldValue, getHandback, getNotifyType, getTimeToLive, getUID, getVersion, isTransient, setFieldValue, setFieldValue
getCodebase, getFieldPosition, getFieldsNames, getFieldsTypes, getFieldType, getIndexIndicators, getObject, getPrimaryKeyName, getProperties, getRoutingFieldName, getSuperClassesNames, hasDummyTTE, isFifo, isIndexedField, isReplicatable
protected IDataConverter<IEntryPacket> _converter
public EntryAdapter(IDataConverter<IEntryPacket> converter)
converter
- public EntryAdapter(IEntryHolder entryHolder, ITypeDesc typeDesc, IDataConverter<IEntryPacket> converter)
entryHolder
- typeDesc
- converter
- public EntryAdapter(IEntryHolder entryHolder, ITypeDesc typeDesc)
entryHolder
- typeDesc
- public IDataConverter<IEntryPacket> getConverter()
public void setConverter(IDataConverter<IEntryPacket> converter)
converter
- the converter to setpublic Object toObject()
public SpaceDocument toDocument()
SpaceDocument
instance representation of this entry.public SpaceDocument toDocument(String typeName)
SpaceDocument
instance representation of this entry with the provided type
name.public IEntryPacket toEntryPacket()
public IEntryPacket toEntry(Object object) throws RemoteException, UnusableEntryException, UnknownTypeException
public IEntryPacket toEntry(Object key, Object value) throws RemoteException, UnusableEntryException, UnknownTypeException
RemoteException
UnusableEntryException
UnknownTypeException
public ITypeDesc getTypeDescriptor()
Copyright © GigaSpaces.