ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
run () | |
Fire your Queries. More... | |
![]() | |
__construct (ilDBInterface $ilDBInstance, int $isolation_level=ilAtomQuery::ISOLATION_SERIALIZABLE) | |
ilAtomQuery constructor. More... | |
getRisks () | |
addTableLock (string $table_name) | |
Add table-names which are influenced by your queries, MyISAm has to lock those tables. More... | |
addQueryCallable (callable $query) | |
All action on the database during this isolation has to be passed as Callable to ilAtomQuery. More... | |
replaceQueryCallable (callable $query) | |
run () | |
Fire your Queries. More... | |
getIsolationLevel () | |
checkCallable (callable $query) | |
![]() | |
addTableLock (string $table_name) | |
Add table-names which are influenced by your queries, MyISAm has to lock those tables. More... | |
addQueryCallable (callable $query) | |
Every action on the database during this isolation has to be passed as Callable to ilAtomQuery. More... | |
replaceQueryCallable (callable $query) | |
Every action on the database during this isolation has to be passed as Callable to ilAtomQuery. More... | |
getIsolationLevel () | |
Returns the current Isolation-Level. More... | |
checkCallable (callable $query) | |
Provides a check if your callable is ready to be used in ilAtomQuery. More... | |
Protected Member Functions | |
runWithLocks () | |
getLocksForDBInstance () | |
![]() | |
getDeterminedLockLevel () | |
checkQueries () | |
hasWriteLocks () | |
runQueries () | |
checkBeforeRun () | |
Protected Attributes | |
array | $locked_table_full_names = [] |
array | $locked_table_names = [] |
![]() | |
const | ITERATIONS = 10 |
int | $isolation_level = ilAtomQuery::ISOLATION_SERIALIZABLE |
array | $tables = array() |
$query | |
ilDBInterface | $ilDBInstance |
Additional Inherited Members | |
![]() | |
static | isThereRiskThat (int $isolation_level, int $anomaly) |
static | getPossibleAnomalies (int $isolation_level) |
static | checkIsolationLevel (int $isolation_level) |
static | checkAnomaly (int $anomaly) |
![]() | |
static | checkIsolationLevel (int $isolation_level) |
![]() | |
const | LOCK_WRITE = 1 |
const | LOCK_READ = 2 |
const | ISOLATION_READ_UNCOMMITED = 1 |
const | ISOLATION_READ_COMMITED = 2 |
const | ISOLATION_REPEATED_READ = 3 |
const | ISOLATION_SERIALIZABLE = 4 |
const | ANO_LOST_UPDATES = 1 |
const | ANO_DIRTY_READ = 2 |
const | ANO_NON_REPEATED_READ = 3 |
const | ANO_PHANTOM = 4 |
![]() | |
static array | $available_isolations_levels |
static array | $possible_anomalies |
static array | $anomalies_map |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilAtomQueryLock
Definition at line 28 of file class.ilAtomQueryLock.php.
|
protected |
Definition at line 72 of file class.ilAtomQueryLock.php.
References $locked_table_names, and ilAtomQueryException\DB_ATOM_IDENTICAL_TABLES.
Referenced by runWithLocks().
ilAtomQueryLock::run | ( | ) |
Fire your Queries.
Implements ilAtomQuery.
Definition at line 45 of file class.ilAtomQueryLock.php.
References ilAtomQueryBase\checkBeforeRun(), and runWithLocks().
|
protected |
Definition at line 55 of file class.ilAtomQueryLock.php.
References Vendor\Package\$e, getLocksForDBInstance(), and ilAtomQueryBase\runQueries().
Referenced by run().
|
protected |
Definition at line 33 of file class.ilAtomQueryLock.php.
|
protected |
Definition at line 37 of file class.ilAtomQueryLock.php.
Referenced by getLocksForDBInstance().