public class PlatformConfiguration extends Object
| Constructor and Description |
|---|
PlatformConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCatalogPattern()
Returns the catalog pattern if any.
|
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.
|
String |
getSchemaPattern()
Returns the schema pattern if any.
|
boolean |
isShutdownDatabase()
Determines whether the database shall be shut down after the task has finished.
|
boolean |
isSortForeignKeys()
Determines whether a table's foreign keys read from a live database
shall be sorted alphabetically.
|
boolean |
isUseDelimitedSqlIdentifiers()
Determines whether delimited SQL identifiers shall be used (the default).
|
void |
setCatalogPattern(String catalogPattern)
Sets the catalog pattern.
|
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 |
setSchemaPattern(String schemaPattern)
Sets the schema pattern.
|
void |
setShutdownDatabase(boolean shutdownDatabase)
Specifies whether the database shall be shut down after the task has finished.
|
void |
setSortForeignKeys(boolean sortForeignKeys)
Specifies whether a table's foreign keys read from a live database
shall be sorted alphabetically.
|
void |
setUseDelimitedSqlIdentifiers(boolean useDelimitedSqlIdentifiers)
Specifies whether delimited SQL identifiers shall be used.
|
public String getDatabaseType()
public void setDatabaseType(String type)
type - The database typepublic org.apache.commons.dbcp.BasicDataSource getDataSource()
public void setDataSource(org.apache.commons.dbcp.BasicDataSource dataSource)
dataSource - The data source pointing to the databasepublic String getCatalogPattern()
public void setCatalogPattern(String catalogPattern)
catalogPattern - The catalog patternpublic String getSchemaPattern()
public void setSchemaPattern(String schemaPattern)
schemaPattern - The schema patternpublic boolean isUseDelimitedSqlIdentifiers()
true if delimited SQL identifiers shall be usedpublic void setUseDelimitedSqlIdentifiers(boolean useDelimitedSqlIdentifiers)
useDelimitedSqlIdentifiers - true if delimited SQL identifiers shall be usedpublic boolean isSortForeignKeys()
false by default.true if the foreign keys shall be sortedpublic void setSortForeignKeys(boolean sortForeignKeys)
sortForeignKeys - true if the foreign keys shall be sortedpublic boolean isShutdownDatabase()
true if the database shall be shut downpublic void setShutdownDatabase(boolean shutdownDatabase)
shutdownDatabase - true if the database shall be shut downpublic Platform getPlatform() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.