DBA Data[Home] [Help]

APPS.HZ_ELOCATION_PKG SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 124

  PROCEDURE update_geo_location (
    p_location_id   IN        NUMBER,
    p_geo           IN        mdsys.sdo_geometry,
    p_geo_status    IN        VARCHAR2,
    x_count         IN OUT NOCOPY    NUMBER,
    x_return_status IN OUT NOCOPY    VARCHAR2,
    x_msg_count     IN OUT NOCOPY    NUMBER,
    x_msg_data      IN OUT NOCOPY    VARCHAR2
  ) IS
    l_rowid          VARCHAR2(1000);
Line: 136

      SELECT rowid
      FROM   hz_locations
      WHERE  location_id = p_location_id;
Line: 141

	hz_utility_v2pub.debug(p_message=>'hz_locations_pkg.update_geo_location for location_id :'||
					  TO_CHAR(p_location_id)||'(+)',
	                       p_prefix=>l_debug_prefix,
			       p_msg_level=>fnd_log.level_procedure);
Line: 160

	hz_utility_v2pub.debug(p_message=>'hz_locations_pkg.update_row for location_id :' ||
					  TO_CHAR(p_location_id)||'(+)',
	                       p_prefix=>l_debug_prefix,
			       p_msg_level=>fnd_log.level_procedure);
Line: 165

      hz_locations_pkg.update_row (
        x_rowid                          => l_rowid,
        x_location_id                    => p_location_id,
        x_attribute_category             => NULL,
        x_attribute1                     => NULL,
        x_attribute2                     => NULL,
        x_attribute3                     => NULL,
        x_attribute4                     => NULL,
        x_attribute5                     => NULL,
        x_attribute6                     => NULL,
        x_attribute7                     => NULL,
        x_attribute8                     => NULL,
        x_attribute9                     => NULL,
        x_attribute10                    => NULL,
        x_attribute11                    => NULL,
        x_attribute12                    => NULL,
        x_attribute13                    => NULL,
        x_attribute14                    => NULL,
        x_attribute15                    => NULL,
        x_attribute16                    => NULL,
        x_attribute17                    => NULL,
        x_attribute18                    => NULL,
        x_attribute19                    => NULL,
        x_attribute20                    => NULL,
        x_orig_system_reference          => NULL,
        x_country                        => NULL,
        x_address1                       => NULL,
        x_address2                       => NULL,
        x_address3                       => NULL,
        x_address4                       => NULL,
        x_city                           => NULL,
        x_postal_code                    => NULL,
        x_state                          => NULL,
        x_province                       => NULL,
        x_county                         => NULL,
        x_address_key                    => NULL,
        x_address_style                  => NULL,
        x_validated_flag                 => NULL,
        x_address_lines_phonetic         => NULL,
        x_po_box_number                  => NULL,
        x_house_number                   => NULL,
        x_street_suffix                  => NULL,
        x_street                         => NULL,
        x_street_number                  => NULL,
        x_floor                          => NULL,
        x_suite                          => NULL,
        x_postal_plus4_code              => NULL,
        x_position                       => NULL,
        x_location_directions            => NULL,
        x_address_effective_date         => NULL,
        x_address_expiration_date        => NULL,
        x_clli_code                      => NULL,
        x_language                       => NULL,
        x_short_description              => NULL,
        x_description                    => NULL,
        x_content_source_type            => NULL,
        x_loc_hierarchy_id               => NULL,
        x_sales_tax_geocode              => NULL,
        x_sales_tax_inside_city_limits   => NULL,
        x_fa_location_id                 => NULL,
        x_geometry                       => p_geo,
        x_geometry_status_code           => p_geo_status,
        x_object_version_number          => NULL,
        x_timezone_id                    => NULL,
        x_created_by_module              => NULL,
        x_application_id                 => NULL,
	--3326341.
	x_delivery_point_code            => NULL
	);
Line: 238

	   hz_utility_v2pub.debug(p_message=>'Location successfully updated for location_id :'||TO_CHAR(p_location_id),
			          p_prefix =>l_debug_prefix,
			          p_msg_level=>fnd_log.level_statement);
Line: 243

	hz_utility_v2pub.debug(p_message=>'hz_locations_pkg.update_row for location_id :' ||
					   TO_CHAR(p_location_id)||'(-)',
	                       p_prefix=>l_debug_prefix,
			       p_msg_level=>fnd_log.level_procedure);
Line: 251

        fnd_message.set_name('AR','HZ_LOCATION_UPDATED');
