|
|
Choosing A Webhost: |
CVS update of carob/include (Statement.hpp): msg#00107db.carob.cvs
Date: Tuesday, March 21, 2006 @ 18:17:11 Author: marc Path: /cvsroot/carob/carob/include Modified: Statement.hpp (1.37 -> 1.38) hid ugly execute[Query](query, serializedParameters) ParameterStatement methods from public: interface to protected: ---------------+ Statement.hpp | 49 ++++++++++++++++++++++++------------------------- 1 files changed, 24 insertions(+), 25 deletions(-) Index: carob/include/Statement.hpp diff -u carob/include/Statement.hpp:1.37 carob/include/Statement.hpp:1.38 --- carob/include/Statement.hpp:1.37 Tue Mar 21 18:08:01 2006 +++ carob/include/Statement.hpp Tue Mar 21 18:17:11 2006 @@ -96,19 +96,6 @@ { return execute(trim(sql), emptyString); } /** - * Execute a SQL statement with parameters that may return multiple results. - * @param skeleton SQL skeleton statement - * @param parameters SQL parameters - * @return true if the result is a ResultSet or false if it is an integer - * @throw DriverException if the statement is closed - */ - bool execute(const std::wstring &skeleton, const std::wstring ¶meters) - throw (DriverException, - SocketIOException, BackendException, - ControllerException, ProtocolException, - NotImplementedException, UnexpectedException); - - /** * Executes a SQL statement that returns a single ResultSet * @param sql typically a static SQL <code>SELECT</code> statement * @return a ResulSet pointer that contains the data produced by the query @@ -122,18 +109,6 @@ { return executeQuery(trim(sql), emptyString); } /** - * Executes a SQL statement that returns a single ResultSet - * @param skeleton SQL skeleton statement - * @param parameters SQL parameters - * @return a ResulSet pointer that contains the data produced by the query - * @throw DriverException if the statement is closed - */ - DriverResultSet* executeQuery(const std::wstring &skeleton, const std::wstring ¶meters) - throw (DriverException, SocketIOException, - BackendException, ControllerException, - ProtocolException, NotImplementedException, - UnexpectedException); - /** * Execute a SQL INSERT, UPDATE or DELETE statement. In addition SQL * statements that return nothing such as SQL DDL statements can be executed * @param sql a SQL statement @@ -350,6 +325,30 @@ * Returns the pointer to the connection that created us. */ Connection* getConnectionPtr() {return connectionPtr;} + + /** + * Convenience method for derived class ParameterStatement + * @param skeleton SQL skeleton statement + * @param serializedParameters SQL parameters serialized into a string + * @return true if the result is a ResultSet or false if it is an integer + */ + bool execute(const std::wstring &skeleton, const std::wstring ¶meters) + throw (DriverException, + SocketIOException, BackendException, + ControllerException, ProtocolException, + NotImplementedException, UnexpectedException); + /** + * Convenience method for derived class ParameterStatement + * @param skeleton SQL skeleton statement + * @param serializedParameters SQL parameters serialized into a string + * @return a ResulSet pointer that contains the data produced by the query + */ + DriverResultSet* executeQuery(const std::wstring &skeleton, const std::wstring ¶meters) + throw (DriverException, SocketIOException, + BackendException, ControllerException, + ProtocolException, NotImplementedException, + UnexpectedException); + /** * Convenience method for derived class ParameterStatement * @param skeleton SQL skeleton statement
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | CVS update of carob/include (Statement.hpp), marc-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
|---|---|
| Next by Date: | CVS update of carob/include (ParameterStatement.hpp), marc-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Previous by Thread: | CVS update of carob/include (Statement.hpp), marc-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Next by Thread: | CVS update of carob/include (Statement.hpp), marc-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home
| advertise | OSDir is
an inevitable website.
|