| 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.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 | 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.
|
protected org.apache.commons.betwixt.io.BeanWriter |
DatabaseIO.getWriter(Writer output)
Returns a new bean writer configured to writer database models.
|
Database |
DatabaseIO.read(File file)
Reads the database model contained in the specified file.
|
Database |
DatabaseIO.read(InputSource source)
Reads the database model from the given input source.
|
Database |
DatabaseIO.read(Reader reader)
Reads the database model given by the reader.
|
Database |
DatabaseIO.read(String filename)
Reads the database model contained in the specified file.
|
void |
DatabaseIO.write(Database model,
OutputStream output)
Writes the database model to the given output stream.
|
void |
DatabaseIO.write(Database model,
String filename)
Writes the database model to the specified file.
|
void |
DatabaseIO.write(Database model,
Writer output)
Writes the database model to the given output writer.
|
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 |
|---|---|
void |
CallbackClosure.execute(Object obj) |
Copyright © 2005-2013 Apache Software Foundation. All Rights Reserved.