DBA Data[Home] [Help]

APPS.IEM_ROUTE_CLASS_PVT SQL Statements

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

Line: 34

G_created_updated_by   NUMBER:=TO_NUMBER (FND_PROFILE.VALUE('USER_ID')) ;
Line: 36

G_LAST_UPDATE_LOGIN    NUMBER:=TO_NUMBER (FND_PROFILE.VALUE('LOGIN_ ID') ) ;
Line: 119

 PROCEDURE delete_item_batch
             (p_api_version_number      IN  NUMBER,
              P_init_msg_list           IN  VARCHAR2 := null,
              p_commit                  IN  VARCHAR2 := null,
              p_class_ids_tbl           IN  jtf_varchar2_Table_100,
              x_return_status           OUT NOCOPY VARCHAR2,
              x_msg_count               OUT NOCOPY NUMBER,
              x_msg_data                OUT NOCOPY VARCHAR2)
IS
    i                       INTEGER;
Line: 129

    l_api_name		        varchar2(30):='delete_item_batch';
Line: 137

    l_undeleted_class_name_1    varchar2(30);
Line: 139

    l_undeleted_class_name      varchar2(3000);
Line: 146

        select unique email_account_id from iem_account_route_class where route_classification_id = l_classification_id;
Line: 149

     IEM_RT_CLASS_NOT_DELETED     EXCEPTION;
Line: 154

    SAVEPOINT delete_item_batch;
Line: 184

	-- select count(*) into l_count_msg_postmdt from iem_post_mdts where rt_classification_id=p_class_ids_tbl(i);
Line: 186

	select count(*) into l_count_msg_postmdt from iem_rt_proc_emails where rt_classification_id=p_class_ids_tbl(i);
Line: 189

              select name into l_undeleted_class_name_1 from iem_route_classifications where route_classification_id=p_class_ids_tbl(i);
Line: 190

              l_undeleted_class_name := l_undeleted_class_name||l_undeleted_class_name_1||', ';
Line: 221

                        FND_LOG.STRING(FND_LOG.LEVEL_STATEMENT, 'IEM.PLSQL.IEM_ROUTE_CLASS_PVT.delete_item_batch.START', logMessage);
Line: 224

                    Update iem_account_route_class ac set ac.priority=ac.priority-1
        					           where ac.email_account_id=acct_id.email_account_id and ac.priority > (Select be.priority from iem_account_route_class be
        					           where be.route_classification_id=p_class_ids_tbl(i) and be.email_account_id = acct_id.email_account_id);
Line: 231

                UPDATE IEM_ROUTE_CLASSIFICATIONS
		SET DELETED_FLAG='Y'
                WHERE route_classification_id = p_class_ids_tbl(i);
Line: 235

                DELETE
                FROM IEM_ROUTE_CLASS_RULES
                WHERE route_classification_id = p_class_ids_tbl(i);
Line: 239

                DELETE
                FROM IEM_ACCOUNT_ROUTE_CLASS
                WHERE route_classification_id = p_class_ids_tbl(i);
Line: 253

    if l_undeleted_class_name is not null  then
        l_undeleted_class_name := RTRIM(l_undeleted_class_name, ', ');
Line: 257

        FND_MESSAGE.SET_TOKEN('CLASSIFICATION', l_undeleted_class_name);
Line: 285

  	     ROLLBACK TO delete_item_batch;
Line: 294

	   ROLLBACK TO delete_item_batch;
Line: 299

	  ROLLBACK TO delete_item_batch;
Line: 308

END delete_item_batch;
Line: 543

    select count(*) into l_name_count from iem_route_classifications where UPPER(name) = UPPER(p_name) and deleted_flag='N';
Line: 583

       	SELECT IEM_ROUTE_CLASSIFICATIONS_s1.nextval
    	INTO l_seq_id
    	FROM dual;
