Class JdoDataStoreFactory
java.lang.Object
com.google.api.client.util.store.AbstractDataStoreFactory
com.google.api.client.extensions.jdo.JdoDataStoreFactory
- All Implemented Interfaces:
DataStoreFactory
Thread-safe JDO implementation of a data store factory.
- Since:
- 1.16
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
(package private) static class
JDO value class that contains the key-value pair, as well as the data store ID.(package private) static class
Package private utilities class so the classes here isn't considered to be an external part of the library. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final javax.jdo.PersistenceManagerFactory
Persistence manager factory. -
Constructor Summary
ConstructorsConstructorDescriptionJdoDataStoreFactory
(javax.jdo.PersistenceManagerFactory persistenceManagerFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected <V extends Serializable>
DataStore<V> Returns a new instance of a type-specific data store based on the given unique ID.Methods inherited from class com.google.api.client.util.store.AbstractDataStoreFactory
getDataStore
-
Field Details
-
persistenceManagerFactory
private final javax.jdo.PersistenceManagerFactory persistenceManagerFactoryPersistence manager factory.
-
-
Constructor Details
-
JdoDataStoreFactory
public JdoDataStoreFactory(javax.jdo.PersistenceManagerFactory persistenceManagerFactory)
-
-
Method Details
-
createDataStore
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 theid
parameter from this method.- Specified by:
createDataStore
in classAbstractDataStoreFactory
- Type Parameters:
V
- serializable type of the mapped value- Parameters:
id
- unique ID to refer to typed data store- Throws:
IOException
-