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, quoteTable
public KettleDatabaseRepositoryDatabaseDelegate(KettleDatabaseRepository repository)
public ObjectId getDatabaseID(String name) throws KettleException
KettleException
public String getDatabaseTypeCode(ObjectId id_database_type) throws KettleException
KettleException
public String getDatabaseConTypeCode(ObjectId id_database_contype) throws KettleException
KettleException
public RowMetaAndData getDatabase(ObjectId id_database) throws KettleException
KettleException
public RowMetaAndData getDatabaseAttribute(ObjectId id_database_attribute) throws KettleException
KettleException
public Collection<RowMetaAndData> getDatabaseAttributes() throws KettleDatabaseException, KettleValueException
public DatabaseMeta loadDatabaseMeta(ObjectId id_database) throws KettleException
KettleException
public 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
KettleException
public 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
KettleException
public ObjectId getDatabaseTypeID(String code) throws KettleException
KettleException
public ObjectId getDatabaseConTypeID(String code) throws KettleException
KettleException
public 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
KettleException
public void delDatabaseAttributes(ObjectId id_database) throws KettleException
KettleException
public int getNrDatabases() throws KettleException
KettleException
public int getNrDatabases(ObjectId id_transformation) throws KettleException
KettleException
public int getNrDatabaseAttributes(ObjectId id_database) throws KettleException
KettleException
Copyright © 2018 Hitachi Vantara. All rights reserved.