|
DCL 3.7.4
|
#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 *_conn, size_t _connlen) |
| bool | close () |
| bool | execute (const char *_sql, size_t _sqllen) |
| bool | startTrans () |
| bool | commitTrans () |
| bool | rollbackTrans () |
| bool | getErrorMessage (char *_buf, size_t *_buflen) |
| bool | getServerInfo (char *_buf, size_t *_buflen) |
| bool | createQueryInstance (Query **_queryHandle) |
| bool | destroyQueryInstance (Query *_queryHandle) |
| Error | errorCode () const |
| bool | canTransact () const |
| const wchar_t * | serverTitle () const |
| bool | inState (unsigned int _state) 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 | splitConnStr (const char *_connstr, size_t _strlen, ListedByteStringToByteStringMap &_results) |
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 *_conn, 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 **_queryHandle)=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 665 of file SQLCore.cpp.
|
protectedvirtual |
Definition at line 681 of file SQLCore.cpp.
|
protectedpure virtual |
Implemented in IBConnection, IFXConnection, MyConnection, OciConnection, ODBCConnection, PeConnection, PqConnection, and SqConnection.
|
protectedpure virtual |
Implemented in IBConnection, IFXConnection, MyConnection, OciConnection, ODBCConnection, PeConnection, PqConnection, and SqConnection.
|
protectedpure virtual |
Implemented in IBConnection, IFXConnection, MyConnection, OciConnection, ODBCConnection, PeConnection, PqConnection, and SqConnection.
|
protectedpure virtual |
Implemented in IBConnection, IFXConnection, MyConnection, OciConnection, ODBCConnection, PeConnection, PqConnection, and SqConnection.
|
protectedpure virtual |
Implemented in IBConnection, IFXConnection, MyConnection, OciConnection, ODBCConnection, PeConnection, PqConnection, and SqConnection.
|
protectedpure virtual |
Implemented in IBConnection, IFXConnection, MyConnection, OciConnection, ODBCConnection, PeConnection, PqConnection, and SqConnection.
|
protectedpure virtual |
Implemented in IBConnection, IFXConnection, MyConnection, OciConnection, ODBCConnection, PeConnection, PqConnection, and SqConnection.
|
protectedpure virtual |
Implemented in IBConnection, IFXConnection, MyConnection, OciConnection, ODBCConnection, PeConnection, PqConnection, and SqConnection.
|
protectedpure virtual |
Implemented in IBConnection, IFXConnection, MyConnection, OciConnection, ODBCConnection, PeConnection, PqConnection, and SqConnection.
| long SQL::Connection::addRef | ( | ) |
|
inline |
Definition at line 89 of file SQLCore.inl.
| bool SQL::Connection::close | ( | ) |
Definition at line 705 of file SQLCore.cpp.
| bool SQL::Connection::commitTrans | ( | ) |
Definition at line 758 of file SQLCore.cpp.
| bool SQL::Connection::createQueryInstance | ( | SQL::Query ** | _queryHandleOut | ) |
Definition at line 823 of file SQLCore.cpp.
|
pure virtual |
파생클래스에서 new 연산자를 override했거나, 추가적인 행위가 필요하다면 이것도 override하라
Reimplemented from Object.
Implemented in IBConnection, IFXConnection, MyConnection, OciConnection, ODBCConnection, PeConnection, PqConnection, and SqConnection.
| bool SQL::Connection::destroyQueryInstance | ( | SQL::Query * | _queryHandle | ) |
Definition at line 841 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 724 of file SQLCore.cpp.
| bool SQL::Connection::getErrorMessage | ( | char * | _buf, |
| size_t * | _buflen ) |
Definition at line 796 of file SQLCore.cpp.
| bool SQL::Connection::getServerInfo | ( | char * | _buf, |
| size_t * | _buflen ) |
Definition at line 807 of file SQLCore.cpp.
|
inline |
Definition at line 99 of file SQLCore.inl.
| bool SQL::Connection::open | ( | const char * | _conn, |
| size_t | _connlen ) |
Definition at line 686 of file SQLCore.cpp.
|
inline |
| long SQL::Connection::release | ( | ) |
Definition at line 658 of file SQLCore.cpp.
| bool SQL::Connection::rollbackTrans | ( | ) |
Definition at line 777 of file SQLCore.cpp.
|
inline |
Definition at line 94 of file SQLCore.inl.
|
static |
Definition at line 862 of file SQLCore.cpp.
| bool SQL::Connection::startTrans | ( | ) |
Definition at line 739 of file SQLCore.cpp.
| _PROTECTED SQL::Connection::__pad0__ |
| _PROTECTED const wchar_t* SQL::Connection::_filename |
| _PROTECTED const wchar_t int SQL::Connection::_line |