【文件属性】:
文件名称:java自动生成Oracle sequence管理类
文件大小:6KB
文件格式:JAVA
更新时间:2017-09-07 17:05:53
Oracle
Oracle自增长主键自动生成类
public static int nextID String table {
if table null
return 1;
table table toLowerCase ;
String strKey table;
if sequences containsKey strKey {
SequenceManager tmp SequenceManager sequences get strKey ;
return tmp nextUniqueID ;
} else {
SequenceManager tmp new SequenceManager table 200 ;
sequences put strKey tmp ;
return tmp nextUniqueID ;
}
}
">Oracle自增长主键自动生成类
public static int nextID String table {
if table null
return 1;
table table toLowerCase ;
String strKey table;
if sequences containsKey strKey {
SequenceManager tmp SequenceManager sequences get strKey ;
return tm [更多]
网友评论
- 好像不大适合我的