| Package | Description |
|---|---|
| org.apache.ddlutils |
This package mainly contains the database platform abstraction,
Platform
and the factory to create instances for individual platforms,
PlatformFactory. |
| org.apache.ddlutils.dynabean |
Provides the special DdlUtils implementations of
DynaClass
and DynaBean that directly map to tables in the database
model. |
| org.apache.ddlutils.io |
The
org.apache.ddlutils.io package contains a classes for input
and output of both the database schemas and data files. |
| org.apache.ddlutils.model |
This package contains the classes making up the database model.
|
| org.apache.ddlutils.platform |
This package contains the platform implementations for the individual databases.
|
| org.apache.ddlutils.platform.mssql |
This package contains the platform implementation for the
Sql Server database.
|
| org.apache.ddlutils.platform.sybase |
This package contains the platform implementation for the
Sybase ASE database.
|
| org.apache.ddlutils.util |
The
org.apache.ddlutils.util package contains utility classes of DdlUtils. |
| Modifier and Type | Class and Description |
|---|---|
class |
DatabaseOperationException
This exception is thrown when a database operation failed.
|
| Modifier and Type | Method and Description |
|---|---|
static Platform |
PlatformFactory.createNewPlatformInstance(DataSource dataSource)
Creates a new platform for the specified database.
|
static Platform |
PlatformFactory.createNewPlatformInstance(DataSource dataSource,
String username,
String password)
Creates a new platform for the specified database.
|
static Platform |
PlatformFactory.createNewPlatformInstance(String databaseName)
Creates a new platform for the given (case insensitive) database name
or returns null if the database is not recognized.
|
static Platform |
PlatformFactory.createNewPlatformInstance(String jdbcDriver,
String jdbcConnectionUrl)
Creates a new platform for the specified database.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SqlDynaException
This exception is thrown when something dealing with sql dyna beans or classes failed.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DataWriterException
Exception generated by the
DataWriter. |
class |
DdlUtilsXMLException
Base class for exceptions generated by DdlUtils when handling XML.
|
| Modifier and Type | Method and Description |
|---|---|
DataReader |
DatabaseDataIO.getConfiguredDataReader(Platform platform,
Database model)
Returns a data reader instance configured for the given platform (which needs to
be connected to a live database) and model.
|
DataWriter |
DatabaseDataIO.getConfiguredDataWriter(OutputStream output,
String xmlEncoding)
Returns a data writer instance configured to write to the given output stream
in the specified encoding.
|
DataWriter |
DatabaseDataIO.getConfiguredDataWriter(String path,
String xmlEncoding)
Returns a data writer instance configured to write to the indicated file
in the specified encoding.
|
DataWriter |
DatabaseDataIO.getConfiguredDataWriter(Writer output,
String xmlEncoding)
Returns a data writer instance configured to write to the given output writer
in the specified encoding.
|
void |
DatabaseDataIO.writeDataToDatabase(DataReader dataReader,
InputStream input)
Reads the data from the given input stream and writes it to the database via the given data reader.
|
void |
DatabaseDataIO.writeDataToDatabase(DataReader dataReader,
InputStream[] inputs)
Reads the data from the given input stream and writes it to the database via the given data reader.
|
void |
DatabaseDataIO.writeDataToDatabase(DataReader dataReader,
Reader input)
Reads the data from the given input stream and writes it to the database via the given data reader.
|
void |
DatabaseDataIO.writeDataToDatabase(DataReader dataReader,
Reader[] inputs)
Reads the data from the given input stream and writes it to the database via the given data reader.
|
void |
DatabaseDataIO.writeDataToDatabase(DataReader dataReader,
String path)
Reads the data from the indicated XML file and writes it to the database via the given data reader.
|
void |
DatabaseDataIO.writeDataToDatabase(DataReader dataReader,
String[] files)
Reads the data from the specified files and writes it to the database via the given data reader.
|
void |
DatabaseDataIO.writeDataToDatabase(Platform platform,
Database model,
InputStream[] inputs)
Reads the data from the given input streams and writes it to the database to which the given
platform is connected.
|
void |
DatabaseDataIO.writeDataToDatabase(Platform platform,
Database model,
Reader[] inputs)
Reads the data from the given input readers and writes it to the database to which the given
platform is connected.
|
void |
DatabaseDataIO.writeDataToDatabase(Platform platform,
Database model,
String[] files)
Reads the data from the indicated files and writes it to the database to which the given
platform is connected.
|
void |
DatabaseDataIO.writeDataToDatabase(Platform platform,
InputStream[] inputs)
Reads the data from the given input streams and writes it to the database to which the given
platform is connected.
|
void |
DatabaseDataIO.writeDataToDatabase(Platform platform,
Reader[] inputs)
Reads the data from the given input readers and writes it to the database to which the given
platform is connected.
|
void |
DatabaseDataIO.writeDataToDatabase(Platform platform,
String[] files)
Reads the data from the specified files and writes it to the database to which the given
platform is connected.
|
void |
DatabaseDataIO.writeDataToXML(Platform platform,
String path,
String xmlEncoding)
Writes the data contained in the database to which the given platform is connected, as XML
to the given output stream (which won't be closed by this method).
|
| Modifier and Type | Class and Description |
|---|---|
class |
ModelException
Indicates a model error.
|
| Modifier and Type | Method and Description |
|---|---|
protected Database |
PlatformImplBase.processChanges(Database model,
Collection changes,
CreationParameters params)
Processes the given changes in the specified order.
|
| Modifier and Type | Method and Description |
|---|---|
protected Database |
MSSqlPlatform.processChanges(Database model,
Collection changes,
CreationParameters params)
Processes the given changes in the specified order.
|
| Modifier and Type | Method and Description |
|---|---|
protected Database |
SybasePlatform.processChanges(Database model,
Collection changes,
CreationParameters params)
Processes the given changes in the specified order.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CallbackClosure.execute(Object obj) |
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.