Line: 590

	INSERT INTO IEM_ROUTE_CLASSIFICATIONS
	(
	ROUTE_CLASSIFICATION_ID,
	NAME,
	DESCRIPTION,
	BOOLEAN_TYPE_CODE,
    procedure_name,
    deleted_flag,
	ATTRIBUTE1,
	ATTRIBUTE2,
	ATTRIBUTE3,
	ATTRIBUTE4,
	ATTRIBUTE5,

	ATTRIBUTE6,
	ATTRIBUTE7,
	ATTRIBUTE8,
	ATTRIBUTE9,
	ATTRIBUTE10,

	ATTRIBUTE11,

	ATTRIBUTE12,
	ATTRIBUTE13,
	ATTRIBUTE14,
	ATTRIBUTE15,
    ATTRIBUTE_CATEGORY,
    CREATED_BY,

	CREATION_DATE,
	LAST_UPDATED_BY,
	LAST_UPDATE_DATE,
	LAST_UPDATE_LOGIN

	)
	VALUES

	(
	G_CLASS_ID,
	p_name,
	l_description,
	p_boolean_type_code,
    l_proc_name,
    'N',
    NULL,
    NULL,
    NULL,

    NULL,
    NULL,
    NULL,
    NULL,
    NULL,

    NULL,
    NULL,
    NULL,
    NULL,

    NULL,
    NULL,

    NULL,
    NULL,
    decode(G_created_updated_by,null,-1,G_created_updated_by),
	sysdate,
    decode(G_created_updated_by,null,-1,G_created_updated_by),
    sysdate,
    decode(G_LAST_UPDATE_LOGIN,null,-1,G_LAST_UPDATE_LOGIN)

	);
Line: 807

   	SELECT IEM_ROUTE_CLASS_RULES_s1.nextval
	INTO l_seq_id
	FROM dual;
Line: 814

	INSERT INTO IEM_ROUTE_CLASS_RULES
	(
	ROUTE_CLASS_RULE_ID,
	ROUTE_CLASSIFICATION_ID,
	KEY_TYPE_CODE,
	OPERATOR_TYPE_CODE,
    VALUE,

	ATTRIBUTE1,
	ATTRIBUTE2,
	ATTRIBUTE3,
	ATTRIBUTE4,

	ATTRIBUTE5,
	ATTRIBUTE6,

	ATTRIBUTE7,
	ATTRIBUTE8,
	ATTRIBUTE9,
	ATTRIBUTE10,
	ATTRIBUTE11,
	ATTRIBUTE12,

	ATTRIBUTE13,
	ATTRIBUTE14,
	ATTRIBUTE15,

    ATTRIBUTE_CATEGORY,
    CREATED_BY,
	CREATION_DATE,
	LAST_UPDATED_BY,

	LAST_UPDATE_DATE,
	LAST_UPDATE_LOGIN
	)
	VALUES

	(
	l_seq_id,

	p_class_id,
	p_key_type_code,
	p_operator_type_code,
    p_value,
    NULL,
    NULL,

    NULL,
    NULL,
    NULL,
    NULL,

    NULL,

    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,

    NULL,
    decode(G_created_updated_by,null,-1,G_created_updated_by),
	sysdate,


    decode(G_created_updated_by,null,-1,G_created_updated_by),
    sysdate,
    decode(G_LAST_UPDATE_LOGIN,null,-1,G_LAST_UPDATE_LOGIN)
	);
Line: 946

PROCEDURE update_item_wrap (p_api_version_number    IN   NUMBER,
 	                         p_init_msg_list        IN   VARCHAR2 := null,
	                         p_commit	            IN   VARCHAR2 := null,
	                         p_class_id             IN   NUMBER ,
  	                         p_name                 IN   VARCHAR2:= null,
  	                         p_ruling_chain	        IN   VARCHAR2:= null,
                             p_description          IN   VARCHAR2:= null,
                             p_procedure_name       IN   VARCHAR2:= null,
                             --below is the data for update
                             p_update_rule_ids_tbl IN  jtf_varchar2_Table_100,
                             p_update_rule_keys_tbl IN  jtf_varchar2_Table_100,
  	                         p_update_rule_operators_tbl IN  jtf_varchar2_Table_100,
                             p_update_rule_values_tbl IN  jtf_varchar2_Table_300,
                             --below is the data for insert
                             p_new_rule_keys_tbl IN  jtf_varchar2_Table_100,
  	                         p_new_rule_operators_tbl IN  jtf_varchar2_Table_100,
                             p_new_rule_values_tbl IN  jtf_varchar2_Table_300,
                             --below is the data to be removed
                             p_remove_rule_ids_tbl IN  jtf_varchar2_Table_100,
                             x_return_status         OUT NOCOPY VARCHAR2,
                             x_msg_count             OUT NOCOPY NUMBER,
                             x_msg_data              OUT NOCOPY VARCHAR2 )is


    l_api_name              VARCHAR2(255):='update_item_wrap';
