public class KettleDatabaseRepositoryDatabaseDelegate extends KettleDatabaseRepositoryBaseDelegate
log, repository| Constructor and Description |
|---|
KettleDatabaseRepositoryDatabaseDelegate(KettleDatabaseRepository repository) |
| Modifier and Type | Method and Description |
|---|---|
void |
delDatabase(ObjectId id_database) |
void |
delDatabaseAttributes(ObjectId id_database) |
void |
deleteDatabaseMeta(String databaseName)
Remove a database connection from the repository
|
RowMetaAndData |
getDatabase(ObjectId id_database) |
RowMetaAndData |
getDatabaseAttribute(ObjectId id_database_attribute) |
Collection<RowMetaAndData> |
getDatabaseAttributes() |
String |
getDatabaseConTypeCode(ObjectId id_database_contype) |
ObjectId |
getDatabaseConTypeID(String code) |
ObjectId |
getDatabaseID(String name) |
String |
getDatabaseTypeCode(ObjectId id_database_type) |
ObjectId |
getDatabaseTypeID(String code) |
int |
getNrDatabaseAttributes(ObjectId id_database) |
int |
getNrDatabases() |
int |
getNrDatabases(ObjectId id_transformation) |
ObjectId |
insertDatabase(String name,
String type,
String access,
String host,
String dbname,
String port,
String user,
String pass,
String servername,
String data_tablespace,
String index_tablespace) |
DatabaseMeta |
loadDatabaseMeta(ObjectId id_database)
Load the Database Info
|
void |
saveDatabaseMeta(DatabaseMeta databaseMeta)
Saves the database information into a given repository.
|
void |
updateDatabase(ObjectId id_database,
String name,
String type,
String access,
String host,
String dbname,
String port,
String user,
String pass,
String servername,
String data_tablespace,
String index_tablespace) |
quote, quoteTablepublic KettleDatabaseRepositoryDatabaseDelegate(KettleDatabaseRepository repository)
public ObjectId getDatabaseID(String name) throws KettleException
KettleExceptionpublic String getDatabaseTypeCode(ObjectId id_database_type) throws KettleException
KettleExceptionpublic String getDatabaseConTypeCode(ObjectId id_database_contype) throws KettleException
KettleExceptionpublic RowMetaAndData getDatabase(ObjectId id_database) throws KettleException
KettleExceptionpublic RowMetaAndData getDatabaseAttribute(ObjectId id_database_attribute) throws KettleException
KettleExceptionpublic Collection<RowMetaAndData> getDatabaseAttributes() throws KettleDatabaseException, KettleValueException
public DatabaseMeta loadDatabaseMeta(ObjectId id_database) throws KettleException
KettleExceptionpublic void saveDatabaseMeta(DatabaseMeta databaseMeta) throws KettleException
databaseMeta - The database metadata object to storeKettleException - if an error occurs.public ObjectId insertDatabase(String name, String type, String access, String host, String dbname, String port, String user, String pass, String servername, String data_tablespace, String index_tablespace) throws KettleException
KettleExceptionpublic void updateDatabase(ObjectId id_database, String name, String type, String access, String host, String dbname, String port, String user, String pass, String servername, String data_tablespace, String index_tablespace) throws KettleException
KettleExceptionpublic ObjectId getDatabaseTypeID(String code) throws KettleException
KettleExceptionpublic ObjectId getDatabaseConTypeID(String code) throws KettleException
KettleExceptionpublic void deleteDatabaseMeta(String databaseName) throws KettleException
databaseName - The name of the connection to removeKettleException - In case something went wrong: database error, insufficient permissions, depending objects, etc.public void delDatabase(ObjectId id_database) throws KettleException
KettleExceptionpublic void delDatabaseAttributes(ObjectId id_database) throws KettleException
KettleExceptionpublic int getNrDatabases()
throws KettleException
KettleExceptionpublic int getNrDatabases(ObjectId id_transformation) throws KettleException
KettleExceptionpublic int getNrDatabaseAttributes(ObjectId id_database) throws KettleException
KettleExceptionCopyright © 2018 Hitachi Vantara. All rights reserved.