public class DefaultDbloadImpl extends Object
| Constructor | Description |
|---|---|
DefaultDbloadImpl() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
readFromClasspathResource(DbloadContext context,
Class<?> clazz) |
Start upload.
|
void |
readFromClasspathResource(DbloadContext context,
Class<?> clazz,
String resource) |
Start upload.
|
void |
readFromFile(DbloadContext context,
File readFromFile) |
Start upload.
|
void |
writeToFile(DbloadContext context,
File writeToFile,
String[] tableNames) |
Export all tables to a file.
|
void |
writeToFile(DbloadContext context,
File writeToFile,
List<String> tableNames) |
Export all tables to a file.
|
public void readFromFile(DbloadContext context, File readFromFile)
context - the context for dbloadreadFromFile - read the data from this fileDbloadException - Some problems with files or datasourcespublic void readFromClasspathResource(DbloadContext context, Class<?> clazz, String resource)
context - the context for dbloadclazz - used as classloader for the resourceresource - the resource to load from the classpathpublic void readFromClasspathResource(DbloadContext context, Class<?> clazz)
context - the context for dbloadclazz - used as classloader root for the data fileDbloadException - Some problems with files or datasourcespublic void writeToFile(DbloadContext context, File writeToFile, String[] tableNames)
context - the database JDBC connectionwriteToFile - the file to write totableNames - the database tables to exportpublic void writeToFile(DbloadContext context, File writeToFile, List<String> tableNames)
context - the database JDBC connectionwriteToFile - the file to write totableNames - the database tables to exportCopyright © 2014-2018. All Rights Reserved.