Class LoadTablesRequest
java.lang.Object
com.northconcepts.datapipeline.foundations.jdbc.LoadTablesRequest
The options for
JdbcConnection.loadTables(LoadTablesRequest): which tables to load and which of their details
(columns, keys, indexes) to load with them.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the catalog name passed toDatabaseMetaData.getTables; null (the default) does not filter by catalog.Returns the schema name pattern (%and_wildcards); null (the default) does not filter by schema.Returns the table name pattern (%and_wildcards); defaults to%for all tables.String[]getTypes()Returns the table types to load, such asTABLEorVIEW; null (the default) loads all types.booleanIndicates if each table's columns, primary key and row identifiers are loaded too, which also runs aSELECTreturning no rows on each table (default is true).booleanIndicates if the foreign keys referencing each table (exported keys) are loaded (default is true).booleanIndicates if each table's foreign keys to other tables (imported keys) are loaded (default is true).booleanIndicates if each table's indexes are loaded (default is true).setCatalog(String catalog) Sets the catalog name passed toDatabaseMetaData.getTables; null (the default) does not filter by catalog.setLoadColumns(boolean loadColumns) Indicates if each table's columns, primary key and row identifiers are loaded too, which also runs aSELECTreturning no rows on each table (default is true).setLoadExportedKeys(boolean loadExportedKeys) Indicates if the foreign keys referencing each table (exported keys) are loaded (default is true).setLoadImportedKeys(boolean loadImportedKeys) Indicates if each table's foreign keys to other tables (imported keys) are loaded (default is true).setLoadIndexes(boolean loadIndexes) Indicates if each table's indexes are loaded (default is true).setSchemaPattern(String schemaPattern) Sets the schema name pattern (%and_wildcards); null (the default) does not filter by schema.setTableNamePattern(String tableNamePattern) Sets the table name pattern (%and_wildcards); defaults to%for all tables.Sets the table types to load, such asTABLEorVIEW; null (the default) loads all types.
-
Constructor Details
-
LoadTablesRequest
public LoadTablesRequest()
-
-
Method Details
-
getCatalog
Returns the catalog name passed toDatabaseMetaData.getTables; null (the default) does not filter by catalog. -
setCatalog
Sets the catalog name passed toDatabaseMetaData.getTables; null (the default) does not filter by catalog. -
getSchemaPattern
Returns the schema name pattern (%and_wildcards); null (the default) does not filter by schema. -
setSchemaPattern
Sets the schema name pattern (%and_wildcards); null (the default) does not filter by schema. -
getTableNamePattern
Returns the table name pattern (%and_wildcards); defaults to%for all tables. -
setTableNamePattern
Sets the table name pattern (%and_wildcards); defaults to%for all tables. -
getTypes
Returns the table types to load, such asTABLEorVIEW; null (the default) loads all types. -
setTypes
Sets the table types to load, such asTABLEorVIEW; null (the default) loads all types. -
isLoadColumns
public boolean isLoadColumns()Indicates if each table's columns, primary key and row identifiers are loaded too, which also runs aSELECTreturning no rows on each table (default is true). -
setLoadColumns
Indicates if each table's columns, primary key and row identifiers are loaded too, which also runs aSELECTreturning no rows on each table (default is true). -
isLoadImportedKeys
public boolean isLoadImportedKeys()Indicates if each table's foreign keys to other tables (imported keys) are loaded (default is true). -
setLoadImportedKeys
Indicates if each table's foreign keys to other tables (imported keys) are loaded (default is true). -
isLoadExportedKeys
public boolean isLoadExportedKeys()Indicates if the foreign keys referencing each table (exported keys) are loaded (default is true). -
setLoadExportedKeys
Indicates if the foreign keys referencing each table (exported keys) are loaded (default is true). -
isLoadIndexes
public boolean isLoadIndexes()Indicates if each table's indexes are loaded (default is true). -
setLoadIndexes
Indicates if each table's indexes are loaded (default is true).
-