You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "Viens, Stephen" <St...@LibertyMutual.com> on 2005/04/02 00:20:28 UTC

RE: TModel deletion

Vaughn, I've messed this up,  I may be able to correct it (the old way
was wrong too) over the weekend.
 
Steve
	-----Original Message-----
	From: Combs Vaughn T Civ AFRL/IFSE
[mailto:Vaughn.Combs@rl.af.mil] 
	Sent: Monday, March 28, 2005 12:33 PM
	To: 'juddi-dev@ws.apache.org'
	Subject: TModel deletion
	
	
	I notice that in JDBCDataStore the TModel and all dependents are
now actually deleted:
	 
	  /**
	   *
	   */
	  public void deleteTModel(String tModelKey)
	    throws org.apache.juddi.error.RegistryException
	  {
	    try
	    {
	      if ((tModelKey != null) && (connection != null))
	      {
	        // delete the dependents of TModel
	        TModelCategoryTable.delete(tModelKey,connection);
	        TModelDescTable.delete(tModelKey,connection);
	        TModelDocDescTable.delete(tModelKey,connection);
	        TModelIdentifierTable.delete(tModelKey,connection);
	 
	        // delete the TModel
	        TModelTable.delete(tModelKey,connection);
	      }
	    }
	    catch(java.sql.SQLException sqlex)
	    {
	      throw new RegistryException(sqlex);
	    }
	  }
	 
	This was not the case in RC3 (deleted boolean was set in TModel
table and all other dependents were left alone). I thought that the spec
would not allow actual removal?
	 
	Many Thanks,
	Vaughn