ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
interface.ilAtomQuery.php
Go to the documentation of this file.
1<?php
2require_once('./Services/Database/exceptions/exception.ilAtomQueryException.php');
3
12interface ilAtomQuery
13{
14
15 // Lock levels
16 const LOCK_WRITE = 1;
17 const LOCK_READ = 2;
18 // Isolation-Levels
23 // Anomalies
25 const ANO_DIRTY_READ = 2;
27 const ANO_PHANTOM = 4;
28
29
41 public function addTableLock($table_name);
42
43
64 public function addQueryCallable(callable $query);
65
66
87 public function replaceQueryCallable(callable $query);
88
89
95 public function run();
96
97
102 public static function checkIsolationLevel($isolation_level);
103
104
110 public function getIsolationLevel();
111
112
119 public function checkCallable(callable $query);
120}
An exception for terminatinating execution or to throw for unit testing.
Interface ilAtomQuery.
getIsolationLevel()
Returns the current Isolation-Level.
run()
Fire your Queries.
addTableLock($table_name)
Add table-names which are influenced by your queries, MyISAm has to lock those tables.
checkCallable(callable $query)
Provides a check if your callable is ready to be used in ilAtomQuery.
addQueryCallable(callable $query)
Every action on the database during this isolation has to be passed as Callable to ilAtomQuery.
replaceQueryCallable(callable $query)
Every action on the database during this isolation has to be passed as Callable to ilAtomQuery.
static checkIsolationLevel($isolation_level)
$query