The only thing I disagree with is returning the internal number. 0 means it has not been set.
Dave Cramer
pgsql-jdbc by date:
Соглашаюсь с условиями обработки персональных данных