2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FIo_DbEnumeratorImpl.h
20 * @brief This is the header file for the %_DbEnumeratorImpl class.
22 * This header file contains declarations of the %_DbEnumeratorImpl class.
25 #ifndef _FIO_INTERNAL_DBSTATEMENT_IMPL_H_
26 #define _FIO_INTERNAL_DBSTATEMENT_IMPL_H_
28 #include <FOspConfig.h>
30 #include <FIoDbStatement.h>
32 namespace Tizen { namespace Base
39 namespace Tizen { namespace Io
45 * @enum _DbStatementType
46 * Defines types of statement.
51 DB_STATEMENT_TYPE_OTHER = 0,
52 DB_STATEMENT_TYPE_SELECT = 1
56 * @class _DbStatementImpl
57 * @brief This class implements the DbStatement.
60 * @see Tizen::Io::DbStatement
62 class _OSP_EXPORT_ _DbStatementImpl
63 : public Tizen::Base::Object
67 _DbStatementImpl(void);
69 virtual ~_DbStatementImpl(void);
71 result BindInt(int columnIndex, int value);
73 result BindInt64(int columnIndex, long long value);
75 result BindDouble(int columnIndex, double value);
77 result BindString(int columnIndex, const Tizen::Base::String& value);
79 result BindBlob(int columnIndex, const Tizen::Base::ByteBuffer& value);
81 result BindBlob(int columnIndex, const void* buffer, int size);
83 result BindDateTime(int columnIndex, const Tizen::Base::DateTime& value);
85 result BindNull(int columnIndex);
87 static _DbStatementImpl* GetInstance(DbStatement& dbStatement);
89 static const _DbStatementImpl* GetInstance(const DbStatement& dbStatement);
91 static DbStatement* CreateDbStatementInstanceN(void);
93 bool __shouldReleaseResource;
94 _DbStatementType __stmtType;
98 friend class _DatabaseImpl;
100 }; //_DbStatementImpl
104 #endif //_FIO_INTERNAL_DBSTATEMENT_IMPL_H_