01: package simpleorm.core;
02:
03: /**
04: * Basic Select Max style generator.
05: */
06: public class SGeneratorSelectMax extends SGenerator {
07:
08: public SGeneratorSelectMax(SRecordMeta record) {
09: super (record);
10: }
11:
12: protected long generateKey(SRecordMeta meta, SFieldMeta keyField) {
13: SConnection scon = SConnection.getBegunConnection();
14: long key = scon.sDriver.generateKeySelectMax(meta, keyField);
15: return key;
16: }
17: }
|