Class JdoDataStoreFactory.JdoValue

  • Enclosing class:
    JdoDataStoreFactory

    static class JdoDataStoreFactory.JdoValue
    extends java.lang.Object
    JDO value class that contains the key-value pair, as well as the data store ID.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] bytes
      Byte array of value.
      private java.lang.String id
      Data store ID.
      private java.lang.String key
      Key.
    • Constructor Summary

      Constructors 
      Constructor Description
      JdoValue()  
      JdoValue​(java.lang.String id, java.lang.String key, V value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) <V extends java.io.Serializable>
      V
      deserialize()  
      (package private) java.lang.String getKey()  
      (package private) <V extends java.io.Serializable>
      void
      serialize​(V value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • key

        private java.lang.String key
        Key.
      • id

        private java.lang.String id
        Data store ID.
      • bytes

        private byte[] bytes
        Byte array of value.
    • Constructor Detail

      • JdoValue

        JdoValue()
      • JdoValue

        JdoValue​(java.lang.String id,
                 java.lang.String key,
                 V value)
          throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • serialize

        <V extends java.io.Serializable> void serialize​(V value)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • deserialize

        <V extends java.io.Serializable> V deserialize()
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • getKey

        java.lang.String getKey()