Line: 264

	hz_utility_v2pub.debug(p_message=>'hz_locations_pkg.update_geo_location for location_id :'
					  || TO_CHAR(p_location_id)||'(-)',
	                       p_prefix=>l_debug_prefix,
			       p_msg_level=>fnd_log.level_procedure);
Line: 269

  END update_geo_location;
Line: 290

  PROCEDURE update_geometry (
    errbuf            OUT NOCOPY VARCHAR2,
    retcode           OUT NOCOPY VARCHAR2,
    p_loc_type	      IN  VARCHAR2 DEFAULT 'P',
    p_site_use_type   IN  VARCHAR2 DEFAULT NULL,
    p_country         IN  VARCHAR2 DEFAULT NULL,
    p_iden_addr_only  IN  VARCHAR2 DEFAULT 'N',
    p_incremental     IN  VARCHAR2 DEFAULT 'N',
    p_all_partial     IN  VARCHAR2 DEFAULT 'ALL',
    p_nb_row_update   IN  VARCHAR2 DEFAULT 'ALL',
    p_nb_row          IN  NUMBER   DEFAULT 20,
    p_nb_try          IN  NUMBER   DEFAULT 3

  ) IS
 /*   TYPE locationlist IS TABLE OF hz_locations.location_id%TYPE;
Line: 329

      SELECT hl.location_id, hl.address1, hl.address2, hl.address3, hl.address4,
             hl.city, hl.postal_code, hl.state, hl.country, hl.county, hl.province
      FROM   hz_locations hl
      WHERE  EXISTS (SELECT 1
                     FROM  hz_party_site_uses hpsu,
                           hz_party_sites     hps
                     WHERE hpsu.site_use_type = p_site_use_type
                     AND hpsu.party_site_id = hps.party_site_id
                     AND hps.identifying_address_flag = DECODE(p_iden_addr_only, 'Y', 'Y', hps.identifying_address_flag)
                     AND hps.location_id = hl.location_id)
      AND NVL(hl.request_id, -1) <> NVL(p_request_id, -2);
Line: 347

      SELECT hl.location_id, hl.address1, hl.address2, hl.address3, hl.address4,
             hl.city, hl.postal_code, hl.state, hl.country, hl.county, hl.province
      FROM   hz_locations hl
      WHERE  EXISTS (SELECT 1
                     FROM  hz_party_site_uses hpsu,
                           hz_party_sites     hps
                     WHERE hpsu.site_use_type = p_site_use_type
                     AND hpsu.party_site_id = hps.party_site_id
                     AND hps.identifying_address_flag = DECODE(p_iden_addr_only, 'Y', 'Y', hps.identifying_address_flag)
                     AND hps.location_id = hl.location_id)
      AND hl.country = p_country
      AND NVL(hl.request_id, -1) <> NVL(p_request_id, -2);
Line: 365

      SELECT hl.location_id, hl.address1, hl.address2, hl.address3, hl.address4,
             hl.city, hl.postal_code, hl.state, hl.country, hl.county, hl.province
      FROM   hz_locations hl
      WHERE  EXISTS (SELECT 1
                     FROM  hz_party_site_uses hpsu,
                           hz_party_sites     hps
                     WHERE hpsu.site_use_type = p_site_use_type
                     AND hpsu.party_site_id = hps.party_site_id
                     AND hps.identifying_address_flag = DECODE(p_iden_addr_only, 'Y', 'Y', hps.identifying_address_flag)
                     AND hps.location_id = hl.location_id)
      AND NVL(hl.request_id, -1) <> NVL(p_request_id, -2)
      AND (hl.geometry_status_code = 'DIRTY' OR hl.geometry_status_code IS NULL);
Line: 383

      SELECT hl.location_id, hl.address1, hl.address2, hl.address3, hl.address4,
             hl.city, hl.postal_code, hl.state, hl.country, hl.county, hl.province
      FROM   hz_locations hl
      WHERE  EXISTS (SELECT 1
                     FROM  hz_party_site_uses hpsu,
                           hz_party_sites     hps
                     WHERE hpsu.site_use_type = p_site_use_type
                     AND hpsu.party_site_id = hps.party_site_id
                     AND hps.identifying_address_flag = DECODE(p_iden_addr_only, 'Y', 'Y', hps.identifying_address_flag)
                     AND hps.location_id = hl.location_id)
      AND hl.country = p_country
      AND NVL(hl.request_id, -1) <> NVL(p_request_id, -2)
      AND (hl.geometry_status_code = 'DIRTY' OR hl.geometry_status_code IS NULL);
Line: 402

      SELECT hl.location_id, hl.address1, hl.address2, hl.address3, hl.address4,
             hl.city, hl.postal_code, hl.state, hl.country, hl.county, hl.province
      FROM   hz_locations hl
      WHERE  EXISTS (SELECT 1
                     FROM  hz_party_sites hps
                     WHERE hps.identifying_address_flag = DECODE(p_iden_addr_only, 'Y', 'Y', hps.identifying_address_flag)
                     AND hps.location_id = hl.location_id)
      AND NVL(hl.request_id, -1) <> NVL(p_request_id, -2);
Line: 416

      SELECT hl.location_id, hl.address1, hl.address2, hl.address3, hl.address4,
             hl.city, hl.postal_code, hl.state, hl.country, hl.county, hl.province
      FROM   hz_locations hl
      WHERE  EXISTS (SELECT 1
                     FROM  hz_party_sites hps
                     WHERE hps.identifying_address_flag = DECODE(p_iden_addr_only, 'Y', 'Y', hps.identifying_address_flag)
                     AND hps.location_id = hl.location_id)
      AND hl.country = p_country
      AND NVL(hl.request_id, -1) <> NVL(p_request_id, -2);
Line: 430

      SELECT hl.location_id, hl.address1, hl.address2, hl.address3, hl.address4,
             hl.city, hl.postal_code, hl.state, hl.country, hl.county, hl.province
      FROM   hz_locations hl
      WHERE  EXISTS (SELECT 1
                     FROM  hz_party_sites hps
                     WHERE hps.identifying_address_flag = DECODE(p_iden_addr_only, 'Y', 'Y', hps.identifying_address_flag)
                     AND hps.location_id = hl.location_id)
      AND NVL(hl.request_id, -1) <> NVL(p_request_id, -2)
      AND (hl.geometry_status_code = 'DIRTY' OR hl.geometry_status_code IS NULL);
Line: 445

      SELECT hl.location_id, hl.address1, hl.address2, hl.address3, hl.address4,
             hl.city, hl.postal_code, hl.state, hl.country, hl.county, hl.province
      FROM   hz_locations hl
      WHERE  EXISTS (SELECT 1
                     FROM  hz_party_sites hps
                     WHERE hps.identifying_address_flag = DECODE(p_iden_addr_only, 'Y', 'Y', hps.identifying_address_flag)
                     AND hps.location_id = hl.location_id)
      AND hl.country = p_country
      AND NVL(hl.request_id, -1) <> NVL(p_request_id, -2)
      AND (hl.geometry_status_code = 'DIRTY' OR hl.geometry_status_code IS NULL);
Line: 460

      SELECT hl.location_id, hl.address1, hl.address2, hl.address3, hl.address4,
             hl.city, hl.postal_code, hl.state, hl.country, hl.county, hl.province
      FROM   hz_locations hl
      WHERE  NVL(hl.request_id, -1) <> NVL(p_request_id, -2)
      AND    NOT EXISTS (SELECT 1
                         FROM HZ_PARTY_SITES hps
                         WHERE hps.location_id = hl.location_id );
Line: 472

      SELECT hl.location_id, hl.address1, hl.address2, hl.address3, hl.address4,
             hl.city, hl.postal_code, hl.state, hl.country, hl.county, hl.province
      FROM   hz_locations hl
      WHERE  hl.country = p_country
      AND    NVL(hl.request_id, -1) <> NVL(p_request_id, -2)
      AND    NOT EXISTS (SELECT 1
                         FROM HZ_PARTY_SITES hps
                         WHERE hps.location_id = hl.location_id );
Line: 485

      SELECT hl.location_id, hl.address1, hl.address2, hl.address3, hl.address4,
             hl.city, hl.postal_code, hl.state, hl.country, hl.county, hl.province
      FROM   hz_locations hl
      WHERE  NVL(hl.request_id, -1) <> NVL(p_request_id, -2)
      AND    (hl.geometry_status_code = 'DIRTY' OR hl.geometry_status_code IS NULL)
      AND    NOT EXISTS (SELECT 1
                         FROM HZ_PARTY_SITES hps
                         WHERE hps.location_id = hl.location_id );
Line: 498

      SELECT hl.location_id, hl.address1, hl.address2, hl.address3, hl.address4,
             hl.city, hl.postal_code, hl.state, hl.country, hl.county, hl.province
      FROM   hz_locations hl
      WHERE  hl.country = p_country
      AND    NVL(hl.request_id, -1) <> NVL(p_request_id, -2)
      AND    (hl.geometry_status_code = 'DIRTY' OR hl.geometry_status_code IS NULL)
      AND    NOT EXISTS (SELECT 1
                         FROM HZ_PARTY_SITES hps
                         WHERE hps.location_id = hl.location_id );
Line: 518

    cpt_update        NUMBER := 0;
Line: 519

    l_nb_row_update   NUMBER DEFAULT NULL;
Line: 520

    l_nb_update       NUMBER;
Line: 545

  /*  l_nb_update := 0;
Line: 549

	hz_utility_v2pub.debug(p_message=>g_pkg_name||'.update_geometry (+)',
	                       p_prefix=>l_debug_prefix,
			       p_msg_level=>fnd_log.level_procedure);
Line: 578

      IF p_nb_row_update IS NULL OR p_nb_row_update = 'ALL' THEN
        l_nb_row_update := 1000;
Line: 581

        l_nb_row_update := TO_NUMBER(p_nb_row_update);
Line: 583

      IF l_nb_row_update IS NULL OR l_nb_row_update <= 0 THEN
        time_put_line('At least one row error.');
Line: 1272

      IF p_all_partial <> 'ALL' AND cpt_update >= l_nb_row_update THEN
        time_put_line('Exiting because partial=' || p_all_partial);
Line: 1274

        time_put_line('cpt_update=' || cpt_update);
Line: 1275

        time_put_line('nb_row_update=' || l_nb_row_update);
Line: 1280

	   hz_utility_v2pub.debug(p_message=>'cpt_update=' || cpt_update,
	                       p_prefix=>'WARNING',
			       p_msg_level=>fnd_log.level_exception);
Line: 1283

	   hz_utility_v2pub.debug(p_message=>'nb_row_update=' || l_nb_row_update,
	                       p_prefix=>'WARNING',
			       p_msg_level=>fnd_log.level_exception);
Line: 1292

        cpt_update := cpt_update + 1;
Line: 1322

           OR (p_all_partial <> 'ALL' AND cpt_update >= l_nb_row_update)
        THEN
          -- Process the records in the array.
          hz_geocode_pkg.get_spatial_coords(
            p_loc_array            => l_array,
            p_name                 => NULL,
            p_http_ad              => l_http_ad,
            p_proxy                => l_proxy,
            p_port                 => l_port,
            p_retry                => l_nb_retries,
            x_return_status        => l_return_status,
            x_msg_count            => x_msg_count,
            x_msg_data             => x_msg_data
          );
Line: 1403

            l_array.DELETE;
Line: 1420

            update_geo_location(
              p_location_id   => l_array(j).location_id,
              p_geo           => l_array(j).geometry,
              p_geo_status    => l_array(j).geometry_status_code,
              x_count         => l_nb_update,
              x_return_status => l_return_status,
              x_msg_count     => x_msg_count,
              x_msg_data      => x_msg_data
            );
Line: 1432

          l_array.DELETE;
Line: 1437

        IF p_all_partial <> 'ALL' AND cpt_update >= l_nb_row_update THEN
          time_put_line('Exiting due to update limit.');
Line: 1440

			hz_utility_v2pub.debug(p_message=>'Exiting due to update limit.',
	                       p_prefix=>'WARNING',
			       p_msg_level=>fnd_log.level_exception);
Line: 1510

      l_location_ids.DELETE;
Line: 1511

      l_address1s.DELETE;
Line: 1512

      l_address2s.DELETE;
Line: 1513

      l_address3s.DELETE;
Line: 1514

      l_address4s.DELETE;
Line: 1515

      l_cities.DELETE;
Line: 1516

      l_postal_codes.DELETE;
Line: 1517

      l_counties.DELETE;
Line: 1518

      l_states.DELETE;
Line: 1519

      l_provinces.DELETE;
Line: 1520

      l_countries.DELETE;
Line: 1631

	hz_utility_v2pub.debug(p_message=>g_pkg_name||'.update_geometry (-)',
	                       p_prefix=>l_debug_prefix,
			       p_msg_level=>fnd_log.level_procedure);
Line: 1649

	    hz_utility_v2pub.debug(p_message=>g_pkg_name ||'.update_geometry (- expect_http_ad)',
	                           p_prefix=>'ERROR',
			           p_msg_level=>fnd_log.level_error);
Line: 1668

	    hz_utility_v2pub.debug(p_message=>g_pkg_name||'.update_geometry (- port_number)',
	                           p_prefix=>'ERROR',
			           p_msg_level=>fnd_log.level_error);
Line: 1686

	    hz_utility_v2pub.debug(p_message=>g_pkg_name||'.update_geometry (- nlsnumexp)',
	                           p_prefix=>'ERROR',
			           p_msg_level=>fnd_log.level_error);
Line: 1704

	    hz_utility_v2pub.debug(p_message=>g_pkg_name ||'.update_geometry (- atleastonerow)',
	                           p_prefix=>'ERROR',
			           p_msg_level=>fnd_log.level_error);
Line: 1723

	    hz_utility_v2pub.debug(p_message=>g_pkg_name ||'.update_geometry (- morethanmaxrow)',
	                           p_prefix=>'ERROR',
			           p_msg_level=>fnd_log.level_error);
Line: 1739

	    hz_utility_v2pub.debug(p_message=>g_pkg_name||'.update_geometry (- exchttp)',
	                           p_prefix=>'ERROR',
			           p_msg_level=>fnd_log.level_error);
Line: 1751

	    hz_utility_v2pub.debug(p_message=>g_pkg_name||'.update_geometry (- others)',
	                           p_prefix=>'SQL ERROR',
			           p_msg_level=>fnd_log.level_error);
Line: 1764

  END update_geometry;
Line: 1781

   P_NB_ROW_UPDATE	IN	VARCHAR2,
   P_STATE	        IN	VARCHAR2,
   P_PROVINCE	    IN	VARCHAR2,
   P_CITY	        IN	VARCHAR2,
   P_GEOMETRY_ACCURACY	IN	NUMBER,
   P_GEOMETRY_SOURCE	IN	VARCHAR2,
   p_party_site_status  IN	VARCHAR2,
   P_MC_1	        IN	NUMBER,
   P_MC_2	        IN	NUMBER,
   P_MC_3	        IN	NUMBER,
   P_MC_4	        IN	NUMBER,
   P_MC_10	        IN	NUMBER,
   P_MC_11	        IN	NUMBER,
   P_MC_0	        IN	NUMBER

) IS
l_total_rec_processed NUMBER := P_MC_1+P_MC_2+P_MC_3+P_MC_4+P_MC_10+P_MC_11+P_MC_0;
Line: 1806

      SELECT lookup_code,description,decode(lookup_code,0,2,1)
	   FROM  AR_LOOKUPS
      WHERE  LOOKUP_TYPE = 'HZ_SPATIAL_ACCURACY_MAPPING'
	  ORDER BY decode(lookup_code,0,2,1),TO_NUMBER(lookup_code);
Line: 1816

     SELECT meaning
       INTO l_site_use_type
     FROM AR_LOOKUPS
     WHERE LOOKUP_TYPE = 'PARTY_SITE_USE_CODE'
     AND   LOOKUP_CODE = p_site_use_type;
Line: 1824

    SELECT meaning
      INTO l_loc_type
    FROM AR_LOOKUPS
    WHERE LOOKUP_TYPE = 'HZ_ELOCATION_TYPE'
    AND   LOOKUP_CODE = p_loc_type;
Line: 1832

	SELECT meaning
      INTO l_country
    FROM AR_LOOKUPS
    WHERE LOOKUP_TYPE = 'HZ_SPATIAL_VALID_COUNTRIES'
    AND   LOOKUP_CODE = p_country;
Line: 1840

    SELECT meaning
    INTO l_geometry_source
    FROM AR_LOOKUPS
    WHERE LOOKUP_TYPE = 'HZ_GEOMETRY_SOURCE'
    AND   LOOKUP_CODE = p_geometry_source;
Line: 1848

	  SELECT meaning
        INTO l_geometry_accuracy
      FROM AR_LOOKUPS
      WHERE LOOKUP_TYPE = 'HZ_SPATIAL_ACCURACY_MAPPING'
      AND   LOOKUP_CODE = p_geometry_accuracy;
Line: 1856

      SELECT meaning
        INTO l_party_site_status
      FROM AR_LOOKUPS
      WHERE LOOKUP_TYPE = 'HZ_LOC_STATUS'
      AND   LOOKUP_CODE = p_party_site_status;
Line: 1869

	fnd_file.put_line(fnd_file.log,'Update Records for:          '||NVL(p_all_partial,'NULL'));
Line: 1872

	fnd_file.put_line(fnd_file.log,'Number of Records in Subset: '||NVL(p_nb_row_update,'NULL'));
Line: 1928

 PROCEDURE update_geometry_all (
    errbuf            OUT NOCOPY VARCHAR2,
    retcode           OUT NOCOPY VARCHAR2,
    p_loc_type	      IN  VARCHAR2 DEFAULT 'P',
    p_site_use_type   IN  VARCHAR2 DEFAULT NULL,
    p_country         IN  VARCHAR2 DEFAULT NULL,
    p_iden_addr_only  IN  VARCHAR2 DEFAULT 'N',
    p_incremental     IN  VARCHAR2 DEFAULT 'N',
    p_all_partial     IN  VARCHAR2 DEFAULT 'ALL',
    p_nb_row_update   IN  VARCHAR2 DEFAULT 'ALL',
	p_state              IN  VARCHAR2 DEFAULT NULL,
	p_province           IN  VARCHAR2 DEFAULT NULL,
	p_city               IN  VARCHAR2 DEFAULT NULL,
	p_geometry_accuracy  IN  VARCHAR2 DEFAULT NULL,
	p_geometry_source    IN  VARCHAR2 DEFAULT 'ELOCATION',
	p_party_site_status  IN  VARCHAR2 DEFAULT NULL,
	p_nb_row          IN  NUMBER   DEFAULT 10,
    p_nb_try          IN  NUMBER   DEFAULT 3

  ) IS
    TYPE locationlist IS TABLE OF hz_locations.location_id%TYPE;
Line: 1979

    cpt_update        NUMBER := 0;
Line: 1980

    l_nb_row_update   NUMBER DEFAULT NULL;
Line: 1981

    l_nb_update       NUMBER;
Line: 2024

    l_nb_update := 0;
Line: 2028

	hz_utility_v2pub.debug(p_message=>g_pkg_name||'.update_geometry_all (+)',
	                       p_prefix=>l_debug_prefix,
			       p_msg_level=>fnd_log.level_procedure);
Line: 2055

      IF p_nb_row_update IS NULL OR p_nb_row_update = 'ALL' THEN
        l_nb_row_update := 1000;
Line: 2058

        l_nb_row_update := TO_NUMBER(p_nb_row_update);
Line: 2060

      IF l_nb_row_update IS NULL OR l_nb_row_update <= 0 THEN
        time_put_line('At least one row error.');
Line: 2156

		    	    hz_utility_v2pub.debug(p_message=>'p_nb_row :'||p_nb_row||' p_nb_try :'||p_nb_try||' p_nb_row_update :'||p_nb_row_update||' p_country :'||p_country
                                     ||' p_state :'||p_state||' p_province :'||p_province||' p_city :'||p_city||' p_geometry_accuracy :'||p_geometry_accuracy
                                     ||' p_geometry_source :'||p_geometry_source||' p_incremental :'||p_incremental
	                                 ||' p_loc_type :'||p_loc_type||' p_site_use_type :'||p_site_use_type,
	                       p_prefix=>l_debug_prefix,
			       p_msg_level=>fnd_log.level_procedure);
Line: 2165

	  l_qry_str :=             'SELECT hl.location_id, hl.address1, hl.address2, hl.address3, hl.address4, hl.city, ';
Line: 2205

	     l_qry_str := l_qry_str ||' AND NOT EXISTS (SELECT 1 FROM hz_party_sites hps WHERE hps.location_id = hl.location_id ) ' ;
Line: 2209

	     l_qry_str := l_qry_str ||' AND EXISTS ( SELECT 1 FROM  hz_party_sites  hps WHERE hps.location_id = hl.location_id ' ;
Line: 2218

	     l_qry_str := l_qry_str ||' AND EXISTS ( SELECT 1 FROM  hz_party_sites hps,hz_party_site_uses hpsu WHERE hps.location_id = hl.location_id ' ;
Line: 2272

			  -- Exit the loop if our update limit has been exceeded.
			  IF p_all_partial <> 'ALL' AND cpt_update >= l_nb_row_update THEN
				time_put_line('Exiting because partial=' || p_all_partial);
Line: 2275

				time_put_line('cpt_update=' || cpt_update);
Line: 2276

				time_put_line('nb_row_update=' || l_nb_row_update);
Line: 2278

			   hz_utility_v2pub.debug(p_message=>'Exiting because partial=' || p_all_partial||' cpt_update=' || cpt_update
			                                      ||' nb_row_update=' || l_nb_row_update,
								   p_prefix=>'WARNING',
						   p_msg_level=>fnd_log.level_exception);
Line: 2288

        cpt_update := cpt_update + 1;
Line: 2317

           OR (p_all_partial <> 'ALL' AND cpt_update >= l_nb_row_update)
        THEN
          -- Process the records in the array.
          hz_geocode_pkg.get_spatial_coords(
            p_loc_array            => l_array,
            p_name                 => NULL,
            p_http_ad              => l_http_ad,
            p_proxy                => l_proxy,
            p_port                 => l_port,
            p_retry                => l_nb_retries,
            x_return_status        => l_return_status,
            x_msg_count            => x_msg_count,
            x_msg_data             => x_msg_data
          );
Line: 2343

            l_array.DELETE;
Line: 2360

           /* update_geo_location(
              p_location_id   => l_array(j).location_id,
              p_geo           => l_array(j).geometry,
              p_geo_status    => l_array(j).geometry_status_code,
              x_count         => l_nb_update,
              x_return_status => l_return_status,
              x_msg_count     => x_msg_count,
              x_msg_data      => x_msg_data
            );
Line: 2370

			-- Instead of calling Table Handler changed to direct update statement.
			IF l_array(j).geometry_accuracy = 0 THEN
			  UPDATE HZ_LOCATIONS
			  SET geometry               = NULL,
                geometry_status_code   = l_array(j).geometry_status_code,
                geometry_source        = 'ELOCATION',
                geometry_accuracy      = l_array(j).geometry_accuracy,
                last_update_date       = hz_utility_v2pub.last_update_date,
                last_updated_by        = hz_utility_v2pub.last_updated_by,
                last_update_login      = hz_utility_v2pub.last_update_login,
                request_id             = l_request_id,
                program_application_id = hz_utility_v2pub.program_application_id,
                program_id             = hz_utility_v2pub.program_id,
                program_update_date    = hz_utility_v2pub.program_update_date
              WHERE location_id        = l_array(j).location_id;
Line: 2386

			  UPDATE HZ_LOCATIONS
			  SET geometry               = l_array(j).geometry,
                geometry_status_code   = l_array(j).geometry_status_code,
                geometry_source        = 'ELOCATION',
                geometry_accuracy      = l_array(j).geometry_accuracy,
                last_update_date       = hz_utility_v2pub.last_update_date,
                last_updated_by        = hz_utility_v2pub.last_updated_by,
                last_update_login      = hz_utility_v2pub.last_update_login,
                request_id             = l_request_id,
                program_application_id = hz_utility_v2pub.program_application_id,
                program_id             = hz_utility_v2pub.program_id,
                program_update_date    = hz_utility_v2pub.program_update_date
              WHERE location_id        = l_array(j).location_id;
Line: 2440

         l_array.DELETE;
Line: 2445

        IF p_all_partial <> 'ALL' AND cpt_update >= l_nb_row_update THEN
          time_put_line('Exiting due to update limit.');
Line: 2448

			hz_utility_v2pub.debug(p_message=>'Exiting due to update limit.',
	                       p_prefix=>'WARNING',
			       p_msg_level=>fnd_log.level_exception);
Line: 2460

      l_location_ids.DELETE;
Line: 2461

      l_address1s.DELETE;
Line: 2462

      l_address2s.DELETE;
Line: 2463

      l_address3s.DELETE;
Line: 2464

      l_address4s.DELETE;
Line: 2465

      l_cities.DELETE;
Line: 2466

      l_postal_codes.DELETE;
Line: 2467

      l_counties.DELETE;
Line: 2468

      l_states.DELETE;
Line: 2469

      l_provinces.DELETE;
Line: 2470

      l_countries.DELETE;
Line: 2496

    ,p_nb_row_update => p_nb_row_update
    ,p_state => p_state
    ,p_province => p_province
    ,p_city => p_city
    ,p_geometry_accuracy => p_geometry_accuracy
    ,p_geometry_source => p_geometry_source
    ,p_party_site_status => p_party_site_status
    ,p_mc_1 => l_mc_1
    ,p_mc_2 => l_mc_2
    ,p_mc_3	=> l_mc_3
    ,p_mc_4 => l_mc_4
    ,p_mc_10 => l_mc_10
    ,p_mc_11 => l_mc_11
    ,p_mc_0 => l_mc_0
   );
Line: 2540

			hz_utility_v2pub.debug(p_message=>g_pkg_name||'.update_geometry (-)',
								   p_prefix=>l_debug_prefix,
						   p_msg_level=>fnd_log.level_procedure);
Line: 2546

			hz_utility_v2pub.debug(p_message=>g_pkg_name||'.update_geometry_all (-)',
							   p_prefix=>l_debug_prefix,
							  p_msg_level=>fnd_log.level_procedure);
Line: 2562

	    hz_utility_v2pub.debug(p_message=>g_pkg_name ||'.update_geometry_all (- expect_http_ad)',
	                           p_prefix=>'ERROR',
			           p_msg_level=>fnd_log.level_error);
Line: 2581

	    hz_utility_v2pub.debug(p_message=>g_pkg_name||'.update_geometry_all (- port_number)',
	                           p_prefix=>'ERROR',
			           p_msg_level=>fnd_log.level_error);
Line: 2599

	    hz_utility_v2pub.debug(p_message=>g_pkg_name||'.update_geometry_all (- nlsnumexp)',
	                           p_prefix=>'ERROR',
			           p_msg_level=>fnd_log.level_error);
Line: 2617

	    hz_utility_v2pub.debug(p_message=>g_pkg_name ||'.update_geometry_all (- atleastonerow)',
	                           p_prefix=>'ERROR',
			           p_msg_level=>fnd_log.level_error);
Line: 2636

	    hz_utility_v2pub.debug(p_message=>g_pkg_name ||'.update_geometry_all (- morethanmaxrow)',
	                           p_prefix=>'ERROR',
			           p_msg_level=>fnd_log.level_error);
Line: 2652

	    hz_utility_v2pub.debug(p_message=>g_pkg_name||'.update_geometry_all (- exchttp)',
	                           p_prefix=>'ERROR',
			           p_msg_level=>fnd_log.level_error);
Line: 2664

	    hz_utility_v2pub.debug(p_message=>g_pkg_name||'.update_geometry_all (- others)',
	                           p_prefix=>'SQL ERROR',
			           p_msg_level=>fnd_log.level_error);
Line: 2675

	END update_geometry_all;
Line: 2727

           SELECT status, domidx_opstatus
           FROM   sys.all_indexes
           WHERE  index_name = 'HZ_LOCATIONS_N15' and owner = x_index_owner;
Line: 2732

           SELECT object_owner, object_name, policy_name
           FROM   sys.all_policies
           WHERE  enable LIKE 'Y%'
           AND object_name = 'HZ_LOCATIONS';
Line: 2738

           SELECT object_owner, object_name, policy_name
           FROM   sys.dba_policies
           WHERE  enable = 'YES'
           AND object_owner = l_schema
           AND object_name = 'HZ_LOCATIONS';
Line: 2776

/*          x_del_meta :=  'Delete user_sdo_geom_metadata
                          Where  table_name = ''HZ_LOCATIONS''
                            And  column_name= ''GEOMETRY''';
Line: 2780

          x_del_meta :=  'Delete MDSYS.SDO_GEOM_METADATA_TABLE
                          Where  sdo_table_name = ''HZ_LOCATIONS''
                            AND  sdo_column_name= ''GEOMETRY''
	                    AND  sdo_owner      = '''||x_index_owner||'''';
Line: 2788

/*          x_ins_meta :=  'INSERT INTO user_sdo_geom_metadata (
                          table_name, column_name, diminfo, srid ) VALUES (
                         ''HZ_LOCATIONS'', ''GEOMETRY'',
                           mdsys.sdo_dim_array(
                           mdsys.sdo_dim_element(''longitude'', -180, 180, 0.00005),
                           mdsys.sdo_dim_element(''latitude'', -90, 90, 0.00005)), 8307 )';
Line: 2795

          x_ins_meta :=  'INSERT INTO MDSYS.SDO_GEOM_METADATA_TABLE (
                          sdo_owner, sdo_table_name, sdo_column_name, sdo_diminfo, sdo_srid ) VALUES ('''
						  ||x_index_owner||''', '||
                         '''HZ_LOCATIONS'', ''GEOMETRY'',
                           mdsys.sdo_dim_array(
                           mdsys.sdo_dim_element(''longitude'', -180, 180, 0.00005),
                           mdsys.sdo_dim_element(''latitude'', -90, 90, 0.00005)), 8307 )';
Line: 2870

  l_owners.DELETE;
Line: 2871

  l_objects.DELETE;
Line: 2872

  l_policies.DELETE;