DBA Data[Home] [Help]

APPS.HZ_GEOGRAPHY_PUB dependencies on HZ_HIERARCHY_NODES

Line 98: FROM hz_hierarchy_nodes

94: -- This query does the grouping based on parent id and geography type
95: -- Note : sysdate is not truncated in check because we want to not pick
96: -- up those records which are just now end dated (end dated in current flow)
97: SELECT parent_id, parent_object_type, level_number
98: FROM hz_hierarchy_nodes
99: WHERE hierarchy_type = 'MASTER_REF'
100: AND SYSDATE+0.0001 BETWEEN effective_start_date AND effective_end_date
101: AND child_table_name = 'HZ_GEOGRAPHIES'
102: AND NVL(status,'A') = 'A'

Line 138: FROM HZ_HIERARCHY_NODES

134: x_return_status IN OUT NOCOPY VARCHAR2) IS
135:
136: CURSOR c_get_all_parents IS
137: SELECT parent_id,parent_object_type
138: FROM HZ_HIERARCHY_NODES
139: WHERE child_id = p_geography_id
140: AND child_object_type = p_geography_type
141: AND child_table_name = 'HZ_GEOGRAPHIES'
142: AND hierarchy_type = 'MASTER_REF'

Line 273: FROM HZ_HIERARCHY_NODES

269: ) IS
270:
271: CURSOR c_get_all_children IS
272: SELECT child_id,child_object_type
273: FROM HZ_HIERARCHY_NODES
274: WHERE parent_id=p_geography_id
275: AND parent_object_type=p_geography_type
276: AND parent_table_name = 'HZ_GEOGRAPHIES'
277: AND hierarchy_type='MASTER_REF'

Line 325: FROM hz_hierarchy_nodes

321: -- check if all parents of geography_id are of same geography_type
322: BEGIN
323:
324: SELECT distinct parent_object_type INTO l_parent_object_type
325: FROM hz_hierarchy_nodes
326: WHERE child_id = p_geography_id
327: AND child_object_type=p_geography_type
328: AND child_table_name = 'HZ_GEOGRAPHIES'
329: AND hierarchy_type='MASTER_REF'

Line 369: FROM hz_hierarchy_nodes

365: --dbms_output.put_line ('geo_element_column is '||l_geo_element_col);
366:
367: -- check if all parents of geography_id have same parent
368: SELECT count(distinct parent_id) INTO l_count
369: FROM hz_hierarchy_nodes
370: WHERE child_id in ( SELECT parent_id
371: FROM hz_hierarchy_nodes
372: WHERE child_id = p_geography_id
373: AND child_object_type = p_geography_type

Line 371: FROM hz_hierarchy_nodes

367: -- check if all parents of geography_id have same parent
368: SELECT count(distinct parent_id) INTO l_count
369: FROM hz_hierarchy_nodes
370: WHERE child_id in ( SELECT parent_id
371: FROM hz_hierarchy_nodes
372: WHERE child_id = p_geography_id
373: AND child_object_type = p_geography_type
374: AND child_table_name = 'HZ_GEOGRAPHIES'
375: AND hierarchy_type = 'MASTER_REF'

Line 760: SELECT count(*) INTO l_count FROM HZ_HIERARCHY_NODES

756: END;
757: -- a geography can not have two countries as its parents
758: IF l_parent_geography_type = 'COUNTRY' THEN
759:
760: SELECT count(*) INTO l_count FROM HZ_HIERARCHY_NODES
761: WHERE hierarchy_type='MASTER_REF'
762: AND child_id=p_master_relation_rec.geography_id
763: AND parent_object_type='COUNTRY'
764: AND NVL(status,'A') = 'A'

Line 911: FROM hz_hierarchy_nodes

907: l_relationship_type VARCHAR2(30);
908: --p_subject_flag VARCHAR2(1);
909: CURSOR c_get_all_children IS
910: SELECT child_id, child_object_type
911: FROM hz_hierarchy_nodes
912: WHERE hierarchy_type='MASTER_REF'
913: AND parent_id=l_geography_id
914: AND child_table_name = 'HZ_GEOGRAPHIES'
915: AND NVL(status,'A') = 'A'

Line 2295: /* update hz_hierarchy_nodes

2291:
2292: END LOOP;
2293: CLOSE c_get_all_relationships;
2294:
2295: /* update hz_hierarchy_nodes
2296: set effective_end_date = p_end_date
2297: where hierarchy_type=l_geography_use
2298: and parent_id = p_geography_id
2299: or child_id = p_geography_id ; */

Line 2723: FROM hz_hierarchy_nodes

2719: IF l_limited_by_geography_id IS NOT NULL THEN
2720: --included geography_id should have a relationship with limited_by_geography_id either at level >= 0
2721: BEGIN
2722: SELECT 1 INTO l_count
2723: FROM hz_hierarchy_nodes
2724: WHERE parent_id = l_limited_by_geography_id
2725: AND child_id = p_zone_relation_tbl(i).included_geography_id
2726: AND hierarchy_type = 'MASTER_REF'
2727: AND NVL(status,'A') = 'A'