create_insert_query


Description:

public static SqlCommandInsert create_insert_query (DataObject obj) throws Error

Creates an SqlCommandInsert to INSERT a DataObject

Only properties with a nickname as the form '@param_name' prefix are considered as parameters,where 'param_name' is the parameter name used and added.

Use the returned object and modify at your needs, then create a PreparedQuery using SqlCommandInsert.to_query so you can use Query.execute to run your command.