Insert

Add new rows 

Only Entities are allowed to be inserted.

Basically there are two ways to insert an entity.

First is by using QueryTarget method insert.

If your entity has a PrimaryKey, you are allowed to invoke entity method to insert:

Take a look into execute() method.

If you use execute() without any parameter, Daobab executes insert into independent transaction.

Use execute(boolean transaction) if you want to use independent transaction as above (true) or you have already opened transaction and you want to do it without transaction (false)

Method execute(Propagation propagation) if you want to handle transaction propagation. Take a look into Transaction page for details.

Share This Page

FACEBOOK COMMENTS WILL BE SHOWN ONLY WHEN YOUR SITE IS ONLINE

©Elephant Software Klaudiusz Wojtkowiak
e-mail: contact@daobab.io