Line: 977

    IEM_NO_RT_CLASS_UPDATE      EXCEPTION;
Line: 978

    IEM_NO_RULE_UPDATE          EXCEPTION;
Line: 979

    IEM_RULE_NOT_DELETED        EXCEPTION;
Line: 988

SAVEPOINT  update_item_wrap;
Line: 1017

  select count(*) into l_class from iem_route_classifications where route_classification_id = p_class_id;
Line: 1021

    raise IEM_NO_RT_CLASS_UPDATE;
Line: 1027

        l_return_type := p_update_rule_keys_tbl(1);
Line: 1035

    iem_route_class_pvt.update_item_class(
                                p_api_version_number => l_api_version_number,
                    	  	    p_init_msg_list => FND_API.G_FALSE,
   	                            p_commit => FND_API.G_FALSE,
			                    p_class_id => p_class_id,
  			                    p_description	=>p_description,
  			                    p_ruling_chain	=>p_ruling_chain,
                                p_proc_name => l_proc_name,
                                p_return_type => l_return_type,
                               x_return_status => l_return_status,
                               x_msg_count => l_msg_count,
                               x_msg_data => l_msg_data);
Line: 1049

    raise IEM_NO_RT_CLASS_UPDATE;
Line: 1056

  if ( p_update_rule_ids_tbl.count <>0 ) then

   FOR i IN p_update_rule_ids_tbl.FIRST..p_update_rule_ids_tbl.LAST   loop
      iem_route_class_pvt.update_item_rule(p_api_version_number => l_api_version_number,
                      	  	    p_init_msg_list => FND_API.G_FALSE,
	                            p_commit => FND_API.G_FALSE,


  			                   p_route_class_rule_id => p_update_rule_ids_tbl(i),
  			                   p_key_type_code	=>p_update_rule_keys_tbl(i),
  			                   p_operator_type_code	=>p_update_rule_operators_tbl(i),
                               p_value => p_update_rule_values_tbl(i),



                               x_return_status => l_return_status,
                               x_msg_count => l_msg_count,
                               x_msg_data => l_msg_data);
Line: 1076

          raise IEM_NO_RULE_UPDATE;
Line: 1090

        DELETE
        FROM IEM_ROUTE_CLASS_RULES
        WHERE route_class_rule_id = p_remove_rule_ids_tbl(i);
Line: 1098

        raise IEM_RULE_NOT_DELETED;
Line: 1127

     select count(*) into l_rule_count from iem_route_class_rules where route_classification_id = p_class_id;
Line: 1142

        WHEN IEM_NO_RT_CLASS_UPDATE THEN
      	   ROLLBACK TO update_item_wrap;
Line: 1146

           FND_MESSAGE.SET_NAME('IEM','IEM_NO_RT_CLASS_UPDATE');
Line: 1151

        WHEN IEM_NO_RULE_UPDATE THEN
      	   ROLLBACK TO update_item_wrap;
Line: 1154

           FND_MESSAGE.SET_NAME('IEM','IEM_NO_RULE_UPDATE');
Line: 1160

        WHEN IEM_RULE_NOT_DELETED THEN

      	   ROLLBACK TO update_item_wrap;
Line: 1163

           FND_MESSAGE.SET_NAME('IEM','IEM_RULE_NOT_DELETED');
Line: 1170

      	   ROLLBACK TO update_item_wrap;
Line: 1179

      	   ROLLBACK TO update_item_wrap;
Line: 1187

            ROLLBACK TO update_item_wrap;
Line: 1194

            ROLLBACK TO update_item_wrap;
Line: 1200

            ROLLBACK TO update_item_wrap;
Line: 1211

END update_item_wrap;
Line: 1213

PROCEDURE update_item_class (
                 p_api_version_number   IN   NUMBER,
    	  	     p_init_msg_list        IN   VARCHAR2 := null,
    	    	 p_commit	            IN   VARCHAR2 := null,
    			 p_class_id             IN   NUMBER ,
                 p_proc_name	        IN   VARCHAR2:= null,
                 p_return_type          IN   VARCHAR2:= null,
    			 p_description	        IN   VARCHAR2:= null,
    			 p_ruling_chain	        IN   VARCHAR2:= null,
			     x_return_status	    OUT	NOCOPY VARCHAR2,
  		  	     x_msg_count	        OUT NOCOPY NUMBER,
	  	  	     x_msg_data	            OUT	NOCOPY VARCHAR2
			 ) is
	l_api_name        		VARCHAR2(255):='update_item_class';
