public TransactionRecover setRecover(int type) {
if (txnRecover == null) {
if (type == TransactionRecover.NORMAL_RECOVER) {
txnRecover = new NormalTransactionRecoverImpl(this);
} else if (type == TransactionRecover.CATASTROPHIC_RECOVER) {
txnRecover = new CatastrophicTxnRecoverImpl(this);
}
}
return txnRecover;
}