getNextValue method
Implementation
int getNextValue(String sequenceName, [int incrementBy = 1]) {
var result = 0;
final q = TCustomSQLQuery(null);
try {
q.database = this;
q.transaction = _sqlTransaction;
q.sql.text = getNextValueSQL(sequenceName, incrementBy);
q.open();
if (!q.eof) {
result = q.fields[0].asLargeInt;
}
q.close();
} finally {
q.free();
}
return result;
}