Class JdoDataStoreFactory

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  JdoDataStoreFactory.JdoDataStore<V extends java.io.Serializable>  
      (package private) static class  JdoDataStoreFactory.JdoValue
      JDO value class that contains the key-value pair, as well as the data store ID.
      (package private) static class  JdoDataStoreFactory.PrivateUtils
      Package private utilities class so the classes here isn't considered to be an external part of the library.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.jdo.PersistenceManagerFactory persistenceManagerFactory
      Persistence manager factory.
    • Constructor Summary

      Constructors 
      Constructor Description
      JdoDataStoreFactory​(javax.jdo.PersistenceManagerFactory persistenceManagerFactory)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected <V extends java.io.Serializable>
      DataStore<V>
      createDataStore​(java.lang.String id)
      Returns a new instance of a type-specific data store based on the given unique ID.
      • Methods inherited from class java.lang.Object

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

      • persistenceManagerFactory

        private final javax.jdo.PersistenceManagerFactory persistenceManagerFactory
        Persistence manager factory.
    • Constructor Detail

      • JdoDataStoreFactory

        public JdoDataStoreFactory​(javax.jdo.PersistenceManagerFactory persistenceManagerFactory)
    • Method Detail

      • createDataStore

        protected <V extends java.io.Serializable> DataStore<V> createDataStore​(java.lang.String id)
                                                                         throws java.io.IOException
        Description copied from class: AbstractDataStoreFactory
        Returns a new instance of a type-specific data store based on the given unique ID.

        The DataStore.getId() must match the id parameter from this method.

        Specified by:
        createDataStore in class AbstractDataStoreFactory
        Type Parameters:
        V - serializable type of the mapped value
        Parameters:
        id - unique ID to refer to typed data store
        Throws:
        java.io.IOException