DCL 4.0
Loading...
Searching...
No Matches
SQLCore.inl
Go to the documentation of this file.
1#ifndef __DCL_SQLCORE_H__
2 #error "Never use <dcl/SQLCore.inl> directly; include <dcl/core/SQLCore.h> instead."
3#endif
4#ifndef __DCL_SQLCORE_INL__
5#define __DCL_SQLCORE_INL__
6
8
9inline const String& SQL::Field::name() const
10{
11 return __name;
12}
13
14inline SQL::DataType SQL::Field::dataType() const
15{
16 return __dataType;
17}
18
19inline short SQL::Field::precision() const
20{
21 return __precision;
22}
23
24inline short SQL::Field::scale() const
25{
26 return __scale;
27}
28
29inline SQL::Connection* SQL::Field::connection() const
30{
31 return __queryHandle->connection();
32}
33
35
36inline bool SQL::Query::eof() const
37{
38 return __eof;
39}
40
41inline int64_t SQL::Query::affectedRows() const
42{
43 return __affectedRows;
44}
45
46inline size_t SQL::Query::fieldCount() const
47{
48 return __fieldCount;
49}
50
51inline size_t SQL::Query::paramCount() const
52{
53 return __paramCount;
54}
55
56inline wchar_t SQL::Query::placeholder() const
57{
58 return __placeholder;
59}
60
61inline SQL::Connection* SQL::Query::connection() const
62{
63 return __connHandle;
64}
65
66inline bool SQL::Query::inState(unsigned int _state) const
67{
68 return (__states & _state) == _state;
69}
70
73{
74 return __errorCode;
75}
76
77#if __DCL_DEBUG
78inline const wchar_t* SQL::Connection::errorFileName() const
79{
80 return __errorFileName;
81}
82
83inline int SQL::Connection::errorLine() const
84{
85 return __errorLine;
86}
87#endif
88
89inline bool SQL::Connection::canTransact() const
90{
91 return __canTransact;
92}
93
94inline const wchar_t* SQL::Connection::serverTitle() const
95{
96 return __serverTitle;
97}
98
99inline bool SQL::Connection::inState(unsigned int _state) const
100{
101 return (__states & _state) == _state;
102}
103
104#endif // __DCL_SQLCORE_INL__
bool __canTransact
Definition SQLCore.h:371
const wchar_t * serverTitle() const
Definition SQLCore.inl:94
const wchar_t * __serverTitle
Definition SQLCore.h:372
unsigned int __states
Definition SQLCore.h:379
bool canTransact() const
Definition SQLCore.inl:89
bool inState(unsigned int uState) const
Definition SQLCore.inl:99
Error __errorCode
Definition SQLCore.h:374
Error errorCode() const
Definition SQLCore.inl:72
String __name
Definition SQLCore.h:183
DataType
Definition SQLCore.h:62
Error
Definition SQLCore.h:19