//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
virtual ~Database(void);
/**
- * @if OSPDEPREC
- * @{
+ * @cond OSPDEPREC
* 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.
- * @}
- * @endif
+ * @endcond
*/
result Construct(const Tizen::Base::String& dbPath, bool createIfNotExist);
/**
- * @if OSPDEPREC
- * @{
+ * @cond OSPDEPREC
* 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.
- * @}
- * @endif
+ * @endcond
*/
result Construct(const Tizen::Base::String& dbPath, long openMode, long option);
* identical key value in same device. However, the secure files created by this method cannot be accessed in other devices.
*
* @since 2.0
+ * @feature %http://tizen.org/feature/database.encryption
*
* @return An error code
* @param[in] dbPath The path of the database file to open or create
* @exception E_IO Either of the following conditions has occurred: @n
* - An unexpected device failure has occurred as the media ejected suddenly. @n
* - %File corruption is detected. @n
- * @exception E_UNSUPPORTED_OPERATION This operation is not supported.
+ * @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>.
+ * @remarks Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
*/
result Construct(const Tizen::Base::String& dbPath, const char* pOpenMode, const Tizen::Base::ByteBuffer& secretKey);
* For path compatibility, see @ref CompIoPathPage "here".
* For exception compatibility, see @ref CompDatabaseExceptionPage "here".
* @endif
+ * @feature %http://tizen.org/feature/database.encryption
*
* @return An error code
* @param[in] normalDbPath The normal (non-encrypted) database file path
* - An unexpected device failure has occurred as the media ejected suddenly. @n
* - %File corruption is detected.
* @exception E_SYSTEM The method cannot proceed due to a severe system error.
- * @exception E_UNSUPPORTED_OPERATION This operation is not supported.
+ * @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>.
+ * @remarks Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
*/
static result ConvertToSecureDatabase(const Tizen::Base::String& normalDbPath, const Tizen::Base::String& secureDbPath,
const Tizen::Base::ByteBuffer& secretKey);