class BackendTransactionManager implements TransactionManager {

    @Override
    public void commit() throws SQLException {
        if (connection.getTransactionStatus().isInTransaction()) {
            try {
                if (TransactionType.LOCAL == transactionType || null == shardingTransactionManager) {
                    localTransactionManager.commit();
                } else {
                    shardingTransactionManager.commit();
                }
            } finally {
                connection.getTransactionStatus().setInTransaction(false);
            }
        }
    }

    public  BackendTransactionManager(final BackendConnection backendConnection);

}