public class SchemaUpdate extends Object
A commandline tool to update a database schema. May also be called from inside an application.
Constructor and Description |
---|
SchemaUpdate() |
Modifier and Type | Method and Description |
---|---|
static MetadataImplementor |
buildMetadataFromMainArgs(String[] args)
Intended for test usage only.
|
void |
execute(EnumSet<TargetType> targetTypes,
Metadata metadata) |
void |
execute(EnumSet<TargetType> targetTypes,
Metadata metadata,
ServiceRegistry serviceRegistry) |
List |
getExceptions()
Returns a List of all Exceptions which occurred during the export.
|
static void |
main(String[] args) |
SchemaUpdate |
setDelimiter(String delimiter)
Set the end of statement delimiter
|
SchemaUpdate |
setFormat(boolean format) |
SchemaUpdate |
setHaltOnError(boolean haltOnError) |
SchemaUpdate |
setOutputFile(String outputFile) |
public void execute(EnumSet<TargetType> targetTypes, Metadata metadata)
public void execute(EnumSet<TargetType> targetTypes, Metadata metadata, ServiceRegistry serviceRegistry)
public List getExceptions()
Returns a List of all Exceptions which occurred during the export.
public SchemaUpdate setHaltOnError(boolean haltOnError)
public SchemaUpdate setFormat(boolean format)
public SchemaUpdate setOutputFile(String outputFile)
public SchemaUpdate setDelimiter(String delimiter)
Set the end of statement delimiter
delimiter
- The delimiterpublic static void main(String[] args)
public static MetadataImplementor buildMetadataFromMainArgs(String[] args) throws Exception
Intended for test usage only. Builds a Metadata using the same algorithm as
main(java.lang.String[])
args
- The "command line args"Exception
- Problems building the MetadataCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.