Package com.gigaspaces.internal.metadata
Class PojoIntrospector<T>
java.lang.Object
com.gigaspaces.internal.metadata.AbstractTypeIntrospector<T>
com.gigaspaces.internal.metadata.PojoIntrospector<T>
- All Implemented Interfaces:
ITypeIntrospector<T>,SmartExternalizable,Externalizable,Serializable
Pojo introspector for all the pojo implementations.
- Since:
- 7.0
- Author:
- Niv Ingberg
- See Also:
-
Field Summary
FieldsFields inherited from class com.gigaspaces.internal.metadata.AbstractTypeIntrospector
_documentObjectConverter, _typeDesc -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for Externalizable.PojoIntrospector(ITypeDesc typeDesc) -
Method Summary
Modifier and TypeMethodDescriptiongetDynamicProperties(T target) protected ObjectgetDynamicProperty(T target, String name) bytelonggetTimeToLive(T target) getType()Object[]intgetVersion(T target) booleanbooleanbooleanhasTimeToLiveProperty(T target) booleanhasTransientProperty(T target) booleanbooleanhasVersionProperty(T target) protected TinstantiateObject(Object[] values, Map<String, Object> dynamicProperties, String uid, int version, long timeToLive, boolean isTransient) booleanisTransient(T target) T[]newArray(int length) protected Object[]processDocumentObjectInterop(Object[] values, EntryType entryType, boolean cloneOnChange) booleanpropertyHasNullValue(int position) voidreadExternal(ObjectInput in, PlatformLogicalVersion version) voidsetDynamicProperties(T target, Map<String, Object> dynamicProperties) voidsetDynamicProperty(T target, String name, Object value) voidsetEntryInfo(T target, String uid, int version, long ttl) booleansetTimeToLive(T target, long ttl) booleansetTransient(T target, boolean isTransient) booleanvoidvoidbooleansetVersion(T target, int version) voidunsetDynamicProperty(T target, String name) voidwriteExternal(ObjectOutput out, PlatformLogicalVersion version) NOTE: if you change this method, you need to make this class ISwapExternalizableMethods inherited from class com.gigaspaces.internal.metadata.AbstractTypeIntrospector
fromDocumentIfNeeded, getNestedValue, getPathType, getPathValue, getPathValue, getRouting, getSerializedValues, getTypeDesc, getUID, getValue, initialize, readExternal, setValue, supportsNestedOperations, toDocumentIfNeeded, toObject, toObject, writeExternalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Field Details
-
EXTERNALIZABLE_CODE
public static final byte EXTERNALIZABLE_CODE- See Also:
-
-
Constructor Details
-
PojoIntrospector
public PojoIntrospector()Default constructor for Externalizable. -
PojoIntrospector
-
-
Method Details
-
getType
-
newInstance
- Specified by:
newInstancein classAbstractTypeIntrospector<T>
-
newArray
-
toObject
- Specified by:
toObjectin interfaceITypeIntrospector<T>- Overrides:
toObjectin classAbstractTypeIntrospector<T>
-
instantiateObject
protected T instantiateObject(Object[] values, Map<String, Object> dynamicProperties, String uid, int version, long timeToLive, boolean isTransient) - Overrides:
instantiateObjectin classAbstractTypeIntrospector<T>
-
processDocumentObjectInterop
protected Object[] processDocumentObjectInterop(Object[] values, EntryType entryType, boolean cloneOnChange) - Specified by:
processDocumentObjectInteropin classAbstractTypeIntrospector<T>
-
getVersion
-
setVersion
-
getTimeToLive
-
setTimeToLive
-
isTransient
-
setTransient
-
hasDynamicProperties
public boolean hasDynamicProperties() -
getDynamicProperties
-
setDynamicProperties
-
getValues
-
setValues
-
getValue
-
setValue
-
getDynamicProperty
- Specified by:
getDynamicPropertyin classAbstractTypeIntrospector<T>
-
setDynamicProperty
-
unsetDynamicProperty
-
getUID
-
setUID
-
setEntryInfo
-
hasTimeToLiveProperty
-
hasTransientProperty
-
hasUID
-
hasVersionProperty
-
propertyHasNullValue
public boolean propertyHasNullValue(int position) - Specified by:
propertyHasNullValuein interfaceITypeIntrospector<T>- Overrides:
propertyHasNullValuein classAbstractTypeIntrospector<T>
-
hasConstructorProperties
public boolean hasConstructorProperties()- Specified by:
hasConstructorPropertiesin interfaceITypeIntrospector<T>- Overrides:
hasConstructorPropertiesin classAbstractTypeIntrospector<T>
-
getExternalizableCode
public byte getExternalizableCode() -
readExternal
public void readExternal(ObjectInput in, PlatformLogicalVersion version) throws IOException, ClassNotFoundException - Specified by:
readExternalin interfaceITypeIntrospector<T>- Overrides:
readExternalin classAbstractTypeIntrospector<T>- Throws:
IOExceptionClassNotFoundException
-
writeExternal
NOTE: if you change this method, you need to make this class ISwapExternalizable- Specified by:
writeExternalin interfaceITypeIntrospector<T>- Overrides:
writeExternalin classAbstractTypeIntrospector<T>- Throws:
IOException
-