2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
18 * @file FIo_DbEnumeratorImpl.h
19 * @brief This is the header file for the %_DbEnumeratorImpl class.
21 * This header file contains declarations of the %_DbEnumeratorImpl class.
24 #ifndef _FIO_INTERNAL_DBSTATEMENT_IMPL_H_
25 #define _FIO_INTERNAL_DBSTATEMENT_IMPL_H_
27 #include <FOspConfig.h>
29 #include <FIoDbStatement.h>
31 namespace Tizen { namespace Base
38 namespace Tizen { namespace Io
44 * @enum _DbStatementType
45 * Defines types of statement.
50 DB_STATEMENT_TYPE_OTHER = 0,
51 DB_STATEMENT_TYPE_SELECT = 1
55 * @class _DbStatementImpl
56 * @brief This class implements the DbStatement.
59 * @see Tizen::Io::DbStatement
61 class _OSP_EXPORT_ _DbStatementImpl
62 : public Tizen::Base::Object
66 _DbStatementImpl(void);
68 virtual ~_DbStatementImpl(void);
70 result BindInt(int columnIndex, int value);
72 result BindInt64(int columnIndex, long long value);
74 result BindDouble(int columnIndex, double value);
76 result BindString(int columnIndex, const Tizen::Base::String& value);
78 result BindBlob(int columnIndex, const Tizen::Base::ByteBuffer& value);
80 result BindBlob(int columnIndex, const void* buffer, int size);
82 result BindDateTime(int columnIndex, const Tizen::Base::DateTime& value);
84 result BindNull(int columnIndex);
86 static _DbStatementImpl* GetInstance(DbStatement& dbStatement);
88 static const _DbStatementImpl* GetInstance(const DbStatement& dbStatement);
90 static DbStatement* CreateDbStatementInstanceN(void);
92 bool __shouldReleaseResource;
93 _DbStatementType __stmtType;
97 friend class _DatabaseImpl;
103 #endif //_FIO_INTERNAL_DBSTATEMENT_IMPL_H_