package io.ebeaninternal.server.transaction;
import java.sql.Connection;
public class DocStoreOnlyTransaction extends JdbcTransaction {
public DocStoreOnlyTransaction(String id, boolean explicit, TransactionManager manager) {
super(id, explicit, null, manager);
}
@Override
public boolean isReadOnly() {
return false;
}
@Override
public void setReadOnly(boolean readOnly) {
}
@Override
protected void deactivate() {
}
@Override
public Connection getInternalConnection() {
throw new RuntimeException("not supported on DocStoreTransaction");
}
@Override
public Connection getConnection() {
throw new RuntimeException("not supported on DocStoreTransaction");
}
@Override
protected void performRollback() {
}
@Override
protected void performCommit() {
if (docStoreTxn != null) {
manager.docStoreUpdateProcessor.commit(docStoreTxn);
}
}
}