You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ddlutils-dev@db.apache.org by to...@apache.org on 2006/01/02 22:42:46 UTC
svn commit: r365443 [2/2] - in /db/ddlutils/trunk/src: check/
java/org/apache/ddlutils/ java/org/apache/ddlutils/dynabean/
java/org/apache/ddlutils/io/ java/org/apache/ddlutils/io/converters/
java/org/apache/ddlutils/model/ java/org/apache/ddlutils/pla...
Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/task/Command.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/task/Command.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/task/Command.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/task/Command.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.task;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/task/ConvertingDatabaseCommand.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/task/ConvertingDatabaseCommand.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/task/ConvertingDatabaseCommand.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/task/ConvertingDatabaseCommand.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.task;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/task/CreateDatabaseCommand.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/task/CreateDatabaseCommand.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/task/CreateDatabaseCommand.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/task/CreateDatabaseCommand.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.task;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DatabaseCommand.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DatabaseCommand.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DatabaseCommand.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DatabaseCommand.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.task;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DatabaseCommandWithCreationParameters.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DatabaseCommandWithCreationParameters.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DatabaseCommandWithCreationParameters.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DatabaseCommandWithCreationParameters.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.task;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DatabaseTaskBase.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DatabaseTaskBase.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DatabaseTaskBase.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DatabaseTaskBase.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.task;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DatabaseToDdlTask.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DatabaseToDdlTask.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DatabaseToDdlTask.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DatabaseToDdlTask.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.task;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DdlToDatabaseTask.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DdlToDatabaseTask.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DdlToDatabaseTask.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DdlToDatabaseTask.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.task;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DropDatabaseCommand.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DropDatabaseCommand.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DropDatabaseCommand.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DropDatabaseCommand.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.task;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DumpMetadataTask.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DumpMetadataTask.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DumpMetadataTask.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DumpMetadataTask.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.task;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -470,6 +470,7 @@
* @param tableElem The XML element for the table
* @param metaData The database metadata
* @param catalogName The catalog name
+ * @param schemaName The schema name
* @param tableName The table name
*/
private void dumpColumns(Element tableElem, DatabaseMetaData metaData, String catalogName, String schemaName, String tableName) throws SQLException
@@ -543,6 +544,7 @@
* @param tableElem The XML element for the table
* @param metaData The database metadata
* @param catalogName The catalog name
+ * @param schemaName The schema name
* @param tableName The table name
*/
private void dumpPKs(Element tableElem, DatabaseMetaData metaData, String catalogName, String schemaName, String tableName) throws SQLException
@@ -573,6 +575,7 @@
* @param tableElem The XML element for the table
* @param metaData The database metadata
* @param catalogName The catalog name
+ * @param schemaName The schema name
* @param tableName The table name
*/
private void dumpVersionColumns(Element tableElem, DatabaseMetaData metaData, String catalogName, String schemaName, String tableName) throws SQLException
@@ -621,6 +624,7 @@
* @param tableElem The XML element for the table
* @param metaData The database metadata
* @param catalogName The catalog name
+ * @param schemaName The schema name
* @param tableName The table name
*/
private void dumpFKs(Element tableElem, DatabaseMetaData metaData, String catalogName, String schemaName, String tableName) throws SQLException
@@ -710,6 +714,7 @@
* @param tableElem The XML element for the table
* @param metaData The database metadata
* @param catalogName The catalog name
+ * @param schemaName The schema name
* @param tableName The table name
*/
private void dumpIndices(Element tableElem, DatabaseMetaData metaData, String catalogName, String schemaName, String tableName) throws SQLException
@@ -823,10 +828,11 @@
/**
* Dumps the contents of the indicated procedure.
*
- * @param procedureElem The XML element for the procedure
- * @param metaData The database metadata
- * @param catalogName The catalog name
- * @param procedureName The procedure name
+ * @param procedureElem The XML element for the procedure
+ * @param metaData The database metadata
+ * @param catalogName The catalog name
+ * @param schemaName The schema name
+ * @param procedureName The procedure name
*/
private void dumpProcedure(Element procedureElem, DatabaseMetaData metaData, String catalogName, String schemaName, String procedureName) throws SQLException
{
Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/task/Parameter.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/task/Parameter.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/task/Parameter.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/task/Parameter.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.task;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/task/PlatformConfiguration.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/task/PlatformConfiguration.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/task/PlatformConfiguration.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/task/PlatformConfiguration.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.task;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/task/TableSpecificParameter.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/task/TableSpecificParameter.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/task/TableSpecificParameter.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/task/TableSpecificParameter.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.task;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteDataToDatabaseCommand.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteDataToDatabaseCommand.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteDataToDatabaseCommand.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteDataToDatabaseCommand.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.task;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteDataToFileCommand.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteDataToFileCommand.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteDataToFileCommand.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteDataToFileCommand.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.task;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteDtdToFileCommand.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteDtdToFileCommand.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteDtdToFileCommand.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteDtdToFileCommand.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.task;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteSchemaSqlToFileCommand.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteSchemaSqlToFileCommand.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteSchemaSqlToFileCommand.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteSchemaSqlToFileCommand.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.task;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteSchemaToDatabaseCommand.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteSchemaToDatabaseCommand.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteSchemaToDatabaseCommand.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteSchemaToDatabaseCommand.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.task;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteSchemaToFileCommand.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteSchemaToFileCommand.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteSchemaToFileCommand.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteSchemaToFileCommand.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.task;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/util/DatabaseTestHelper.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/util/DatabaseTestHelper.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/util/DatabaseTestHelper.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/util/DatabaseTestHelper.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.util;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/util/Jdbc3Utils.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/util/Jdbc3Utils.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/util/Jdbc3Utils.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/util/Jdbc3Utils.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.util;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/util/JdbcSupport.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/util/JdbcSupport.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/util/JdbcSupport.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/util/JdbcSupport.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.util;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/RunAllTests.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/RunAllTests.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/RunAllTests.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/RunAllTests.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/TestDatabaseWriterBase.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/TestDatabaseWriterBase.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/TestDatabaseWriterBase.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/TestDatabaseWriterBase.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -189,6 +189,7 @@
* Inserts data into the database.
*
* @param dataXml The data xml
+ * @return The database
*/
protected Database insertData(String dataXml) throws DynaSqlException
{
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/TestPlatformBase.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/TestPlatformBase.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/TestPlatformBase.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/TestPlatformBase.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/dynabean/TestDynaSqlQueries.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/dynabean/TestDynaSqlQueries.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/dynabean/TestDynaSqlQueries.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/dynabean/TestDynaSqlQueries.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.dynabean;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/io/ConstraintsTestBase.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/io/ConstraintsTestBase.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/io/ConstraintsTestBase.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/io/ConstraintsTestBase.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.io;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -173,7 +173,9 @@
"</database>";
/**
- * Tests a nullable column.
+ * Tests a nullable column.
+ *
+ * @param modelXml The model to be tested in XML form
*/
protected void performConstraintsTest(String modelXml)
{
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/io/DatatypesTestBase.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/io/DatatypesTestBase.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/io/DatatypesTestBase.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/io/DatatypesTestBase.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.io;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/io/RoundtripTestBase.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/io/RoundtripTestBase.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/io/RoundtripTestBase.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/io/RoundtripTestBase.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.io;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestAgainstAxionDb.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestAgainstAxionDb.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestAgainstAxionDb.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestAgainstAxionDb.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.io;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -68,7 +68,7 @@
}
/**
- * @see org.apache.ddlutils.TestDatabaseWriterBase#getDatabaseName()
+ * {@inheritDoc}
*/
protected String getDatabaseName()
{
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestDataReader.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestDataReader.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestDataReader.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestDataReader.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.io;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestDatabaseIO.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestDatabaseIO.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestDatabaseIO.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestDatabaseIO.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.io;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/io/derby/TestDerbyConstraints.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/io/derby/TestDerbyConstraints.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/io/derby/TestDerbyConstraints.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/io/derby/TestDerbyConstraints.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.io.derby;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/io/derby/TestDerbyDatatypes.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/io/derby/TestDerbyDatatypes.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/io/derby/TestDerbyDatatypes.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/io/derby/TestDerbyDatatypes.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.io.derby;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/io/hsqldb/TestHsqlDbConstraints.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/io/hsqldb/TestHsqlDbConstraints.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/io/hsqldb/TestHsqlDbConstraints.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/io/hsqldb/TestHsqlDbConstraints.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.io.hsqldb;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/io/hsqldb/TestHsqlDbDatatypes.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/io/hsqldb/TestHsqlDbDatatypes.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/io/hsqldb/TestHsqlDbDatatypes.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/io/hsqldb/TestHsqlDbDatatypes.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.io.hsqldb;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/io/mckoi/TestMckoiConstraints.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/io/mckoi/TestMckoiConstraints.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/io/mckoi/TestMckoiConstraints.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/io/mckoi/TestMckoiConstraints.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.io.mckoi;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/io/mckoi/TestMckoiDatatypes.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/io/mckoi/TestMckoiDatatypes.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/io/mckoi/TestMckoiDatatypes.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/io/mckoi/TestMckoiDatatypes.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.io.mckoi;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/io/postgresql/TestPostgreSqlConstraints.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/io/postgresql/TestPostgreSqlConstraints.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/io/postgresql/TestPostgreSqlConstraints.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/io/postgresql/TestPostgreSqlConstraints.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.io.postgresql;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/io/postgresql/TestPostgreSqlDatatypes.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/io/postgresql/TestPostgreSqlDatatypes.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/io/postgresql/TestPostgreSqlDatatypes.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/io/postgresql/TestPostgreSqlDatatypes.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.io.postgresql;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/model/TestArrayAccessAtTable.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/model/TestArrayAccessAtTable.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/model/TestArrayAccessAtTable.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/model/TestArrayAccessAtTable.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.model;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/SqlBuilderTest.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/SqlBuilderTest.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/SqlBuilderTest.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/SqlBuilderTest.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.platform;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,45 +26,66 @@
/**
* Test the SqlBuilder (abstract) class.
*
- * @author <a href="mailto:martin@mvdb.net">Martin van den Bemt</a>
+ * @author Martin van den Bemt
* @version $Revision: $
*/
-public class SqlBuilderTest extends TestPlatformBase {
-
- String xml = "<?xml version='1.0' encoding='ISO-8859-1'?>\n"+
- "<database name='ddlutils'>\n"+
- " <table name='TestTable'>\n"+
- " <column name='id' autoIncrement='true' type='INTEGER' primaryKey='true'/>\n"+
- " <column name='name' type='VARCHAR' size='15'/>\n"+
- " </table>\n"+
- "</database>";
+public class SqlBuilderTest extends TestPlatformBase
+{
+ /** The tested model. */
+ private static final String TEST_MODEL =
+ "<?xml version='1.0' encoding='ISO-8859-1'?>\n"+
+ "<database name='ddlutils'>\n"+
+ " <table name='TestTable'>\n"+
+ " <column name='id' autoIncrement='true' type='INTEGER' primaryKey='true'/>\n"+
+ " <column name='name' type='VARCHAR' size='15'/>\n"+
+ " </table>\n"+
+ "</database>";
+ /**
+ * {@inheritDoc}
+ */
public void setUp()
{
}
/**
- * Test the updateSql method
+ * Test the updateSql method.
*/
public void testUpdateSql()
{
SqlBuilder sqlBuilder = new SqlBuilderImpl(new PlatformInfo());
- Database database = parseDatabaseFromString(xml);
- Map map = new HashMap();
+ Database database = parseDatabaseFromString(TEST_MODEL);
+ Map map = new HashMap();
+
map.put("name", "ddlutils");
map.put("id", new Integer(0));
+
String sql = sqlBuilder.getUpdateSql(database.getTable(0), map, false);
- assertEquals("UPDATE \"TestTable\" SET \"name\" = 'ddlutils' WHERE \"id\" = '0'", sql);
- }
+ assertEquals("UPDATE \"TestTable\" SET \"name\" = 'ddlutils' WHERE \"id\" = '0'",
+ sql);
+ }
- protected String getDatabaseName() {
+ /**
+ * {@inheritDoc}
+ */
+ protected String getDatabaseName()
+ {
return null;
}
- public class SqlBuilderImpl extends SqlBuilder {
-
- public SqlBuilderImpl(PlatformInfo info) {
+ /**
+ * The tested builder.
+ */
+ public class SqlBuilderImpl extends SqlBuilder
+ {
+ /**
+ * Creates a new instance.
+ *
+ * @param info The platform info
+ */
+ public SqlBuilderImpl(PlatformInfo info)
+ {
super(info);
}
}
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestAxionPlatform.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestAxionPlatform.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestAxionPlatform.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestAxionPlatform.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.platform;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestCloudscapePlatform.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestCloudscapePlatform.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestCloudscapePlatform.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestCloudscapePlatform.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.platform;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestDB2Platform.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestDB2Platform.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestDB2Platform.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestDB2Platform.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.platform;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestDerbyPlatform.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestDerbyPlatform.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestDerbyPlatform.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestDerbyPlatform.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.platform;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestFirebirdPlatform.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestFirebirdPlatform.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestFirebirdPlatform.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestFirebirdPlatform.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.platform;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestHsqlDbPlatform.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestHsqlDbPlatform.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestHsqlDbPlatform.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestHsqlDbPlatform.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.platform;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestInterbasePlatform.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestInterbasePlatform.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestInterbasePlatform.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestInterbasePlatform.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.platform;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestMSSqlPlatform.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestMSSqlPlatform.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestMSSqlPlatform.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestMSSqlPlatform.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.platform;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestMaxDbPlatform.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestMaxDbPlatform.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestMaxDbPlatform.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestMaxDbPlatform.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.platform;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestMcKoiPlatform.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestMcKoiPlatform.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestMcKoiPlatform.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestMcKoiPlatform.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.platform;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestMySqlPlatform.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestMySqlPlatform.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestMySqlPlatform.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestMySqlPlatform.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.platform;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestOracle8Platform.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestOracle8Platform.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestOracle8Platform.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestOracle8Platform.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.platform;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestOracle9Platform.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestOracle9Platform.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestOracle9Platform.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestOracle9Platform.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.platform;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestPlatformImplBase.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestPlatformImplBase.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestPlatformImplBase.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestPlatformImplBase.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.platform;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -33,49 +33,62 @@
*/
public class TestPlatformImplBase extends TestPlatformBase
{
+ /** The tested model. */
+ private static final String TESTED_MODEL =
+ "<?xml version='1.0' encoding='ISO-8859-1'?>\n"+
+ "<database name='ddlutils'>\n"+
+ " <table name='TestTable'>\n"+
+ " <column name='id' autoIncrement='true' type='INTEGER' primaryKey='true'/>\n"+
+ " <column name='name' type='VARCHAR' size='15'/>\n"+
+ " </table>\n"+
+ "</database>";
- String xml = "<?xml version='1.0' encoding='ISO-8859-1'?>\n"+
- "<database name='ddlutils'>\n"+
- " <table name='TestTable'>\n"+
- " <column name='id' autoIncrement='true' type='INTEGER' primaryKey='true'/>\n"+
- " <column name='name' type='VARCHAR' size='15'/>\n"+
- " </table>\n"+
- "</database>";
-
+ /**
+ * {@inheritDoc}
+ */
public void setUp()
{
}
/**
- * Test the toColumnValues method
+ * Test the toColumnValues method.
*/
public void testToColumnValues()
{
- Database database = parseDatabaseFromString(xml);
+ Database database = parseDatabaseFromString(TESTED_MODEL);
PlatformImplBase platform = new PlatformBase();
- Table table = database.getTable(0);
- SqlDynaClass clz = SqlDynaClass.newInstance(table);
- DynaBean db = new SqlDynaBean(SqlDynaClass.newInstance(table));
+ Table table = database.getTable(0);
+ SqlDynaClass clz = SqlDynaClass.newInstance(table);
+ DynaBean db = new SqlDynaBean(SqlDynaClass.newInstance(table));
+
db.set("name", "name");
+
Map map = platform.toColumnValues(clz.getSqlDynaProperties(), db);
- assertEquals("name", map.get("name"));
- assertEquals(true, map.containsKey("id"));
+ assertEquals("name",
+ map.get("name"));
+ assertTrue(map.containsKey("id"));
}
-
+ /**
+ * The tested platform.
+ */
public class PlatformBase extends PlatformImplBase
{
+ /**
+ * {@inheritDoc}
+ */
public String getName()
{
return null;
}
}
-
- protected String getDatabaseName() {
+ /**
+ * {@inheritDoc}
+ */
+ protected String getDatabaseName()
+ {
return null;
}
-
-
}
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestPlatformUtils.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestPlatformUtils.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestPlatformUtils.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestPlatformUtils.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.platform;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestPostgresqlPlatform.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestPostgresqlPlatform.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestPostgresqlPlatform.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestPostgresqlPlatform.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.platform;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestSapDbPlatform.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestSapDbPlatform.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestSapDbPlatform.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestSapDbPlatform.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.platform;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestSybasePlatform.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestSybasePlatform.java?rev=365443&r1=365442&r2=365443&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestSybasePlatform.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/platform/TestSybasePlatform.java Mon Jan 2 13:41:06 2006
@@ -1,7 +1,7 @@
package org.apache.ddlutils.platform;
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.