
com.easycodebox.jdbc.LockMode Maven / Gradle / Ivy
package com.easycodebox.jdbc;
/**
* @author WangXiaoJin
*
*/
public enum LockMode {
NONE("NONE"),
READ("READ"),
WRITE("WRITE"),
/**
* An upgrade lock. Objects loaded in this lock mode are
* materialized using an SQL select ... for update.
*/
UPGRADE("UPGRADE"),
/**
* Attempt to obtain an upgrade lock, using an Oracle-style
* select for update nowait. The semantics of
* this lock mode, once obtained, are the same as
* UPGRADE.
*/
UPGRADE_NOWAIT("UPGRADE_NOWAIT");
private String name;
private LockMode(String name) {
this.name=name;
}
public String getName() {
return name;
}
public String toString() {
return name;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy