New DO can be created using <table_name>DO.java class method createVirgin with the one of the parameter combinations:
createVirgin([DBTransaction dbTrans])
or
createVirgin(String dbName)
This method creates a DO that has no data set. Such a DO is used to insert a new database entry after its data had been set.
The parameter dbTrans can also be optional, but this option depends on DirtyDOs parameter value.
DirtyDOs is parameter of 'database' and 'table' tag in DOML file. DODS source code generating depends on its value.
If DirtyDOs is set to "Deprecate", methods without dbTrans parameter are deprecated.
If DirtyDOs is set to "Omit" methods without dbTrans parameter are not generated at all.
If DirtyDOs is set to "Compatible", the methods will be generated as before.
Default value for DirtyDOs is "Compatible".
After the DO is created using the method createVirgin, and its data set, method of <table_name>DO.java class:
public void save([DBTransaction dbt],[boolean references])
is used for inserting DO to the transaction.