2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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.
17 * @file orm_interface.h
18 * @author Lukasz Marek (l.marek@samsung.com)
23 #include <dpl/db/sql_connection.h>
25 #ifndef DPL_ORM_INTERFACE_H
26 #define DPL_ORM_INTERFACE_H
38 virtual ~IOrmInterface() {}
39 virtual DPL::DB::SqlConnection::DataCommand *AllocDataCommand(const std::string &statement) = 0;
40 virtual void FreeDataCommand(DPL::DB::SqlConnection::DataCommand *command) = 0;
41 virtual void TransactionBegin() = 0;
42 virtual void TransactionCommit() = 0;
43 virtual void TransactionRollback() = 0;
44 virtual DPL::DB::SqlConnection::RowID GetLastInsertRowID() = 0;