提交 161aeb4f 编写于 作者: T tristaZero

add getBuiltinKeyGeneratorType()

上级 5bd5f5c3
......@@ -33,5 +33,20 @@ public enum BuiltinKeyGeneratorType {
UUID(""),
LEAF("");
private final String className;
private final String keyGeneratorClassName;
/**
* get built-in key generator type.
*
* @param keyGeneratorClassName key generator class name
* @return built-in key generator type
*/
public static BuiltinKeyGeneratorType getBuiltinKeyGeneratorType(final String keyGeneratorClassName) {
for (BuiltinKeyGeneratorType each : BuiltinKeyGeneratorType.values()) {
if (each.getKeyGeneratorClassName().equals(keyGeneratorClassName)) {
return each;
}
}
return null;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册