DataSelect
Object Hierarchy:
Description:
[ CCode ( type_id = "gda_data_select_get_type ()" ) ]
public abstract class DataSelect : Object, DataModel
public abstract class DataSelect : Object, DataModel
Namespace: Gda
Package: libgda-5.0
Content:
Properties:
- public bool auto_reset { get; set; }
- public Connection connection { get; construct; }
- public Statement delete_stmt { owned get; set; }
- public Set exec_params { owned get; construct; }
- public double execution_delay { get; set; }
This property stores the execution delay which has been necessary to obtain the data
- public Statement insert_stmt { owned get; set; }
- public uint model_usage { get; construct; }
- public PStmt prepared_stmt { owned get; set; }
- public Statement select_stmt { owned get; }
- public bool store_all_rows { get; set; }
- public Statement update_stmt { owned get; set; }
Static methods:
- public static Quark error_quark ()
Creation methods:
- protected DataSelect ()
Methods:
- public bool compute_columns_attributes () throws Error
Computes correct attributes for each of this 's columns, which includes the "NOT NULL" attribute, the default value, the precision and scale for numeric values.
- public bool compute_modification_statements () throws Error
Makes this try to compute INSERT, UPDATE and DELETE statements to be used when modifying this's contents.
- public bool compute_modification_statements_ext (DataSelectConditionType cond_type) throws Error
Makes this try to compute INSERT, UPDATE and DELETE statements to be used when modifying this's contents.
- public bool compute_row_selection_condition () throws Error
Offers the same features as
gda_data_select_set_row_selection_condition
but the expression is computed from the meta data associated to the connection being used when this was created. - public virtual bool fetch_at (Row prow, int rownum) throws Error
- public virtual int fetch_nb_rows ()
- public virtual bool fetch_next (Row prow, int rownum) throws Error
- public virtual bool fetch_prev (Row prow, int rownum) throws Error
- public virtual bool fetch_random (Row prow, int rownum) throws Error
- public unowned Connection get_connection ()
Get a pointer to the Connection object which was used when this was created (and which may be used internally by this).
- public bool prepare_for_offline () throws Error
Use this method to make sure all the data contained in the data model are stored on the client side (and that no subsquent call to the server will be necessary to access that data), at the cost of a higher memory consumption.
- public bool rerun () throws Error
Requests that this be re-run to have an updated result.
- public bool set_modification_statement (Statement mod_stmt) throws Error
Informs this that it should allow modifications to the data in some columns and some rows using
mod_stmt
to propagate those modifications into the database. - public bool set_modification_statement_sql (string sql) throws Error
Offers the same feature as set_modification_statement but using an SQL statement.
- public bool set_row_selection_condition_sql (string sql_where) throws Error
Specifies the SQL condition corresponding to the WHERE part of a SELECT statement which would return only 1 row (the expression of the primary key).
- public virtual bool store_all () throws Error
Fields:
- public int advertized_nrows
- public int nb_stored_rows
- public unowned PStmt prep_stmt
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface Gda.DataModel