DataSelect
Object Hierarchy:
Description:
[
CCode ( type_id =
"gda_data_select_get_type ()" ) ]
public class DataSelect :
Object,
DataModel
Content:
Properties:
Static methods:
Creation methods:
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
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 int get_advertized_nrows ()
- 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 int get_nb_stored_rows ()
- public unowned PStmt get_prep_stmt ()
- 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 void set_advertized_nrows (int n)
- 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
- public bool set_row_selection_condition (SqlExpr expr) throws Error
- 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
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface Gda.DataModel