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 [更多]