org.apache.ddlutils.task
Class PlatformConfiguration

java.lang.Object
  extended byorg.apache.ddlutils.task.PlatformConfiguration

public class PlatformConfiguration
extends Object

Encloses the platform configuration for the Ant tasks.

Version:
$Revision: 329426 $
Author:
Thomas Dudziak

Constructor Summary
PlatformConfiguration()
           
 
Method Summary
 String getDatabaseType()
          Returns the database type.
 org.apache.commons.dbcp.BasicDataSource getDataSource()
          Returns the data source to use for accessing the database.
 Platform getPlatform()
          Creates the platform for the configured database.
 boolean isUseDelimitedSqlIdentifiers()
          Determines whether delimited SQL identifiers shall be used (the default).
 void setDatabaseType(String type)
          Sets the database type.
 void setDataSource(org.apache.commons.dbcp.BasicDataSource dataSource)
          Sets the data source to use for accessing the database.
 void setUseDelimitedSqlIdentifiers(boolean useDelimitedSqlIdentifiers)
          Specifies whether delimited SQL identifiers shall be used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlatformConfiguration

public PlatformConfiguration()
Method Detail

getDatabaseType

public String getDatabaseType()
Returns the database type.

Returns:
The database type

setDatabaseType

public void setDatabaseType(String type)
Sets the database type.

Parameters:
type - The database type

getDataSource

public org.apache.commons.dbcp.BasicDataSource getDataSource()
Returns the data source to use for accessing the database.

Returns:
The data source

setDataSource

public void setDataSource(org.apache.commons.dbcp.BasicDataSource dataSource)
Sets the data source to use for accessing the database.

Parameters:
dataSource - The data source pointing to the database

isUseDelimitedSqlIdentifiers

public boolean isUseDelimitedSqlIdentifiers()
Determines whether delimited SQL identifiers shall be used (the default).

Returns:
true if delimited SQL identifiers shall be used

setUseDelimitedSqlIdentifiers

public void setUseDelimitedSqlIdentifiers(boolean useDelimitedSqlIdentifiers)
Specifies whether delimited SQL identifiers shall be used.

Parameters:
useDelimitedSqlIdentifiers - true if delimited SQL identifiers shall be used

getPlatform

public Platform getPlatform()
                     throws org.apache.tools.ant.BuildException
Creates the platform for the configured database.

Returns:
The platform
Throws:
org.apache.tools.ant.BuildException


Copyright © 2005 Apache Software Foundation. All Rights Reserved.