public interface DatasourceHelperService
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
copyTable(DatabaseDatasource sourceDatasource,
java.lang.String sourceTable,
DatabaseDatasource destinationDatasource,
java.lang.String destinationTable,
java.util.List<java.lang.String> primaryKeys,
boolean copyPrimaryKeys,
int batchSize) |
java.util.Map<java.lang.String,java.lang.Object> |
fetchDatasourceMetadata(DatabaseDatasource datasource,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> methodDescriptions)
Dynamically calls a methods from the class DatabaseMetaData.
|
java.util.Map<java.lang.String,java.lang.Object> |
fetchDatasourceMetadata(java.lang.String driverClass,
java.lang.String jdbcUrl,
java.lang.String jdbcUsername,
java.lang.String jdbcPassword,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> methodDescriptions) |
java.util.Map<java.lang.String,java.lang.Object> |
fetchInfoDatasourceMetadata(DatasourceDefinition datasource,
boolean datasourceInfo,
boolean jdbcUrlInfo,
boolean databaseFunctionsInfo,
boolean databaseSupportsInfo)
Fetches general metadata information about a given datasource.
|
java.util.Map<java.lang.String,java.lang.Object> |
fetchInfoDatasourceMetadata(java.lang.String driverClass,
java.lang.String jdbcUrl,
java.lang.String jdbcUsername,
java.lang.String jdbcPassword,
boolean datasourceInfo,
boolean jdbcUrlInfo,
boolean databaseFunctionsInfo,
boolean databaseSupportsInfo) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getColumnMetadata(DatabaseDatasource datasource,
java.lang.String table) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getColumnMetadata(DatabaseDatasource datasource,
java.lang.String table,
java.util.List<java.lang.String> additionalColumns) |
java.util.Map<DatasourceInfoType,java.util.Map<java.lang.String,java.lang.String>> |
getDatasourceInfoDefinition()
Provides a map containing what information is fetched when using
fetchDatasourceMetadata().
|
java.util.Map<java.lang.String,java.lang.Object> |
getGeneralInformation(DatasourceDefinition datasource) |
java.util.List<java.lang.String> |
getNonExistingColumns(DatabaseDatasource datasource,
java.lang.String table,
java.util.List<java.lang.String> columns)
Returns the columns which do not exist in the given table.
|
java.lang.String |
getQuery(DatasourceContainer datasourceContainer) |
boolean |
tableExists(DatabaseDatasource datasource,
java.lang.String table) |
java.util.Map<java.lang.String,java.lang.Object> copyTable(DatabaseDatasource sourceDatasource, java.lang.String sourceTable, DatabaseDatasource destinationDatasource, java.lang.String destinationTable, java.util.List<java.lang.String> primaryKeys, boolean copyPrimaryKeys, int batchSize)
boolean tableExists(DatabaseDatasource datasource, java.lang.String table)
java.util.List<java.lang.String> getNonExistingColumns(DatabaseDatasource datasource, java.lang.String table, java.util.List<java.lang.String> columns)
datasource
- the datasourcetable
- the table to checkcolumns
- the columns to checkjava.util.List<java.util.Map<java.lang.String,java.lang.Object>> getColumnMetadata(DatabaseDatasource datasource, java.lang.String table)
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getColumnMetadata(DatabaseDatasource datasource, java.lang.String table, java.util.List<java.lang.String> additionalColumns)
java.util.Map<java.lang.String,java.lang.Object> fetchDatasourceMetadata(DatabaseDatasource datasource, java.util.Map<java.lang.String,java.util.List<java.lang.String>> methodDescriptions) throws java.sql.SQLException
datasource
- the datasourcemethodDescriptions
- is a map with the structure keys:= method name as
String | values:= parameters as List of Stringjava.sql.SQLException
java.util.Map<java.lang.String,java.lang.Object> fetchDatasourceMetadata(java.lang.String driverClass, java.lang.String jdbcUrl, java.lang.String jdbcUsername, java.lang.String jdbcPassword, java.util.Map<java.lang.String,java.util.List<java.lang.String>> methodDescriptions) throws java.sql.SQLException
java.sql.SQLException
java.util.Map<java.lang.String,java.lang.Object> fetchInfoDatasourceMetadata(DatasourceDefinition datasource, boolean datasourceInfo, boolean jdbcUrlInfo, boolean databaseFunctionsInfo, boolean databaseSupportsInfo) throws java.sql.SQLException
getDatasourceInfoDefinition()
,
which provides a config mapdatasource
- the datasourcedatasourceInfo
- if true, fetches general informationjdbcUrlInfo
- if true, fetches URL informationdatabaseFunctionsInfo
- if true, fetches information on functionsdatabaseSupportsInfo
- if true, fetches information on supportsjava.sql.SQLException
java.util.Map<java.lang.String,java.lang.Object> fetchInfoDatasourceMetadata(java.lang.String driverClass, java.lang.String jdbcUrl, java.lang.String jdbcUsername, java.lang.String jdbcPassword, boolean datasourceInfo, boolean jdbcUrlInfo, boolean databaseFunctionsInfo, boolean databaseSupportsInfo) throws java.sql.SQLException
java.sql.SQLException
java.util.Map<DatasourceInfoType,java.util.Map<java.lang.String,java.lang.String>> getDatasourceInfoDefinition()
DatasourceInfoType
. Each key points to another Map of type
java.lang.String getQuery(DatasourceContainer datasourceContainer)
java.util.Map<java.lang.String,java.lang.Object> getGeneralInformation(DatasourceDefinition datasource)