compute_dml_statements


Description:


public bool compute_dml_statements (Connection cnc, Statement select_stmt, bool require_pk, owned Statement? insert_stmt, owned Statement? update_stmt, owned Statement? delete_stmt) throws Error

Creates an INSERT, an UPDATE and a DELETE statement from a SELECT statement using the database metadata available in cnc's meta store.

Each statements are computed only if the corresponding place to store the created statement is not null.

Parameters:

cnc

a Connection

select_stmt

a SELECT Statement (compound statements not handled)

require_pk

TRUE if the created statement have to use a primary key

insert_stmt

a place to store the created INSERT statement, or null

update_stmt

a place to store the created UPDATE statement, or null

delete_stmt

a place to store the created DELETE statement, or null

Returns:

true if no error occurred


Namespace: Gda
Package: libgda-5.0