Class WriteDataToFileCommand
java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.task.Command
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.task.DatabaseCommand
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.task.ConvertingDatabaseCommand
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.task.WriteDataToFileCommand
Reads the data currently in the table in the live database (as specified by the
enclosing task), and writes it as XML to a file.
- Version:
- $Revision: 289996 $
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(DatabaseTaskBase task, Database model) Executes this command.void
setDetermineSchema
(boolean determineSchema) Deprecated.Will be removed once proper schema support is in placevoid
setEncoding
(String encoding) Specifies the encoding of the XML file.void
setOutputFile
(File outputFile) Specifies the file to write the data XML to.Methods inherited from class edu.internet2.middleware.grouper.ext.org.apache.ddlutils.task.ConvertingDatabaseCommand
addConfiguredConverter, getDataIO
Methods inherited from class edu.internet2.middleware.grouper.ext.org.apache.ddlutils.task.DatabaseCommand
getCatalogPattern, getDatabaseType, getDataSource, getPlatform, getSchemaPattern, isRequiringModel, setPlatformConfiguration
Methods inherited from class edu.internet2.middleware.grouper.ext.org.apache.ddlutils.task.Command
handleException, isFailOnError, setFailOnError
-
Constructor Details
-
WriteDataToFileCommand
public WriteDataToFileCommand()
-
-
Method Details
-
setOutputFile
Specifies the file to write the data XML to.- Parameters:
outputFile
- The output file
-
setEncoding
Specifies the encoding of the XML file.- Parameters:
encoding
- The encoding
-
setDetermineSchema
public void setDetermineSchema(boolean determineSchema) Deprecated.Will be removed once proper schema support is in placeSpecifies whether DdlUtils should try to find the schema of the tables when reading data from a live database.- Parameters:
determineSchema
- Whether to try to find the table's schemas
-
execute
public void execute(DatabaseTaskBase task, Database model) throws org.apache.tools.ant.BuildException Executes this command.
-