Package org.pentaho.di.core.database
Class DatabaseMetaInformation
- java.lang.Object
-
- org.pentaho.di.core.database.DatabaseMetaInformation
-
public class DatabaseMetaInformation extends Object
Contains the schema's, catalogs, tables, views, synonyms, etc we can find in the databases...- Since:
- 7-apr-2005
- Author:
- Matt
-
-
Field Summary
Fields Modifier and Type Field Description static String
FILTER_CATALOG_LIST
static String
FILTER_SCHEMA_LIST
-
Constructor Summary
Constructors Constructor Description DatabaseMetaInformation(DatabaseMeta databaseMeta)
Create a new DatabaseMetaData object for the given database connection
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Catalog[]
getCatalogs()
void
getData(LoggingObjectInterface parentLoggingObject, ProgressMonitorListener monitor)
DatabaseMeta
getDbInfo()
String[]
getProcedures()
Schema[]
getSchemas()
Map<String,Collection<String>>
getSynonymMap()
String[]
getSynonyms()
Map<String,Collection<String>>
getTableMap()
String[]
getTables()
Map<String,Collection<String>>
getViewMap()
String[]
getViews()
void
setCatalogs(Catalog[] catalogs)
void
setDbInfo(DatabaseMeta value)
void
setProcedures(String[] procedures)
void
setSchemas(Schema[] schemas)
void
setSynonymMap(Map<String,Collection<String>> synonymMap)
void
setSynonyms(String[] synonyms)
void
setTableMap(Map<String,Collection<String>> tableMap)
void
setTables(String[] tables)
void
setViewMap(Map<String,Collection<String>> viewMap)
void
setViews(String[] views)
-
-
-
Field Detail
-
FILTER_CATALOG_LIST
public static final String FILTER_CATALOG_LIST
- See Also:
- Constant Field Values
-
FILTER_SCHEMA_LIST
public static final String FILTER_SCHEMA_LIST
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DatabaseMetaInformation
public DatabaseMetaInformation(DatabaseMeta databaseMeta)
Create a new DatabaseMetaData object for the given database connection
-
-
Method Detail
-
getCatalogs
public Catalog[] getCatalogs()
- Returns:
- Returns the catalogs.
-
setCatalogs
public void setCatalogs(Catalog[] catalogs)
- Parameters:
catalogs
- The catalogs to set.
-
getDbInfo
public DatabaseMeta getDbInfo()
- Returns:
- Returns the DatabaseMeta.
-
setDbInfo
public void setDbInfo(DatabaseMeta value)
- Parameters:
value
- The DatabaseMeta to set.
-
getSchemas
public Schema[] getSchemas()
- Returns:
- Returns the schemas.
-
setSchemas
public void setSchemas(Schema[] schemas)
- Parameters:
schemas
- The schemas to set.
-
getTables
public String[] getTables()
- Returns:
- Returns the tables.
-
setTables
public void setTables(String[] tables)
- Parameters:
tables
- The tables to set.
-
getViews
public String[] getViews()
- Returns:
- Returns the views.
-
setViews
public void setViews(String[] views)
- Parameters:
views
- The views to set.
-
setSynonyms
public void setSynonyms(String[] synonyms)
- Parameters:
synonyms
- The synonyms to set.
-
getSynonyms
public String[] getSynonyms()
- Returns:
- Returns the synonyms.
-
getProcedures
public String[] getProcedures()
- Returns:
- Returns the procedures.
-
setProcedures
public void setProcedures(String[] procedures)
- Parameters:
procedures
- The procedures to set.
-
getData
public void getData(LoggingObjectInterface parentLoggingObject, ProgressMonitorListener monitor) throws KettleDatabaseException
- Throws:
KettleDatabaseException
-
getTableMap
public Map<String,Collection<String>> getTableMap()
-
setTableMap
public void setTableMap(Map<String,Collection<String>> tableMap)
-
getViewMap
public Map<String,Collection<String>> getViewMap()
-
setViewMap
public void setViewMap(Map<String,Collection<String>> viewMap)
-
getSynonymMap
public Map<String,Collection<String>> getSynonymMap()
-
setSynonymMap
public void setSynonymMap(Map<String,Collection<String>> synonymMap)
-
-