class TransactionStatus {

    public void setTransactionType(final TransactionType transactionType) {
        if (inTransaction) {
            throw new ShardingSphereException("Failed to switch transaction type, please terminate current transaction.");
        }
        this.transactionType = transactionType;
    }

    public  TransactionStatus(final TransactionType initialTransactionType);

}