Creating a New Entity Row (continued)
composed child entity row using this API, you must supply the value of a composing parent entity’s foreign key attribute in the AttributeList object passed as the second argument. Failure to do so results in an InvalidOwnerException.
3. Set attribute values: Use the setAttribute() method on the entity object to assign values for the Name and Description attributes in the new entity row.
4. Commit the transaction: Call commit() on the current transaction object to commit the transaction.
5. Return the trigger-assigned product ID to the caller: Use getAttribute() to retrieve the ProdId attribute as a DBSequence, then call getSequenceNumber().longValue() to return the sequence number as a long value to the caller.