Sophie

Sophie

distrib > Mandriva > 10.0 > i586 > media > contrib > by-pkgid > a86327fd014dc28b8b792dc8f310a4d6 > files > 102

libhk_classes5-devel-0.6.2a-3mdk.i586.rpm

<HTML>
<HEAD>
<TITLE>Source: hk_classes/hk_classes/hk_actionquery.h</TITLE>

<META NAME="Generator" CONTENT="KDOC ">
</HEAD>
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
<TABLE WIDTH="100%" BORDER="0">
<TR>
<TD>
	<TABLE BORDER="0">
		<TR><TD valign="top" align="left" cellspacing="10">
		<h1>Source: hk_classes/hk_classes/hk_actionquery.h</h1>
		</TD>
		<TD valign="top" align="right" colspan="1"></TD></TR>
	</TABLE>
	<HR>
	<TABLE BORDER="0">
		
	</TABLE>
	</TD>
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR>
<TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR>
<TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR>
<TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR>
<TR><TD><small><A HREF="index.html">Index</A></small></TD></TR>
</TABLE></TD></TR></TABLE>
<pre>
// ****************************************************************************
// copyright (c) 2000-2002 Horst Knorr <hk_classes@knoda.org>
// This file is part of the hk_classes library.
// This file may be distributed and/or modified under the terms of the
// GNU Library Public License version 2 as published by the Free Software
// Foundation and appearing in the file COPYING included in the
// packaging of this file.
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
// ****************************************************************************
#ifndef HK_ACTIONQUERY
#define HK_ACTIONQUERY
#include <hk_data.h>
using namespace std;
class hk_database;
/**
 *
 *@short Action query (i.e. ALTER TABLE) with no result
 *@version $Revision: 1.2 $
 *@author Horst Knorr (hk_classes@knoda.org)
 *
 *In contrary to Result Queries (queries with a SELECT - SQL-statement) action queries manipulate data
 *like ALTER TABLE or INSERT INTO.
 *There is no resulting data.

 */

class hk_actionquery: public hk_data
{
    friend class hk_database;
    friend class hk_datasource;
    public:
        virtual ~hk_actionquery(void);
        enum_datasourcetypes type(void);
/**
 *SQL-serverdependend SQL statement
 * @param s SQL statement.
 * @param l length of the field s. Maybe that there is \0 somewhere in
 * the SQL statement (i.e. BLOB field), so this is necessary.
 */
        void    set_sql(const char*s, unsigned long l);
/**
*convenience function for the above function
*/
        void    set_sql(const hk_string& s);
	const char* sql(void);
        unsigned long length(void);
/**
 *tries to execute the sql statement
 *@return true if it was successful.
 */
        bool    execute(void);

    protected:
        hk_actionquery(hk_database* db);
        virtual bool    driver_specific_execute(void){return false;}
        virtual bool    driver_specific_sql(const char*s);
        virtual void   before_source_vanishes(void);
        const char*     p_sql;
        unsigned long p_length;
    private:
        hk_database* p_database;

};
#endif
</pre>
<HR>
	<table>
	<tr><td><small>Generated by: horst on horstnotebook on Wed Sep 24 10:38:50 2003, using kdoc 2.0a54.</small></td></tr>
	</table>
</BODY>
</HTML>