public class XsdDataSetStructureGenerator extends BaseDatabaseAccessor implements DataSetStructureGenerator
DataSetStructureGenerator that generates xml schema files for data sets.
This will generate an xsd for each configured database schema. Each database schema will be described in an xsd named
'schema_name'.xsd. A general dataset.xsd will also be generated. This xsd refers to the database schema specific xsds.| Modifier and Type | Field and Description |
|---|---|
static String |
PROPKEY_XSD_COMPLEX_TYPE_SUFFIX |
static String |
PROPKEY_XSD_DIR_NAME |
configuration, dbSupports, defaultDbSupport, dialect, sqlHandler| Constructor and Description |
|---|
XsdDataSetStructureGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInit(Properties configuration)
Initializes the generator.
|
protected void |
generateDatabaseSchemaXsd(DbSupport dbSupport,
File xsdDirectory)
Generates an XSD for the database schema of the given db support.
|
void |
generateDataSetStructure()
Generates the XSDs, and writes them to the target directory specified by the property
PROPKEY_XSD_DIR_NAME. |
protected void |
generateDataSetXsd(File xsdDirectory)
Generates a general dataset xsd that will refer to database schema specific dataset XSDs.
|
getDbSupport, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitpublic static final String PROPKEY_XSD_DIR_NAME
public static final String PROPKEY_XSD_COMPLEX_TYPE_SUFFIX
protected void doInit(Properties configuration)
doInit in class BaseDatabaseAccessorconfiguration - The config, not nullpublic void generateDataSetStructure()
PROPKEY_XSD_DIR_NAME.generateDataSetStructure in interface DataSetStructureGeneratorprotected void generateDataSetXsd(File xsdDirectory)
xsdDirectory - The target directory, not nullCopyright © 2017. All rights reserved.