Examples of PdxSerializer


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

Examples of com.gemstone.gemfire.pdx.PdxSerializer

      @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

Examples of com.gemstone.gemfire.pdx.PdxSerializer

    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
Copyright © 2018 www.massapi.com. 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.