db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r564376 - in /db/derby/code/trunk/java/engine/org/apache/derby: iapi/sql/dictionary/DataDictionary.java impl/sql/catalog/DataDictionaryImpl.java
Date Thu, 09 Aug 2007 20:44:03 GMT
Author: djd
Date: Thu Aug  9 13:44:02 2007
New Revision: 564376

URL: http://svn.apache.org/viewvc?view=rev&rev=564376
Log:
Fix the comments for DataDictionary.getSchemaDescriptor(UUID,...) to reflect reality.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/DataDictionary.java
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/DataDictionary.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/DataDictionary.java?view=diff&rev=564376&r1=564375&r2=564376
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/DataDictionary.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/DataDictionary.java
Thu Aug  9 13:44:02 2007
@@ -313,20 +313,14 @@
 						throws StandardException;
 
 	/**
-	 * Get the descriptor for the named schema. If the schemaId
-	 * parameter is NULL, it gets the descriptor for the current (default)
-	 * schema. Schema descriptors include authorization ids and schema ids.
-	 * SQL92 allows a schema to specify a default character set - we will
-	 * not support this.
+	 * Get the SchemaDescriptor for the given schema identifier. 
 	 *
 	 * @param schemaId	The id of the schema we're interested in.
-	 *			If the name is NULL, get the descriptor for the
-	 *			current schema.
 	 *
 	 * @param tc		The transaction controller to us when scanning
 	 *					SYSSCHEMAS
 	 *
-	 * @return	The descriptor for the schema.
+	 * @return	The descriptor for the schema, null if no such schema exists.
 	 *
 	 * @exception StandardException		Thrown on failure
 	 */

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java?view=diff&rev=564376&r1=564375&r2=564376
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java
Thu Aug  9 13:44:02 2007
@@ -1578,26 +1578,18 @@
 						false);
 	}
 
-	/**
-	 * Get the descriptor for the named schema. If the schemaId
-	 * parameter is NULL, it gets the descriptor for the current (default)
-	 * schema. Schema descriptors include authorization ids and schema ids.
-	 * SQL92 allows a schema to specify a default character set - we will
-	 * not support this.  Will check default schema for a match
-	 * before scanning a system table.
-	 * 
-	 * @param schemaId	The id of the schema we're interested in.
-	 *			If the name is NULL, get the descriptor for the
-	 *			current schema.
-	 * @param tc			TransactionController
-	 *
-	 *
-	 * @return	The descriptor for the schema.  <I> Warning: <\I> may
-	 * 			return NULL if schemaName is non-NULL and doesn't exist
-	 *			in SYSSCHEMAS
-	 *
-	 * @exception StandardException		Thrown on error
-	 */
+    /**
+     * Get the SchemaDescriptor for the given schema identifier. 
+     *
+     * @param schemaId  The id of the schema we're interested in.
+     *
+     * @param tc        The transaction controller to us when scanning
+     *                  SYSSCHEMAS
+     *
+     * @return  The descriptor for the schema, null if no such schema exists.
+     *
+     * @exception StandardException     Thrown on failure
+     */
 	public SchemaDescriptor	getSchemaDescriptor(UUID schemaId,
 									TransactionController tc)
 		throws StandardException



Mime
View raw message