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
/*
* 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.DataStore;
import com.yahoo.elide.core.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(Object object) {
throw new UnsupportedOperationException();
}
@Override
public void delete(Object object) {
throw new UnsupportedOperationException();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy