My Project
transaction.h
00001 /* Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
00002 
00003    This program is free software; you can redistribute it and/or modify
00004    it under the terms of the GNU General Public License as published by
00005    the Free Software Foundation; version 2 of the License.
00006 
00007    This program is distributed in the hope that it will be useful,
00008    but WITHOUT ANY WARRANTY; without even the implied warranty of
00009    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010    GNU General Public License for more details.
00011 
00012    You should have received a copy of the GNU General Public License
00013    along with this program; if not, write to the Free Software Foundation,
00014    51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
00015 
00016 #ifndef TRANSACTION_H
00017 #define TRANSACTION_H
00018 
00019 #include <my_global.h>
00020 #include <m_string.h>
00021 
00022 class THD;
00023 
00024 bool trans_check_state(THD *thd);
00025 
00026 bool trans_begin(THD *thd, uint flags= 0);
00027 bool trans_commit(THD *thd);
00028 bool trans_commit_implicit(THD *thd);
00029 bool trans_rollback(THD *thd);
00030 bool trans_rollback_implicit(THD *thd);
00031 
00032 bool trans_commit_stmt(THD *thd);
00033 bool trans_rollback_stmt(THD *thd);
00034 
00035 bool trans_savepoint(THD *thd, LEX_STRING name);
00036 bool trans_rollback_to_savepoint(THD *thd, LEX_STRING name);
00037 bool trans_release_savepoint(THD *thd, LEX_STRING name);
00038 
00039 bool trans_xa_start(THD *thd);
00040 bool trans_xa_end(THD *thd);
00041 bool trans_xa_prepare(THD *thd);
00042 bool trans_xa_commit(THD *thd);
00043 bool trans_xa_rollback(THD *thd);
00044 
00045 #endif /* TRANSACTION_H */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines