db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r557301 - in /db/derby/code/trunk/java/engine/org/apache/derby: database/Database.java impl/db/BasicDatabase.java
Date Wed, 18 Jul 2007 15:48:54 GMT
Author: djd
Date: Wed Jul 18 08:48:53 2007
New Revision: 557301

URL: http://svn.apache.org/viewvc?view=rev&rev=557301
Log:
DERBY-2397 (partial) Remove old unused drop all meta data statements method. Code is never
called
and has been copied into the upgrade code for use there.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/database/Database.java
    db/derby/code/trunk/java/engine/org/apache/derby/impl/db/BasicDatabase.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/database/Database.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/database/Database.java?view=diff&rev=557301&r1=557300&r2=557301
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/database/Database.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/database/Database.java Wed Jul 18 08:48:53
2007
@@ -57,17 +57,6 @@
 	 */
 	public boolean		isReadOnly();
 
-	/**
-	 * Delete all stored prepared statements that were
-	 * created for JDBC MetaData queries.
-	 *
-	 * @exception SQLException thrown on error deleting
-	 *		the stored prepared statements, most likely
-	 *		a deadlock or timeout.
-	 */
-	public void dropAllJDBCMetaDataSPSes()
-		throws SQLException;
-
     /**
      * Backup the database to a backup directory.  See online documentation
      * for more detail about how to use this feature.

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/db/BasicDatabase.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/db/BasicDatabase.java?view=diff&rev=557301&r1=557300&r2=557301
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/db/BasicDatabase.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/db/BasicDatabase.java Wed Jul 18
08:48:53 2007
@@ -566,50 +566,6 @@
 		return databaseID;
 	}
 
-	/**
-	 * Drop all Stored Prepared Statements that
-	 * have been created for JDBC MetaData queries.
-	 * Does NOT commit the current transaction
-	 * upon completation.  
-	 *
-	 * @exception SQLException on error, most likely
-	 *			a deadlock or timeout.
-	 */
-	public void dropAllJDBCMetaDataSPSes() throws SQLException
-	{
-		try
-		{
-			LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();
-
-			DataDictionary dd = lcc.getDataDictionary();
-
-			TransactionController tc = lcc.getTransactionExecute();
-
-			/*
-			** Inform the data dictionary we are going
-			** to perform some DDL
-			*/
-			dd.startWriting(lcc);
-
-			for (java.util.ListIterator li = dd.getAllSPSDescriptors().listIterator(); li.hasNext();
)
-			{
-				SPSDescriptor spsd = (SPSDescriptor) li.next();
-
-				/*
-				** Is it in SYS? if so, zap it. Can't drop metadata SPS in SYSIBM, JCC depends on it.
-				*/
-				if (spsd.getSchemaDescriptor().isSystemSchema() && !spsd.getSchemaDescriptor().isSYSIBM())
-				{
-					dd.dropSPSDescriptor(spsd, tc);
-					dd.dropDependentsStoredDependencies(spsd.getUUID(), tc);
-				}
-			}
-		} catch (StandardException se)
-		{
-			throw PublicAPI.wrapStandardException(se);
-		}
-	}
-
 	/*
 	** Return an Object instead of a ResourceAdapter
 	** so that XA classes are only used where needed;



Mime
View raw message