2#define __DCL_SQL_H__ 20050322
4#ifndef __DCL_OBJECT_H__
11#ifndef __DCL_NUMERIC_H__
14#ifndef __DCL_DATE_TIME_H__
17#ifndef __DCL_INPUT_STREAM_H__
20#ifndef __DCL_OUTPUT_STREAM_H__
24#ifndef __DCL_THREAD_H__
27#ifndef __DCL_ARRAY_H__
33#ifndef __DCL_HASH_MAP_H__
52 const String& name()
const ;
55 const wchar_t* dataTypeName()
const;
56 const wchar_t* serverDataTypeName()
const;
58 short precision()
const;
100 size_t _size = (
size_t)-1
118 const wchar_t* _format =
NULL
189 const wchar_t* _val,
size_t _size,
194 const ByteString& _val,
199 const char* _val,
size_t _size,
225 StringToPointerMap __fieldMap;
243 size_t count()
const;
253 StringToPointerMap __paramMap;
271 size_t count()
const;
353 const String& _connString,
354 const String& _driverName
363 bool setMaxCount(
size_t _idleMax,
size_t _allMax);
365 size_t count()
const;
367 size_t idleCount()
const;
369 void clear(
unsigned _waitSeconds);
409 const wchar_t* _cast,
410 AsErrorCode errorCode
415 const wchar_t* _cast,
#define DECLARE_CLASSINFO(class_name)
Exception(Exception *_cause=NULL)
virtual String toString() const
void open(const String &_connstr) __DCL_THROWS1(SQLException *)
String getServerInfo() __DCL_THROWS1(SQLException *)
SQLDriver * driver() const
SQLConnection(SQLDriver *_driver)
void rollbackTrans() __DCL_THROWS1(SQLException *)
bool inTransaction() const
SQL::Connection * handle() const
SQL::Connection * __handle
void execute(const String &_sql) __DCL_THROWS1(SQLException *)
void commitTrans() __DCL_THROWS1(SQLException *)
void startTrans() __DCL_THROWS1(SQLException *)
void close() __DCL_THROWS1(SQLException *)
String getServerMessage(SQL::Connection *_connHandle)
SQLException(SQLConnection *_conn, Exception *_cause)
void initialize(SQLQuery *_query)
_CONST SQLField & byName(const wchar_t *_name) _CONST __DCL_THROWS1(InvalidIndexException *)
_CONST SQLField & at(size_t _index) const
_CONST SQLField & operator[](size_t _index) const
SQLParam & operator[](size_t _index) const
void initialize(SQLQuery *_query, const StringArray _names)
SQLParam & at(size_t _index) const
SQLParam & byName(const wchar_t *_name) _CONST __DCL_THROWS1(InvalidIndexException *)
void prepare(const String &_sql) __DCL_THROWS1(SQLException *)
SQLQuery(SQLConnection *_conn) __DCL_THROWS1(SQLException *)
_CONST SQLParams & params() _CONST
_CONST SQLFields & fields() _CONST
void execute() __DCL_THROWS1(SQLException *)
int64_t affectedRows() const
SQLConnection * connection() const
void fetch() __DCL_THROWS1(SQLException *)
SQL::Query * handle() const
bool moreResults() __DCL_THROWS1(SQLException *)
SQLConnection * __connection