All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.sylinx.hbatis.plugin.optlock.OptimisticLockPlugin Maven / Gradle / Ivy

The newest version!
package cn.sylinx.hbatis.plugin.optlock;

import cn.sylinx.hbatis.plugin.IPlugin;

public class OptimisticLockPlugin implements IPlugin {

	private boolean enableOptimisticLock = false;

	public void setEnableOptimisticLock(boolean enableOptimisticLock) {
		this.enableOptimisticLock = enableOptimisticLock;
	}

	@Override
	public boolean start(Object... objects) {
		OptimisticLockWrapper.ME.setEnable(enableOptimisticLock);
		return true;
	}

	@Override
	public boolean stop() {
		return true;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy