public class ExternalEntryIntrospector<T extends ExternalEntry> extends AbstractTypeIntrospector<T>
Modifier and Type | Field and Description |
---|---|
static byte |
EXTERNALIZABLE_CODE |
_documentObjectConverter, _typeDesc
Constructor and Description |
---|
ExternalEntryIntrospector()
Default constructor for Externalizable.
|
ExternalEntryIntrospector(ITypeDesc typeDesc,
Class<T> implClass) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getDynamicProperties(T target) |
protected Object |
getDynamicProperty(T target,
String name) |
byte |
getExternalizableCode() |
Class<?> |
getPathType(String path) |
long |
getTimeToLive(T target) |
Class<T> |
getType() |
static String |
getUid(ITypeDesc typeDesc,
Object[] fieldsValues) |
String |
getUID(T target,
boolean isTemplate,
boolean ignoreAutoGenerateUid) |
Object |
getValue(T target,
int index) |
Object[] |
getValues(T target) |
int |
getVersion(T target) |
boolean |
hasDynamicProperties() |
boolean |
hasTimeToLiveProperty(T target) |
boolean |
hasTransientProperty(T target) |
boolean |
hasUID(T target) |
boolean |
hasVersionProperty(T target) |
boolean |
isTransient(T target) |
T[] |
newArray(int length) |
T |
newInstance() |
protected Object[] |
processDocumentObjectInterop(Object[] values,
EntryType entryType,
boolean cloneOnChange) |
void |
readExternal(ObjectInput in,
PlatformLogicalVersion version) |
void |
setDynamicProperties(T target,
Map<String,Object> dynamicProperties) |
void |
setDynamicProperty(T target,
String name,
Object value) |
void |
setEntryInfo(T target,
String uid,
int version,
long timeToLive) |
boolean |
setTimeToLive(T target,
long ttl) |
boolean |
setTransient(T target,
boolean isTransient) |
boolean |
setUID(T target,
String uid) |
void |
setValue(T target,
Object value,
int index) |
void |
setValues(T target,
Object[] values) |
boolean |
setVersion(T target,
int version) |
boolean |
supportsNestedOperations() |
T |
toObject(IEntryPacket packet,
StorageTypeDeserialization storageTypeDeserialization) |
T |
toObject(IGSEntry entry,
ITypeDesc typeDesc) |
void |
unsetDynamicProperty(T target,
String name) |
void |
writeExternal(ObjectOutput out,
PlatformLogicalVersion version)
NOTE: if you change this method, you need to make this class ISwapExternalizable
|
fromDocumentIfNeeded, getNestedValue, getPathValue, getPathValue, getRouting, getSerializedValues, getTypeDesc, getUID, getValue, hasConstructorProperties, initialize, instantiateObject, propertyHasNullValue, readExternal, setValue, toDocumentIfNeeded, toObject, writeExternal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
enabledSmartExternalizableWithReference
public static final byte EXTERNALIZABLE_CODE
public ExternalEntryIntrospector()
public boolean hasUID(T target)
public boolean hasVersionProperty(T target)
public int getVersion(T target)
public boolean setVersion(T target, int version)
public boolean hasTransientProperty(T target)
public boolean isTransient(T target)
public boolean setTransient(T target, boolean isTransient)
public boolean hasTimeToLiveProperty(T target)
public long getTimeToLive(T target)
public boolean setTimeToLive(T target, long ttl)
public T newInstance()
newInstance
in class AbstractTypeIntrospector<T extends ExternalEntry>
public T[] newArray(int length)
protected Object[] processDocumentObjectInterop(Object[] values, EntryType entryType, boolean cloneOnChange)
processDocumentObjectInterop
in class AbstractTypeIntrospector<T extends ExternalEntry>
public boolean hasDynamicProperties()
public void setDynamicProperties(T target, Map<String,Object> dynamicProperties)
protected Object getDynamicProperty(T target, String name)
getDynamicProperty
in class AbstractTypeIntrospector<T extends ExternalEntry>
public T toObject(IEntryPacket packet, StorageTypeDeserialization storageTypeDeserialization)
toObject
in interface ITypeIntrospector<T extends ExternalEntry>
toObject
in class AbstractTypeIntrospector<T extends ExternalEntry>
public T toObject(IGSEntry entry, ITypeDesc typeDesc)
toObject
in interface ITypeIntrospector<T extends ExternalEntry>
toObject
in class AbstractTypeIntrospector<T extends ExternalEntry>
public boolean supportsNestedOperations()
supportsNestedOperations
in interface ITypeIntrospector<T extends ExternalEntry>
supportsNestedOperations
in class AbstractTypeIntrospector<T extends ExternalEntry>
public Class<?> getPathType(String path)
getPathType
in interface ITypeIntrospector<T extends ExternalEntry>
getPathType
in class AbstractTypeIntrospector<T extends ExternalEntry>
public byte getExternalizableCode()
public void readExternal(ObjectInput in, PlatformLogicalVersion version) throws IOException, ClassNotFoundException
readExternal
in interface ITypeIntrospector<T extends ExternalEntry>
readExternal
in class AbstractTypeIntrospector<T extends ExternalEntry>
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out, PlatformLogicalVersion version) throws IOException
writeExternal
in interface ITypeIntrospector<T extends ExternalEntry>
writeExternal
in class AbstractTypeIntrospector<T extends ExternalEntry>
IOException
Copyright © GigaSpaces.