dcsimg

How do I find out if my database supports row ids?

John Zukowski

The Java 6 DatabaseMetaData class has a getRowIdLifetime() method that returns a RowIdLifetime, which has an enumeration of possible values:

  • ROWID_UNSUPPORTED
  • ROWID_VALID_FOREVER
  • ROWID_VALID_SESSION
  • ROWID_VALID_TRANSACTION
  • ROWID_VALID_OTHER