/**
     * Deletes all associated RoleModuleAuthorizations
     * @return void
     */
    public function DeleteAllRoleModuleAuthorizations()
    {
        if (is_null($this->intAuthorizationLevelId)) {
            throw new QUndefinedPrimaryKeyException('Unable to call UnassociateRoleModuleAuthorization on this unsaved AuthorizationLevel.');
        }
        // Get the Database Object for this Class
        $objDatabase = AuthorizationLevel::GetDatabase();
        // Perform the SQL Query
        $objDatabase->NonQuery('
				DELETE FROM
					`role_module_authorization`
				WHERE
					`authorization_level_id` = ' . $objDatabase->SqlVariable($this->intAuthorizationLevelId) . '
			');
    }
    /**
     * Deletes all associated RoleTransactionTypeAuthorizations
     * @return void
     */
    public function DeleteAllRoleTransactionTypeAuthorizations()
    {
        if (is_null($this->intAuthorizationLevelId)) {
            throw new QUndefinedPrimaryKeyException('Unable to call UnassociateRoleTransactionTypeAuthorization on this unsaved AuthorizationLevel.');
        }
        // Get the Database Object for this Class
        $objDatabase = AuthorizationLevel::GetDatabase();
        // Journaling
        if ($objDatabase->JournalingDatabase) {
            foreach (RoleTransactionTypeAuthorization::LoadArrayByAuthorizationLevelId($this->intAuthorizationLevelId) as $objRoleTransactionTypeAuthorization) {
                $objRoleTransactionTypeAuthorization->Journal('DELETE');
            }
        }
        // Perform the SQL Query
        $objDatabase->NonQuery('
				DELETE FROM
					`role_transaction_type_authorization`
				WHERE
					`authorization_level_id` = ' . $objDatabase->SqlVariable($this->intAuthorizationLevelId) . '
			');
    }