![JAR search and dependency download from the Maven repository](/logo.png)
com.yahoo.elide.datastores.multiplex.MultiplexReadTransaction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elide-datastore-multiplex Show documentation
Show all versions of elide-datastore-multiplex Show documentation
Elide entity manager for multiple data store support
The newest version!
/*
* Copyright 2015, Yahoo Inc.
* Licensed under the Apache License, Version 2.0
* See LICENSE file in project root for terms.
*/
package com.yahoo.elide.datastores.multiplex;
import com.yahoo.elide.core.RequestScope;
import com.yahoo.elide.core.datastore.DataStore;
import com.yahoo.elide.core.datastore.DataStoreTransaction;
/**
* Multiplex transaction handler.
*/
public class MultiplexReadTransaction extends MultiplexTransaction {
public MultiplexReadTransaction(MultiplexManager multiplexManager) {
super(multiplexManager);
}
@Override
protected DataStoreTransaction beginTransaction(DataStore dataStore) {
// begin read transaction
return dataStore.beginReadTransaction();
}
@Override
public void save(T entity, RequestScope scope) {
throw new UnsupportedOperationException();
}
@Override
public void delete(T entity, RequestScope scope) {
throw new UnsupportedOperationException();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy