function getSequence($table)
{
if (isset($this->sequences[$table])) {
return $this->sequences[$table];
}
$primary = $this->getPrimary($table);
if (is_array($primary)) {
return null;
}
$table = $this->rewriteTable($table);
return $table . '_' . $primary . '_seq';
}