public abstract class DatabaseCommand extends Command
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_addIdentityUsingAlterTable |
protected int |
_isolationLevel |
protected PlatformConfiguration |
_platformConf
The platform configuration.
|
| Constructor and Description |
|---|
DatabaseCommand() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCatalogPattern()
Returns the catalog pattern if any.
|
protected String |
getDatabaseType()
Returns the database type.
|
protected org.apache.commons.dbcp.BasicDataSource |
getDataSource()
Returns the data source to use for accessing the database.
|
int |
getIsolationLevel()
Get the current isolation level set for this platform.
|
protected Platform |
getPlatform()
Creates the platform for the configured database.
|
String |
getSchemaPattern()
Returns the schema pattern if any.
|
boolean |
isAddIdentityUsingAlterTable()
Returns true if identity column has to be added at the end of a load
using ALTER TABLE (only supported by GemFireXD for now)
|
boolean |
isRequiringModel()
Specifies whether this command requires a model, i.e.
|
void |
setAddIdentityUsingAlterTable(boolean v)
Set the flag for
isAddIdentityUsingAlterTable(). |
void |
setIsolationLevel(int level)
Set the transaction isolation level to use for all DB operations.
|
protected void |
setPlatformConfiguration(PlatformConfiguration platformConf)
Sets the platform configuration.
|
execute, handleException, isFailOnError, setFailOnErrorprotected PlatformConfiguration _platformConf
protected int _isolationLevel
protected boolean _addIdentityUsingAlterTable
protected String getDatabaseType()
protected org.apache.commons.dbcp.BasicDataSource getDataSource()
public String getCatalogPattern()
public String getSchemaPattern()
protected void setPlatformConfiguration(PlatformConfiguration platformConf)
platformConf - The platform configurationprotected Platform getPlatform() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildExceptionpublic boolean isRequiringModel()
Command.execute(DatabaseTaskBase, Database) cannot be null.isRequiringModel in class Commandtrue if this command requires a modelpublic final int getIsolationLevel()
public void setIsolationLevel(int level)
public final boolean isAddIdentityUsingAlterTable()
public final void setAddIdentityUsingAlterTable(boolean v)
isAddIdentityUsingAlterTable().Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.