code: public Object storeObject(Object object)
      {
          /* One possibility of storing objects is to use the current transaction
           associated with the container */
          try
          {
              TransactionExt tx = (TransactionExt) odmg.currentTransaction();
              tx.lock(object, Transaction.WRITE);
              tx.markDirty(object);
          }
          catch (LockNotGrantedException e)
          {
              log.error("Failure while storing object " + object, e);
              throw new EJBException("Failure while storing object", e);
          }
          return object;
      }
docs: Store an object.