GigaSpaces XAP 10.0.1 API

org.openspaces.persistency.cassandra.meta.mapping.node
Class TypeNodeContext

java.lang.Object
  extended by org.openspaces.persistency.cassandra.meta.mapping.node.TypeNodeContext
All Implemented Interfaces:
PropertyContext

public class TypeNodeContext
extends Object
implements PropertyContext

Context used during type introspection and during read/write operations

Since:
9.1.1
Author:
Dan Kilman

Constructor Summary
TypeNodeContext()
           
TypeNodeContext(TypeNodeIntrospector typeNodeIntrospector, boolean useDynamicPropertySerializerForDynamicColumns)
           
 
Method Summary
 void descreaseNestingLevel()
          Decrease the current nesting level.
 int getCurrentNestingLevel()
           
 String getName()
           
 String getPath()
           
 Class<?> getType()
           
 TypeNodeIntrospector getTypeNodeIntrospector()
           
 void increaseNestingLevel()
          Increase the current nesting level.
 boolean isDynamic()
           
 boolean isUseDynamicPropertySerializerForDynamicColumns()
           
 void setCurrentPropertyContext(String propertyPath, String propertyName, Class<?> propertyType)
          Sets the current property context information (used in FlattenedPropertiesFilter)
 void setDynamic(boolean isDynamic)
          Sets the current dynamic context value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeNodeContext

public TypeNodeContext()

TypeNodeContext

public TypeNodeContext(TypeNodeIntrospector typeNodeIntrospector,
                       boolean useDynamicPropertySerializerForDynamicColumns)
Method Detail

getCurrentNestingLevel

public int getCurrentNestingLevel()
Specified by:
getCurrentNestingLevel in interface PropertyContext
Returns:
Current nesting level (used during type introspection and during write operations).

increaseNestingLevel

public void increaseNestingLevel()
Increase the current nesting level.


descreaseNestingLevel

public void descreaseNestingLevel()
Decrease the current nesting level.


isDynamic

public boolean isDynamic()
Specified by:
isDynamic in interface PropertyContext
Returns:
Whether the current location in the type introspaction hierarcy is a descendent of a dynamic type node property.

setDynamic

public void setDynamic(boolean isDynamic)
Sets the current dynamic context value.


getTypeNodeIntrospector

public TypeNodeIntrospector getTypeNodeIntrospector()
Returns:
The type node introspector.

isUseDynamicPropertySerializerForDynamicColumns

public boolean isUseDynamicPropertySerializerForDynamicColumns()
Returns:
true if dynamic columns should be serialized using the dynamic property serializer.

setCurrentPropertyContext

public void setCurrentPropertyContext(String propertyPath,
                                      String propertyName,
                                      Class<?> propertyType)
Sets the current property context information (used in FlattenedPropertiesFilter)


getPath

public String getPath()
Specified by:
getPath in interface PropertyContext
Returns:
path to this property. For example if the root entry contains a POJO property named x and this pojo contains another POJO property named y and this property is part of the y property, then the path will be x.y

getName

public String getName()
Specified by:
getName in interface PropertyContext
Returns:
the property name as it appears in its parent.

getType

public Class<?> getType()
Specified by:
getType in interface PropertyContext
Returns:
propertyType the property type.

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.