// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
* Initializes this instance of %Database with the specified parameters. @n
* This method creates a new database file or opens an existing database file in the read-write mode.
*
* Initializes this instance of %Database with the specified parameters. @n
* This method creates a new database file or opens an existing database file in the read-write mode.
*
* @remarks To open the database file in the read-only mode,
* use the Database::Construct(const Tizen::Base::String& dbPath, const char* pOpenMode) method
* with "r" as the value for the open mode flag.
* @remarks To open the database file in the read-only mode,
* use the Database::Construct(const Tizen::Base::String& dbPath, const char* pOpenMode) method
* with "r" as the value for the open mode flag.
* Initializes this instance of %Database with the specified parameters. @n
* This method creates a new database file or opens an existing database file in the read-only or the read-write mode.
*
* Initializes this instance of %Database with the specified parameters. @n
* This method creates a new database file or opens an existing database file in the read-only or the read-write mode.
*
* - The method has failed to open or create a file. @n
* - An unexpected device failure has occurred as the media ejected suddenly. @n
* - %File corruption is detected.
* - The method has failed to open or create a file. @n
* - An unexpected device failure has occurred as the media ejected suddenly. @n
* - %File corruption is detected.
* - %File corruption is detected. @n
* @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature. For more information, see
* <a href="../org.tizen.gettingstarted/html/tizen_overview/application_filtering.htm">Application Filtering</a>.
* - %File corruption is detected. @n
* @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature. For more information, see
* <a href="../org.tizen.gettingstarted/html/tizen_overview/application_filtering.htm">Application Filtering</a>.
*/
result Construct(const Tizen::Base::String& dbPath, const char* pOpenMode, const Tizen::Base::ByteBuffer& secretKey);
*/
result Construct(const Tizen::Base::String& dbPath, const char* pOpenMode, const Tizen::Base::ByteBuffer& secretKey);
* @exception E_SYSTEM The method cannot proceed due to a severe system error.
* @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature. For more information, see
* <a href="../org.tizen.gettingstarted/html/tizen_overview/application_filtering.htm">Application Filtering</a>.
* @exception E_SYSTEM The method cannot proceed due to a severe system error.
* @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature. For more information, see
* <a href="../org.tizen.gettingstarted/html/tizen_overview/application_filtering.htm">Application Filtering</a>.
*/
static result ConvertToSecureDatabase(const Tizen::Base::String& normalDbPath, const Tizen::Base::String& secureDbPath,
const Tizen::Base::ByteBuffer& secretKey);
*/
static result ConvertToSecureDatabase(const Tizen::Base::String& normalDbPath, const Tizen::Base::String& secureDbPath,
const Tizen::Base::ByteBuffer& secretKey);