Searches an item in the Database, returns the record This method wraps the native ups_db_find function. This function searches the Database for a key. If the key is found, the method will return the record of this item. Database.find can not search for duplicate keys. If the
(Transaction txn, byte[] key)
| 152 | * @return the record of the item |
| 153 | */ |
| 154 | public byte[] find(Transaction txn, byte[] key) |
| 155 | throws DatabaseException { |
| 156 | if (key == null) |
| 157 | throw new NullPointerException(); |
| 158 | return ups_db_find(m_handle, txn != null ? txn.getHandle() : 0, key, 0); |
| 159 | } |
| 160 | |
| 161 | /** |
| 162 | * Searches an item in the Database, returns the record |