public class PojoIntrospector<T> extends AbstractTypeIntrospector<T>
| Modifier and Type | Field and Description |
|---|---|
static byte |
EXTERNALIZABLE_CODE |
_documentObjectConverter, _typeDesc| Constructor and Description |
|---|
PojoIntrospector()
Default constructor for Externalizable.
|
PojoIntrospector(ITypeDesc typeDesc) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getDynamicProperties(T target) |
protected Object |
getDynamicProperty(T target,
String name) |
byte |
getExternalizableCode() |
long |
getTimeToLive(T target) |
Class<T> |
getType() |
String |
getUID(T target,
boolean isTemplate,
boolean ignoreIdIfNotExists) |
Object |
getValue(T target,
int index) |
Object[] |
getValues(T target) |
int |
getVersion(T target) |
boolean |
hasConstructorProperties() |
boolean |
hasDynamicProperties() |
boolean |
hasTimeToLiveProperty(T target) |
boolean |
hasTransientProperty(T target) |
boolean |
hasUID(T target) |
boolean |
hasVersionProperty(T target) |
protected T |
instantiateObject(Object[] values,
Map<String,Object> dynamicProperties,
String uid,
int version,
long timeToLive,
boolean isTransient) |
boolean |
isTransient(T target) |
T[] |
newArray(int length) |
T |
newInstance() |
protected Object[] |
processDocumentObjectInterop(Object[] values,
EntryType entryType,
boolean cloneOnChange) |
boolean |
propertyHasNullValue(int position) |
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 ttl) |
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) |
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, getPathType, getPathValue, getPathValue, getRouting, getSerializedValues, getTypeDesc, getUID, getValue, initialize, readExternal, setValue, supportsNestedOperations, toDocumentIfNeeded, toObject, toObject, writeExternalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenabledSmartExternalizableWithReferencepublic static final byte EXTERNALIZABLE_CODE
public PojoIntrospector()
public PojoIntrospector(ITypeDesc typeDesc)
public T newInstance()
newInstance in class AbstractTypeIntrospector<T>public T[] newArray(int length)
public T toObject(IGSEntry entry, ITypeDesc typeDesc)
toObject in interface ITypeIntrospector<T>toObject in class AbstractTypeIntrospector<T>protected T instantiateObject(Object[] values, Map<String,Object> dynamicProperties, String uid, int version, long timeToLive, boolean isTransient)
instantiateObject in class AbstractTypeIntrospector<T>protected Object[] processDocumentObjectInterop(Object[] values, EntryType entryType, boolean cloneOnChange)
processDocumentObjectInterop in class AbstractTypeIntrospector<T>public int getVersion(T target)
public boolean setVersion(T target, int version)
public long getTimeToLive(T target)
public boolean setTimeToLive(T target, long ttl)
public boolean isTransient(T target)
public boolean setTransient(T target, boolean isTransient)
public boolean hasDynamicProperties()
public void setDynamicProperties(T target, Map<String,Object> dynamicProperties)
protected Object getDynamicProperty(T target, String name)
getDynamicProperty in class AbstractTypeIntrospector<T>public boolean hasTimeToLiveProperty(T target)
public boolean hasTransientProperty(T target)
public boolean hasUID(T target)
public boolean hasVersionProperty(T target)
public boolean propertyHasNullValue(int position)
propertyHasNullValue in interface ITypeIntrospector<T>propertyHasNullValue in class AbstractTypeIntrospector<T>public boolean hasConstructorProperties()
hasConstructorProperties in interface ITypeIntrospector<T>hasConstructorProperties in class AbstractTypeIntrospector<T>public byte getExternalizableCode()
public void readExternal(ObjectInput in, PlatformLogicalVersion version) throws IOException, ClassNotFoundException
readExternal in interface ITypeIntrospector<T>readExternal in class AbstractTypeIntrospector<T>IOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out, PlatformLogicalVersion version) throws IOException
writeExternal in interface ITypeIntrospector<T>writeExternal in class AbstractTypeIntrospector<T>IOExceptionCopyright © GigaSpaces.