public abstract class AbstractFile2DataSourceCommand<T> extends AbstractSchemaDataSourceCommand
logger| Constructor and Description |
|---|
AbstractFile2DataSourceCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doRun() |
protected java.util.List<T> |
filter(java.util.List<T> list) |
java.io.File[] |
getFiles() |
com.sqlapp.data.db.sql.SqlExecutor |
getSqlExecutor() |
com.sqlapp.data.db.sql.Options |
getSqlOptions() |
protected abstract java.util.List<T> |
getTarget(java.util.List<com.sqlapp.data.schemas.DbCommonObject<?>> totalObjects,
java.sql.Connection connection) |
protected void |
handle(java.util.List<com.sqlapp.data.schemas.DbCommonObject<?>> totalObjects,
java.sql.Connection connection) |
protected void |
handle(java.util.List<T> list,
com.sqlapp.data.db.sql.SqlFactoryRegistry sqlFactoryRegistry,
java.sql.Connection connection) |
protected abstract void |
handle(T obj,
com.sqlapp.data.db.sql.SqlFactoryRegistry sqlFactoryRegistry,
java.sql.Connection connection) |
void |
setFiles(java.io.File... files) |
void |
setSqlExecutor(com.sqlapp.data.db.sql.SqlExecutor sqlExecutor) |
void |
setSqlOption(com.sqlapp.data.db.sql.Options sqlOptions) |
protected java.util.List<T> |
sort(java.util.List<T> list) |
getSchemas, getSchemas, getSqlFactoryRegistry, setSqlFactoryRegistrycreateOutputTextBuilder, getConnection, getConnectionHandler, getCurrentCatalogName, getCurrentSchemaName, getDataSource, getDialect, getDialect, newConverters, releaseConnection, setConnection, setConnectionHandler, setDataSource, setDialectcreateJsonConverter, getContext, getConvertHandler, getErr, getExceptionHandler, initialize, initializeContext, println, run, setConvertHandler, setExceptionHandlerprotected void doRun()
doRun in class AbstractCommandprotected void handle(java.util.List<com.sqlapp.data.schemas.DbCommonObject<?>> totalObjects,
java.sql.Connection connection)
throws java.lang.Exception
java.lang.Exceptionprotected abstract java.util.List<T> getTarget(java.util.List<com.sqlapp.data.schemas.DbCommonObject<?>> totalObjects, java.sql.Connection connection)
protected void handle(java.util.List<T> list, com.sqlapp.data.db.sql.SqlFactoryRegistry sqlFactoryRegistry, java.sql.Connection connection) throws java.lang.Exception
java.lang.Exceptionprotected abstract void handle(T obj, com.sqlapp.data.db.sql.SqlFactoryRegistry sqlFactoryRegistry, java.sql.Connection connection) throws java.lang.Exception
java.lang.Exceptionpublic com.sqlapp.data.db.sql.SqlExecutor getSqlExecutor()
public void setSqlExecutor(com.sqlapp.data.db.sql.SqlExecutor sqlExecutor)
sqlExecutor - the sqlExecutor to setpublic java.io.File[] getFiles()
public void setFiles(java.io.File... files)
files - the files to setpublic com.sqlapp.data.db.sql.Options getSqlOptions()
public void setSqlOption(com.sqlapp.data.db.sql.Options sqlOptions)
sqlOptions - the sqlOptions to set