|
DCL 4.1
|
#include <SQLCore.h>
Public Types | |
| enum | State { stClosed = 0x0001 , stOpenned = 0x0002 , stInTransaction = 0x0004 } |
Public Member Functions | |
| long | refCount () const |
| long | addRef () |
| long | release () |
| bool | open (const char *_connString, size_t _connlen) |
| bool | close () |
| bool | execute (const char *_sql, size_t _sqllen) |
| bool | startTrans () |
| bool | commitTrans () |
| bool | rollbackTrans () |
| bool | getErrorMessage (char *_pbuf, size_t *_pn) |
| bool | getServerInfo (char *_pbuf, size_t *_pn) |
| bool | createQueryInstance (Query **_queryHandleOut) |
| bool | destroyQueryInstance (Query *_queryHandle) |
| Error | errorCode () const |
| bool | canTransact () const |
| const wchar_t * | serverTitle () const |
| bool | inState (unsigned int uState) const |
| virtual void | destroy ()=0 |
| Public Member Functions inherited from Object | |
| virtual String | toString () const |
| String | className () const |
| bool | isInstanceOf (const std::type_info &typeinfo) const |
| virtual const std::type_info & | typeInfo () const |
Static Public Member Functions | |
| static size_t | splitConnectionString (const char *_connString, size_t _strlen, ListedByteStringToByteStringMap &_map) |
Public Attributes | |
| __PROTECTED | : void setErrorStatus(Error _errorCode |
| __PROTECTED const wchar_t * | _filename |
| __PROTECTED const wchar_t int | _line |
Protected Member Functions | |
| Connection (const wchar_t *_serverTitle) | |
| virtual | ~Connection () |
| virtual bool | __open (const char *_connString, size_t _connlen)=0 |
| virtual bool | __close ()=0 |
| virtual bool | __execute (const char *_sql, size_t _sqllen)=0 |
| virtual bool | __startTrans ()=0 |
| virtual bool | __commitTrans ()=0 |
| virtual bool | __rollbackTrans ()=0 |
| virtual bool | __createQueryInstance (Query **_queryHandleOut)=0 |
| virtual bool | __getErrorMessage (char *_buf, size_t *_buflen)=0 |
| virtual bool | __getServerInfo (char *_buf, size_t *_buflen)=0 |
| Protected Member Functions inherited from Object | |
| virtual | ~Object () |
| Object () | |
Protected Attributes | |
| bool | __canTransact |
| const wchar_t * | __serverTitle |
| Error | __errorCode |
| const wchar_t * | __errorFileName |
| int | __errorLine |
| unsigned int | __states |
| Enumerator | |
|---|---|
| stClosed | |
| stOpenned | |
| stInTransaction | |
|
protected |
Definition at line 646 of file SQLCore.cpp.
|
protectedvirtual |
Definition at line 662 of file SQLCore.cpp.
|
protectedpure virtual |
Implemented in IBConnection, IFXConnection, MyConnection, OciConnection, and PgConnection.
|
protectedpure virtual |
Implemented in IBConnection, IFXConnection, MyConnection, OciConnection, and PgConnection.
|
protectedpure virtual |
Implemented in IBConnection, IFXConnection, MyConnection, OciConnection, and PgConnection.
|
protectedpure virtual |
Implemented in IBConnection, IFXConnection, MyConnection, OciConnection, and PgConnection.
|
protectedpure virtual |
Implemented in IBConnection, IFXConnection, MyConnection, OciConnection, and PgConnection.
|
protectedpure virtual |
Implemented in IBConnection, IFXConnection, MyConnection, OciConnection, and PgConnection.
|
protectedpure virtual |
Implemented in IBConnection, IFXConnection, MyConnection, OciConnection, and PgConnection.
|
protectedpure virtual |
Implemented in IBConnection, IFXConnection, MyConnection, OciConnection, and PgConnection.
|
protectedpure virtual |
Implemented in IBConnection, IFXConnection, MyConnection, OciConnection, and PgConnection.
| long SQL::Connection::addRef | ( | ) |
|
inline |
Definition at line 89 of file SQLCore.inl.
| bool SQL::Connection::close | ( | ) |
Definition at line 686 of file SQLCore.cpp.
| bool SQL::Connection::commitTrans | ( | ) |
Definition at line 739 of file SQLCore.cpp.
| bool SQL::Connection::createQueryInstance | ( | SQL::Query ** | _queryHandleOut | ) |
Definition at line 804 of file SQLCore.cpp.
|
pure virtual |
파생클래스에서 new 연산자를 override했거나, 추가적인 행위가 필요하다면 이것도 override하라
Reimplemented from Object.
Implemented in IBConnection, IFXConnection, MyConnection, OciConnection, and PgConnection.
| bool SQL::Connection::destroyQueryInstance | ( | SQL::Query * | _queryHandle | ) |
Definition at line 822 of file SQLCore.cpp.
|
inline |
Definition at line 72 of file SQLCore.inl.
| bool SQL::Connection::execute | ( | const char * | _sql, |
| size_t | _sqllen ) |
Definition at line 705 of file SQLCore.cpp.
| bool SQL::Connection::getErrorMessage | ( | char * | _pbuf, |
| size_t * | _pn ) |
Definition at line 777 of file SQLCore.cpp.
| bool SQL::Connection::getServerInfo | ( | char * | _pbuf, |
| size_t * | _pn ) |
Definition at line 788 of file SQLCore.cpp.
|
inline |
Definition at line 99 of file SQLCore.inl.
| bool SQL::Connection::open | ( | const char * | _connString, |
| size_t | _connlen ) |
Definition at line 667 of file SQLCore.cpp.
|
inline |
| long SQL::Connection::release | ( | ) |
Definition at line 639 of file SQLCore.cpp.
| bool SQL::Connection::rollbackTrans | ( | ) |
Definition at line 758 of file SQLCore.cpp.
|
inline |
Definition at line 94 of file SQLCore.inl.
|
static |
Definition at line 843 of file SQLCore.cpp.
| bool SQL::Connection::startTrans | ( | ) |
Definition at line 720 of file SQLCore.cpp.
| __PROTECTED SQL::Connection::__pad0__ |
| __PROTECTED const wchar_t* SQL::Connection::_filename |
| __PROTECTED const wchar_t int SQL::Connection::_line |