org.apache.ddlutils.task
Class DatabaseCommandWithCreationParameters

java.lang.Object
  extended byorg.apache.ddlutils.task.DatabaseCommand
      extended byorg.apache.ddlutils.task.DatabaseCommandWithCreationParameters
All Implemented Interfaces:
Command
Direct Known Subclasses:
WriteSchemaSqlToFileCommand, WriteSchemaToDatabaseCommand

public abstract class DatabaseCommandWithCreationParameters
extends DatabaseCommand

Base type for database commands that use creation parameters.

Version:
$Revision: 289996 $

Field Summary
 
Fields inherited from class org.apache.ddlutils.task.DatabaseCommand
_log
 
Constructor Summary
DatabaseCommandWithCreationParameters()
           
 
Method Summary
 void addConfiguredParameter(TableSpecificParameter param)
          Adds a parameter which is a name-value pair.
protected  CreationParameters getFilteredParameters(Database model, String platformName, boolean isCaseSensitive)
          Filters the parameters for the given model and platform.
 
Methods inherited from class org.apache.ddlutils.task.DatabaseCommand
getCatalogPattern, getDatabaseType, getDataSource, getPlatform, getSchemaPattern, isFailOnError, isRequiringModel, setFailOnError, setPlatformConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.ddlutils.task.Command
execute
 

Constructor Detail

DatabaseCommandWithCreationParameters

public DatabaseCommandWithCreationParameters()
Method Detail

addConfiguredParameter

public void addConfiguredParameter(TableSpecificParameter param)
Adds a parameter which is a name-value pair.

Parameters:
param - The parameter

getFilteredParameters

protected CreationParameters getFilteredParameters(Database model,
                                                   String platformName,
                                                   boolean isCaseSensitive)
Filters the parameters for the given model and platform.

Parameters:
model - The database model
platformName - The name of the platform
isCaseSensitive - Whether case is relevant when comparing names of tables
Returns:
The filtered parameters


Copyright © 2005-2006 Apache Software Foundation. All Rights Reserved.