Line: 1242

  SAVEPOINT		update_item_class;
Line: 1267

   /* select count(*) into l_name_count from iem_route_classifications where UPPER(name) = UPPER(p_name) and route_classification_id <> p_class_id;
Line: 1322

	update IEM_ROUTE_CLASSIFICATIONS
	set
	       description=decode(l_description,FND_API.G_MISS_CHAR,description,l_description),
	       boolean_type_code=decode(l_ruling_chain,FND_API.G_MISS_CHAR,boolean_type_code,l_ruling_chain),
           procedure_name=decode(l_proc_name,FND_API.G_MISS_CHAR,procedure_name,l_proc_name),
           LAST_UPDATED_BY = decode(G_created_updated_by,null,-1,G_created_updated_by),
           LAST_UPDATE_DATE = sysdate,
           LAST_UPDATE_LOGIN = decode(G_LAST_UPDATE_LOGIN,null,-1,G_LAST_UPDATE_LOGIN)
	where route_classification_id=p_class_id;
Line: 1347

	 ROLLBACK TO update_item_class;
Line: 1352

	   ROLLBACK TO update_item_class;
Line: 1359

	   ROLLBACK TO update_item_class;
Line: 1368

	   ROLLBACK TO update_item_class;
Line: 1377

	   ROLLBACK TO update_item_class;
Line: 1388

	ROLLBACK TO update_item_class;
Line: 1406

END	update_item_class;
Line: 1410

PROCEDURE update_item_rule (p_api_version_number    IN   NUMBER,
     	  	     p_init_msg_list  IN   VARCHAR2 := null,
    	    	 p_commit	    IN   VARCHAR2 := null,

                 p_route_class_rule_id IN NUMBER ,
      			 p_key_type_code IN   VARCHAR2:= null,
      			 p_operator_type_code	IN   VARCHAR2:=null,
      			 p_value	IN   VARCHAR2:=null,

			      x_return_status	OUT	NOCOPY VARCHAR2,
  		  	      x_msg_count	    OUT NOCOPY NUMBER,
	  	  	      x_msg_data	    OUT	NOCOPY VARCHAR2
			 ) is
	l_api_name        		VARCHAR2(255):='update_item_rule';
Line: 1428

     IEM_NO_RULE_UPDATE     EXCEPTION;
Line: 1434

  SAVEPOINT		update_item_rule;
Line: 1457

  select count(*) into l_rule from iem_route_class_rules
  where route_class_rule_id = p_route_class_rule_id;
Line: 1461

    raise IEM_NO_RULE_UPDATE;
Line: 1491

    update IEM_ROUTE_CLASS_RULES
	set

           key_type_code=decode(p_key_type_code,null,key_type_code,p_key_type_code),
	       operator_type_code=decode(p_operator_type_code,null,operator_type_code,p_operator_type_code),
	       value=decode(p_value,null,value,p_value),
           LAST_UPDATED_BY = decode(G_created_updated_by,null,-1,G_created_updated_by),
           LAST_UPDATE_DATE = sysdate,

           LAST_UPDATE_LOGIN = decode(G_LAST_UPDATE_LOGIN,null,-1,G_LAST_UPDATE_LOGIN)
	where route_class_rule_id=p_route_class_rule_id;
Line: 1518

    	   ROLLBACK TO update_item_rule;
Line: 1524

    WHEN IEM_NO_RULE_UPDATE THEN
    	   ROLLBACK TO update_item_rule;
Line: 1526

       FND_MESSAGE.SET_NAME('IEM','IEM_NO_RULE_UPDATE');
Line: 1532

    	   ROLLBACK TO update_item_rule;
Line: 1540

	ROLLBACK TO update_item_rule;
Line: 1549

	ROLLBACK TO update_item_rule;
Line: 1559

	ROLLBACK TO update_item_rule;
Line: 1577

 END	update_item_rule;
Line: 1613

    IEM_RT_ClASS_ACCT_NOT_UPDATED   EXCEPTION;
Line: 1645

    select count(*) into l_class from iem_route_classifications

        where route_classification_id = p_class_id;
Line: 1657

    select count(*) into l_account from iem_mstemail_accounts
        where email_account_id = p_email_account_id  and deleted_flag='N';
Line: 1684

          raise IEM_RT_ClASS_ACCT_NOT_UPDATED;
Line: 1687

  select name into l_class_name from iem_route_classifications where route_classification_id = p_class_id;
Line: 1752

    WHEN IEM_RT_ClASS_ACCT_NOT_UPDATED THEN

      	   ROLLBACK TO create_wrap_acct_rt_class_PVT;
Line: 1755

           FND_MESSAGE.SET_NAME('IEM','IEM_RT_ClASS_ACCT_NOT_UPDATED');
Line: 1853

	SELECT IEM_ACCOUNT_ROUTE_CLASS_s1.nextval
	INTO l_seq_id
	FROM dual;
Line: 1857

	INSERT INTO IEM_ACCOUNT_ROUTE_CLASS

	(
	ROUTE_CLASSIFICATION_ID,

	EMAIL_ACCOUNT_ID,

    ACCOUNT_ROUTE_CLASS_ID,
	ENABLED_FLAG,
    PRIORITY,
	ATTRIBUTE1,
	ATTRIBUTE2,
	ATTRIBUTE3,
	ATTRIBUTE4,
	ATTRIBUTE5,
	ATTRIBUTE6,

	ATTRIBUTE7,
	ATTRIBUTE8,
	ATTRIBUTE9,


	ATTRIBUTE10,
	ATTRIBUTE11,
	ATTRIBUTE12,
	ATTRIBUTE13,
	ATTRIBUTE14,
	ATTRIBUTE15,
    ATTRIBUTE_CATEGORY,
    CREATED_BY,
	CREATION_DATE,

	LAST_UPDATED_BY,
	LAST_UPDATE_DATE,

	LAST_UPDATE_LOGIN

	)
   VALUES
   (
   p_class_id,
   p_email_account_id,
   l_seq_id,
   p_enabled_flag,
   p_priority,

   NULL,

   NULL,
   NULL,
   NULL,
   NULL,

   NULL,
   NULL,
   NULL,
   NULL,
   NULL,
   NULL,
   NULL,


   NULL,
   NULL,
   NULL,
   NULL,
   decode(G_created_updated_by,null,-1,G_created_updated_by),
   sysdate,

   decode(G_created_updated_by,null,-1,G_created_updated_by),
   sysdate,
   decode(G_LAST_UPDATE_LOGIN,null,-1,G_LAST_UPDATE_LOGIN)
	);
Line: 1993

PROCEDURE update_wrap_account_class (p_api_version_number    IN   NUMBER,
 		  	      p_init_msg_list  IN   VARCHAR2 := null,
		    	  p_commit	    IN   VARCHAR2 := null,

                 p_email_account_id IN NUMBER,
  				 p_class_ids_tbl IN  jtf_varchar2_Table_100,
                 p_upd_enable_flag_tbl IN  jtf_varchar2_Table_100,
                 --p_upd_priority_tbl IN  jtf_varchar2_Table_100,

                 p_delete_class_ids_tbl IN  jtf_varchar2_Table_100,

                 x_return_status	OUT NOCOPY VARCHAR2,
  		  	     x_msg_count	    OUT NOCOPY NUMBER,
	  	  	     x_msg_data	        OUT	NOCOPY VARCHAR2

			 ) is
	l_api_name        		VARCHAR2(255):='update_wrap_account_class';
Line: 2018

    IEM_ACCOUNT_CLASS_NOT_DELETED  EXCEPTION;
Line: 2019

    IEM_RT_CLASS_ACCT_NOT_UPDATE   EXCEPTION;
Line: 2022

SAVEPOINT		update_wrap_acct_class_1_PVT;
Line: 2047

        iem_route_class_pvt.update_account_class (p_api_version_number =>p_api_version_number,
                             p_init_msg_list => p_init_msg_list,

                             p_commit => FND_API.G_TRUE,

                             p_class_id =>  p_class_ids_tbl(i),
                             p_email_account_id => p_email_account_id,
                             p_enabled_flag =>  p_upd_enable_flag_tbl(i),
                             --p_priority => p_upd_priority_tbl(i),

                              x_return_status =>l_return_status,
                              x_msg_count   => l_msg_count,

                              x_msg_data => l_msg_data);
Line: 2062

            raise IEM_RT_CLASS_ACCT_NOT_UPDATE;
Line: 2070

if ( p_delete_class_ids_tbl.count <> 0 ) then
        iem_route_class_pvt.delete_acct_class_batch
             (p_api_version_number   =>  p_api_version_number,
              P_init_msg_list   => p_init_msg_list,

              p_commit       => FND_API.G_TRUE,
              p_class_ids_tbl =>  p_delete_class_ids_tbl,

              p_account_id => p_email_account_id,
              x_return_status =>  l_return_status,
              x_msg_count   =>   l_msg_count,
              x_msg_data    =>    l_msg_data) ;
Line: 2105

      	   --ROLLBACK TO update_wrap_acct_class_2_PVT;
Line: 2110

    WHEN IEM_RT_CLASS_ACCT_NOT_UPDATE THEN
      	   ROLLBACK TO update_wrap_acct_class_1_PVT;
Line: 2112

           FND_MESSAGE.SET_NAME('IEM','IEM_RT_CLASS_ACCT_NOT_UPDATE');
Line: 2116

    WHEN IEM_ACCOUNT_CLASS_NOT_DELETED THEN
      	   ROLLBACK TO update_wrap_acct_class_2_PVT;
Line: 2120

           FND_MESSAGE.SET_NAME('IEM','IEM_ACCOUNT_CLASS_NOT_DELETED');
Line: 2125

	ROLLBACK TO update_wrap_acct_class_1_PVT;
Line: 2136

	ROLLBACK TO update_wrap_acct_class_1_PVT;
Line: 2145

	ROLLBACK TO update_wrap_acct_class_1_PVT;
Line: 2165

 END	update_wrap_account_class;
Line: 2168

PROCEDURE update_account_class(p_api_version_number    IN   NUMBER,
 	  	          p_init_msg_list  IN   VARCHAR2 := null,
	    	      p_commit	    IN   VARCHAR2 := null,
                  p_class_id    IN  NUMBER ,
			      p_email_account_id IN NUMBER,
  			      p_enabled_flag	IN   VARCHAR2:= null,
  			      p_priority	IN   VARCHAR2:= null,
                  x_return_status	OUT	NOCOPY VARCHAR2,
  		  	      x_msg_count	    OUT	NOCOPY NUMBER,
	  	  	      x_msg_data	    OUT	NOCOPY VARCHAR2
			 ) is
	l_api_name        		VARCHAR2(255):='update_account_class';
Line: 2184

     l_LAST_UPDATED_BY    NUMBER:=TO_NUMBER (FND_PROFILE.VALUE('USER_ID')) ;
Line: 2185

     l_LAST_UPDATE_DATE    DATE:=SYSDATE;
Line: 2186

     l_LAST_UPDATE_LOGIN    NUMBER:=TO_NUMBER (FND_PROFILE.VALUE('LOGIN_ ID')) ;
Line: 2194

SAVEPOINT		update_account_class_PVT;
Line: 2217

	Select count(*) into l_class_cnt from iem_route_classifications
	where route_classification_id=p_class_id;
Line: 2230

	Select count(*) into l_acct_cnt from iem_mstemail_accounts
	where email_account_id=p_email_account_id and deleted_flag='N' ;
Line: 2241

	update IEM_ACCOUNT_ROUTE_CLASS
	set
	       enabled_flag=decode(p_enabled_flag,FND_API.G_MISS_CHAR,enabled_flag,p_enabled_flag),
	       priority=decode(p_priority,null,priority,p_priority),
           LAST_UPDATED_BY = decode(G_created_updated_by,null,-1,G_created_updated_by),
           LAST_UPDATE_DATE = sysdate,
           LAST_UPDATE_LOGIN = decode(G_LAST_UPDATE_LOGIN,null,-1,G_LAST_UPDATE_LOGIN)
     where route_classification_id = p_class_id and email_account_id = p_email_account_id;
Line: 2270

      	   ROLLBACK TO update_account_class_PVT;
Line: 2277

      	   ROLLBACK TO update_account_class_PVT;
Line: 2286

	ROLLBACK TO update_account_class_PVT;
Line: 2293

	ROLLBACK TO update_account_class_PVT;
Line: 2303

	ROLLBACK TO update_account_class_PVT;
Line: 2321

 END	update_account_class;
Line: 2323

PROCEDURE delete_acct_class_batch
     (p_api_version_number     IN  NUMBER,

      P_init_msg_list   IN  VARCHAR2 := null,
      p_commit          IN  VARCHAR2 := null,
      p_class_ids_tbl IN  jtf_varchar2_Table_100,

      p_account_id      IN NUMBER,
      x_return_status   OUT NOCOPY VARCHAR2,
      x_msg_count       OUT NOCOPY NUMBER,
      x_msg_data        OUT NOCOPY VARCHAR2)
IS
    i       INTEGER;
Line: 2336

    l_api_name		varchar2(30):='delete_acct_class_batch';
Line: 2341

    l_undeleted_class_name  varchar2(2000);
Line: 2342

    l_undeleted_class_name_1 varchar2(30);
Line: 2347

    IEM_ACCOUNT_CLASS_NOT_DELETED     EXCEPTION;
Line: 2351

    SAVEPOINT delete_acct_class_batch;
Line: 2380

	select count(*) into l_count_msg_postmdt from iem_rt_proc_emails where rt_classification_id=p_class_ids_tbl(i) and email_account_id = p_account_id;
Line: 2383

              select name into l_undeleted_class_name_1 from iem_route_classifications where route_classification_id=p_class_ids_tbl(i);
Line: 2384

              l_undeleted_class_name := l_undeleted_class_name||l_undeleted_class_name_1||', ';
Line: 2406

            Update iem_account_route_class set priority=priority-1
    					           where  email_account_id = p_account_id and priority > (Select priority from iem_account_route_class
    					           where route_classification_id=p_class_ids_tbl(i) and  email_account_id=p_account_id);
Line: 2410

            DELETE
            FROM IEM_ACCOUNT_ROUTE_CLASS
            WHERE route_classification_id = p_class_ids_tbl(i) and email_account_id = p_account_id;
Line: 2415

              raise IEM_ACCOUNT_CLASS_NOT_DELETED;
Line: 2427

if l_undeleted_class_name is not null  then
    l_undeleted_class_name := RTRIM(l_undeleted_class_name, ', ');
Line: 2432

    FND_MESSAGE.SET_TOKEN('CLASSIFICATION', l_undeleted_class_name);
Line: 2450

   WHEN IEM_ACCOUNT_CLASS_NOT_DELETED THEN
        ROLLBACK TO delete_acct_class_batch;
Line: 2453

        FND_MESSAGE.SET_NAME('IEM', 'IEM_ACCOUNT_CLASS_NOT_DELETED');
Line: 2459

	   ROLLBACK TO delete_acct_class_batch;
Line: 2465

	   ROLLBACK TO delete_acct_class_batch;
Line: 2471

	  ROLLBACK TO delete_acct_class_batch;
Line: 2480

 END delete_acct_class_batch;
Line: 2484

PROCEDURE delete_folder_on_classId
     (p_api_version_number     IN  NUMBER,
      P_init_msg_list   IN  VARCHAR2 := null,
      p_commit          IN  VARCHAR2 := null,
      p_classification_id IN  NUMBER,
      x_return_status   OUT NOCOPY VARCHAR2,
      x_msg_count       OUT NOCOPY NUMBER,
      x_msg_data        OUT NOCOPY VARCHAR2)
IS
	l_api_name        		VARCHAR2(255):='delete_folder_on_classId';
Line: 2501

        select unique email_account_id from iem_account_route_class where route_classification_id = l_classification_id;
Line: 2504

     IEM_UNEXPT_ERR_DELETE_FOLDER EXCEPTION;
Line: 2508

      SAVEPOINT delete_folder_on_classId;
Line: 2566

        ROLLBACK TO delete_folder_on_classId;
Line: 2572

   WHEN IEM_UNEXPT_ERR_DELETE_FOLDER THEN
        ROLLBACK TO delete_folder_on_classId;
Line: 2582

	   ROLLBACK TO delete_folder_on_classId;
Line: 2589

	   ROLLBACK TO delete_folder_on_classId;
Line: 2595

	  ROLLBACK TO delete_folder_on_classId;
Line: 2604

 END delete_folder_on_classId;
Line: 2682

    select DB_SERVER_ID
            INTO    l_db_server_id
            FROM    IEM_EMAIL_ACCOUNTS
            WHERE   email_account_id = p_email_account_id;
Line: 2687

    IEM_DB_CONNECTIONS_PVT.select_item(
                p_api_version_number => 1.0,

                p_db_server_id => l_db_server_id,

                p_is_admin => 'P',
                    x_db_link => l_im_link1,
                    x_return_status =>  l_stat,
                    x_msg_count     => l_count,
                    x_msg_data      => l_data );
Line: 2703

    select email_user, domain, email_password into l_email_acct_Rec from iem_email_accounts
        where email_account_id = p_email_account_id;
Line: 2827

PROCEDURE delete_folder (
                 p_api_version_number  IN   NUMBER,
 		  	     p_init_msg_list       IN   VARCHAR2 := null,
		    	 p_commit              IN   VARCHAR2 := null,
            	 p_email_account_id    IN   NUMBER,
  				 p_class_id            IN   NUMBER,
                 x_return_status	   OUT NOCOPY VARCHAR2,
  		  	     x_msg_count	       OUT NOCOPY NUMBER,
	  	  	     x_msg_data	           OUT NOCOPY VARCHAR2
			 ) is

     TYPE email_acct_Rec IS RECORD (
            email_user      iem_email_accounts.email_user%TYPE,

            domain          iem_email_accounts.domain%TYPE,
            email_password  iem_email_accounts.email_password%TYPE);
Line: 2845

	l_api_name        		VARCHAR2(255):='delete_folder';
Line: 2871

  SAVEPOINT		delete_folder_PVT;
Line: 2898

    select DB_SERVER_ID
            INTO    l_db_server_id
            FROM    IEM_EMAIL_ACCOUNTS
            WHERE   email_account_id = p_email_account_id;
Line: 2904

    IEM_DB_CONNECTIONS_PVT.select_item(
                p_api_version_number => 1.0,

                p_db_server_id => l_db_server_id,
                p_is_admin => 'P',
                    x_db_link => l_im_link1,
                    x_return_status =>  l_stat,
                    x_msg_count     => l_count,
                    x_msg_data      => l_data );
Line: 2920

    select email_user, domain, email_password into l_email_acct_Rec from iem_email_accounts
        where email_account_id = p_email_account_id;
Line: 2947

    select name into l_folder from iem_route_classifications where route_classification_id = p_class_id;
Line: 2966

                l_str:='begin :l_ret:=im_api.deletefolder'||l_im_link||'(:a_folder);end;';
Line: 2998

        ROLLBACK TO delete_folder_PVT;
Line: 3005

        ROLLBACK TO delete_folder_PVT;
Line: 3012

        ROLLBACK TO delete_folder_PVT;
Line: 3020

	ROLLBACK TO delete_folder_PVT;
Line: 3031

	   ROLLBACK TO delete_folder_PVT;
Line: 3041

	ROLLBACK TO delete_folder_PVT;
Line: 3060

 END	delete_folder;
Line: 3065

PROCEDURE delete_association_on_acctId
     (p_api_version_number     IN  NUMBER,
      P_init_msg_list   IN  VARCHAR2 := null,
      p_commit          IN  VARCHAR2 := null,
      p_email_account_id IN  NUMBER,

      x_return_status   OUT NOCOPY VARCHAR2,
      x_msg_count       OUT NOCOPY NUMBER,
      x_msg_data        OUT NOCOPY VARCHAR2)

IS
	l_api_name        		VARCHAR2(255):='delete_association_on_acctId';
Line: 3083

        select unique route_classification_id from iem_account_route_class where email_account_id = l_account_id;
Line: 3086

     IEM_UNEXPT_ERR_DELETE_FOLDER EXCEPTION;
Line: 3092

      SAVEPOINT delete_association_on_acctId;
Line: 3141

  delete from iem_account_route_class where email_account_id = p_email_account_id;
Line: 3158

        ROLLBACK TO delete_association_on_acctId;
Line: 3162

   WHEN IEM_UNEXPT_ERR_DELETE_FOLDER THEN
        ROLLBACK TO delete_association_on_acctId;
Line: 3165

        FND_MESSAGE.SET_NAME('IEM', 'IEM_UNEXPT_ERR_DELETE_FOLDER');
Line: 3172

	   ROLLBACK TO delete_association_on_acctId;
Line: 3178

	   ROLLBACK TO delete_association_on_acctId;
Line: 3183

	  ROLLBACK TO delete_association_on_acctId;
Line: 3193

 END delete_association_on_acctId;