Package com.gemstone.gemfire.pdx

Examples of com.gemstone.gemfire.pdx.PdxSerializer


        if (entity.isConstructorArgument(persistentProperty)) {
          return;
        }
       
        PdxSerializer customSerializer = getCustomSerializer(persistentProperty.getType());
        Object value = null;
        if (customSerializer != null) {
          value = customSerializer.fromData(persistentProperty.getType(), reader);
        } else {
          value = reader.readField(persistentProperty.getName());
        }
        try {
          wrapper.setProperty(persistentProperty, value);
View Full Code Here


      @Override
      public void doWithPersistentProperty(GemfirePersistentProperty persistentProperty) {
       
        try {
          Object propertyValue = wrapper.getProperty(persistentProperty);
          PdxSerializer customSerializer = getCustomSerializer(persistentProperty.getType());
          if (customSerializer != null) {
            customSerializer.toData(propertyValue, writer);
          } else {
            writer.writeField(persistentProperty.getName(), propertyValue, (Class) persistentProperty.getType());
          }
        }
        catch (Exception e) {
View Full Code Here

    assertNotNull(cacheFactoryBean);
    assertEquals("pdxStore", cacheFactoryBean.getPdxDiskStoreName());
    assertTrue(Boolean.TRUE.equals(cacheFactoryBean.getPdxPersistent()));
    assertTrue(Boolean.TRUE.equals(cacheFactoryBean.getPdxReadSerialized()));

    final PdxSerializer autoSerializer = context.getBean("autoSerializer", PdxSerializer.class);

    assertNotNull(autoSerializer);
    assertSame(autoSerializer, cacheFactoryBean.getPdxSerializer());
  }
View Full Code Here

TOP

Related Classes of com.gemstone.gemfire.pdx.PdxSerializer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.