[icinga-checkins] icinga.org: icinga-web/jmosshammer/default: * Created custom adapter for oracle and fixed several model issues

git at icinga.org git at icinga.org
Sat Jul 9 10:27:36 CEST 2011


Module: icinga-web
Branch: jmosshammer/default
Commit: d1952ecb756691394b9ad8408546b3fdba0d8b4d
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=d1952ecb756691394b9ad8408546b3fdba0d8b4d

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Sat Jul  9 10:23:51 2011 +0200

* Created custom adapter for oracle and fixed several model issues
NOTE: The icinga-Api should now work in oracle without any changes in code. The driver name
herefore is icingaOracle://... and it reparses the sql prior to executing it (it's not very nice
but the cleanest way to realize it i found - and I tried EVERYTHING :) )

---

 .../lib/database/models/IcingaContactgroups.php    |    4 +-
 .../models/IcingaHostContactgroupsTable.php        |    2 +-
 .../Api/lib/database/models/IcingaHosts.php        |    4 +-
 .../Api/lib/database/models/IcingaServices.php     |   38 --
 .../models/generated/BaseIcingaCommands.php        |    2 +-
 .../models/generated/BaseIcingaComments.php        |    3 +-
 .../models/generated/BaseIcingaContactgroups.php   |   22 +-
 .../models/generated/BaseIcingaContacts.php        |   14 +-
 .../database/models/generated/BaseIcingaHosts.php  |   23 +-
 .../models/generated/BaseIcingaServices.php        |   15 +-
 .../Api/lib/database/models/generated/replace.sh   |    7 -
 .../Api/models/ApiHostRequestModel.class.php       |    1 +
 .../Api/models/ApiHostgroupRequestModel.class.php  |    2 +-
 .../Api/models/ApiServiceRequestModel.class.php    |    2 +-
 .../LegacyLayer/TargetModifierModel.class.php      |   30 +-
 lib/doctrine/lib/Doctrine/Adapter/IcingaOracle.php |  320 +++++++++
 .../Doctrine/Adapter/Statement/IcingaOracle.php    |  700 ++++++++++++++++++++
 .../lib/Doctrine/Connection/IcingaOracle.php       |  162 +++++
 lib/doctrine/lib/Doctrine/Hydrator/Graph.php       |    5 +-
 lib/doctrine/lib/Doctrine/Manager.php              |    7 +-
 lib/doctrine/lib/Doctrine/Query.php                |    2 +-
 lib/doctrine/lib/Doctrine/Record.php               |    4 +-
 lib/doctrine/lib/Doctrine/Relation.php             |   18 +-
 lib/doctrine/lib/Doctrine/Relation/Association.php |   26 +-
 lib/doctrine/lib/Doctrine/Relation/ForeignKey.php  |   14 +-
 lib/doctrine/lib/Doctrine/Relation/LocalKey.php    |    7 +-
 lib/doctrine/lib/Doctrine/Relation/Parser.php      |    8 +-
 lib/doctrine/lib/Doctrine/Table.php                |    2 +
 tests/phpunit/tests/api/hosts/HostDetailTest.php   |    9 +-
 tests/phpunit/tests/api/hosts/HostOverviewTest.php |   17 +-
 .../tests/api/legacylayer/.HostTargetTest.php.swo  |  Bin 0 -> 12288 bytes
 .../tests/api/legacylayer/HostTargetTest.php       |   14 +-
 32 files changed, 1350 insertions(+), 134 deletions(-)

Diff:   https://git.icinga.org/?p=icinga-web.git;a=commitdiff;h=d1952ecb756691394b9ad8408546b3fdba0d8b4d




More information about the icinga-checkins mailing list