Uses of Class
org.pentaho.di.core.exception.KettleDatabaseException
Packages that use KettleDatabaseException
Package
Description
Contains all the different database dialects as well as the DatabaseMeta class (definition) and the Database class (execution)
This package contains a set of Exceptions used in Kettle.
-
Uses of KettleDatabaseException in org.pentaho.di.core.database
Subclasses of KettleDatabaseException in org.pentaho.di.core.databaseModifier and TypeClassDescriptionclassThis class provides a wrapper around NamingException or other exceptions that may occur when trying to get a data source by name.Methods in org.pentaho.di.core.database that throw KettleDatabaseExceptionModifier and TypeMethodDescriptionbooleanvoidDatabase.callProcedure(String[] arg, String[] argdir, int[] argtype, String resultname, int resulttype) voidDatabase.cancelQuery()Cancel the open/running queries on the database connectionvoidDatabase.cancelStatement(Statement statement) Cancel an open/running SQL statementbooleanDatabase.checkColumnExists(String columnname, String tablename) Deprecated.booleanDatabase.checkColumnExists(String schemaname, String tablename, String columnname) See if the column specified exists by reading the metadata first, execution last.booleanDatabase.checkColumnExistsByDbMeta(String schemaname, String tablename, String columnname) booleanBaseDatabaseMeta.checkIndexExists(Database database, String schemaName, String tableName, String[] idxFields) Verifies on the specified database connection if an index exists on the fields with the specified name.booleanDatabase.checkIndexExists(String tableName, String[] idxFields) Check if an index on certain fields in a table exists.booleanDatabase.checkIndexExists(String schemaName, String tableName, String[] idxFields) Check if an index on certain fields in a table exists.booleanDatabaseInterface.checkIndexExists(Database database, String schemaName, String tableName, String[] idxFields) Verifies on the specified database connection if an index exists on the fields with the specified name.booleanExasol4DatabaseMeta.checkIndexExists(Database database, String schemaName, String tableName, String[] idxFields) Verifies on the specified database connection if an index exists on the fields with the specified name.booleanMSAccessDatabaseMeta.checkIndexExists(Database database, String schemaName, String tableName, String[] idxFields) Verifies on the specified database connection if an index exists on the fields with the specified name.booleanMSSQLServerDatabaseMeta.checkIndexExists(Database database, String schemaName, String tableName, String[] idxFields) Verifies on the specified database connection if an index exists on the fields with the specified name.booleanOracleDatabaseMeta.checkIndexExists(Database database, String schemaName, String tableName, String[] idxFields) Verifies on the specified database connection if an index exists on the fields with the specified name.booleanDatabase.checkSequenceExists(String sequenceName) Check whether the sequence exists, Oracle only!booleanDatabase.checkSequenceExists(String schemaName, String sequenceName) Check whether the sequence exists, Oracle only!booleanDatabase.checkTableExists(String tablename) Deprecated.Deprecated in favor ofDatabase.checkTableExists(String, String)booleanDatabase.checkTableExists(String schema, String tablename) See if the table specified exists.booleanDatabase.checkTableExistsByDbMeta(String schema, String tablename) Deprecated.Deprecated in favor ofDatabase.checkTableExists(String, String)voidDatabase.cleanupLogRecords(LogTableCoreInterface logTable, String transJobName) voidDatabase.clearBatch(PreparedStatement preparedStatement) voidDatabase.clearInsertBatch()Deprecated.voidDatabase.closeConnectionOnly()Only for unique connections usage, typically you use disconnect() to disconnect() from the database.voidDatabase.closeInsert()voidDatabase.closeLookup()voidDatabase.closePreparedStatement(PreparedStatement ps) voidDatabase.closeProcedureStatement()voidDatabase.closeQuery(ResultSet res) voidDatabase.closeUpdate()voidDatabase.commit()Perform a commit the connection if this is supported by the databasevoidDatabase.commit(boolean force) voidDatabaseTransactionListener.commit()voidDatabase.commitLog(boolean force, LogTableCoreInterface logTable) This methods may be removed in future.voidDatabase.commitLog(LogTableCoreInterface logTable) This methods may be removed in future.voidDatabase.connect()Open the database connection.voidOpen the database connection.voidvoidDatabase.emptyAndCommit(PreparedStatement ps, boolean batch) Close the passed prepared statement.voidDatabase.emptyAndCommit(PreparedStatement ps, boolean batch, int batchCounter) Close the prepared statement of the insert statement.Database.execStatement(String sql) Execute an SQL statement on the database connection (has to be open)Database.execStatement(String rawsql, RowMetaInterface params, Object[] data) Database.execStatements(String script) Execute a series of SQL statements, separated by ;Database.execStatements(String script, RowMetaInterface params, Object[] data) Execute a series of SQL statements, separated by ;voidDatabase.executeAndClearBatch(PreparedStatement preparedStatement) voidDatabase.getAlterTableStatement(String tableName, RowMetaInterface fields, String tk, boolean useAutoinc, String pk, boolean semicolon) String[]Database.getCatalogs()DatabaseFactoryInterface.getConnectionTestReport(DatabaseMeta databaseMeta) DatabaseFactory.getConnectionTestResults(DatabaseMeta databaseMeta) DatabaseFactoryInterface.getConnectionTestResults(DatabaseMeta databaseMeta) voidDatabaseMetaInformation.getData(LoggingObjectInterface parentLoggingObject, ProgressMonitorListener monitor) static final DatabaseInterfaceDatabaseMeta.getDatabaseInterface(String databaseType) Search for the right type of DatabaseInterface object and clone it.Database.getDatabaseMetaData()static DataSourceConnectionPoolUtil.getDataSource(LogChannelInterface log, DatabaseMeta dbMeta, String partitionId) Database.getDataSource(String partitionId) protected DatabaseInterfaceDatabaseMeta.getDbInterface(String typeCode) For testingDatabase.getDDL(String tablename, RowMetaInterface fields) Database.getDDL(String tablename, RowMetaInterface fields, String tk, boolean useAutoinc, String pk) Database.getDDL(String tableName, RowMetaInterface fields, String tk, boolean useAutoinc, String pk, boolean semicolon) Database.getDDLCreationTable(String tableName, RowMetaInterface fields) Return SQL CREATION statement for a TableDatabase.getDDLTruncateTable(String schema, String tablename) Return SQL TRUNCATE statement for a TableDatabase.getFirstRows(String tableName, int limit) Database.getFirstRows(String tableName, int limit, ProgressMonitorListener monitor) Get the first rows from a table (for preview)Database.getGeneratedKeys(PreparedStatement ps) Object[]Database.getLastLogDate(String logtable, String name, boolean job, LogStatus status) default StringDatabaseInterface.getLegacyColumnName(DatabaseMetaData dbMetaData, ResultSetMetaData rsMetaData, int index) Allows to get the column name for JDBC drivers with different behavior for aliases depending on the connector version.MariaDBDatabaseMeta.getLegacyColumnName(DatabaseMetaData dbMetaData, ResultSetMetaData rsMetaData, int index) Returns the column name for a MariaDB field.MySQLDatabaseMeta.getLegacyColumnName(DatabaseMetaData dbMetaData, ResultSetMetaData rsMetaData, int index) Returns the column name for a MySQL field checking if the driver major version is "greater than" or "lower or equal" to 3.Object[]Database.getLookup()Object[]Database.getLookup(boolean failOnMultipleResults) Object[]Database.getLookup(boolean failOnMultipleResults, boolean lazyConversion) Object[]Database.getLookup(PreparedStatement ps) Object[]Database.getLookup(PreparedStatement ps, boolean failOnMultipleResults) Object[]Database.getLookup(PreparedStatement ps, boolean failOnMultipleResults, boolean lazyConversion) Database.getMetaFromRow(Object[] row, ResultSetMetaData md) BaseDatabaseMeta.getNextBatchId(DatabaseMeta dbm, Database ldb, String schemaName, String tableName, String fieldName) DatabaseInterface.getNextBatchId(DatabaseMeta dbm, Database ldb, String schemaName, String tableName, String fieldName) Get the next Batch ID from the logging tables.DatabaseMeta.getNextBatchId(Database ldb, String schemaName, String tableName, String fieldName) BaseDatabaseMeta.getNextBatchIdUsingAutoIncSQL(String autoIncSQL, DatabaseMeta dbm, Database ldb) BaseDatabaseMeta.getNextBatchIdUsingLockTables(DatabaseMeta dbm, Database ldb, String schemaName, String tableName, String fieldName) MSSQLServerDatabaseMeta.getNextBatchIdUsingLockTables(DatabaseMeta dbm, Database ldb, String schemaName, String tableName, String fieldName) BaseDatabaseMeta.getNextBatchIdUsingSequence(String sequenceName, String schemaName, DatabaseMeta dbm, Database ldb) Database.getNextSequenceValue(String sequenceName, String keyfield) Database.getNextSequenceValue(String schemaName, String sequenceName, String keyfield) Database.getNextValue(Hashtable<String, Counter> counters, String schemaName, String tableName, String valKey) Execute a query and return at most one row from the resultsetDatabase.getOneRow(String sql, RowMetaInterface param, Object[] data) String[]Database.getPrimaryKeyColumnNames(String tablename) Return primary key column names ...String[]Database.getProcedures()Database.getQueryFields(String sql, boolean param) Database.getQueryFields(String sql, boolean param, RowMetaInterface inform, Object[] data) Database.getQueryFieldsFallback(String sql, boolean param, RowMetaInterface inform, Object[] data) Object[]Get a row from the resultset.Object[]Get a row from the resultset.Object[]Database.getRow(ResultSet rs, ResultSetMetaData dummy, RowMetaInterface rowInfo) Get a row from the resultset.Reads the result of an SQL query into an ArrayListDatabase.getRows(String sql, int limit, ProgressMonitorListener monitor) Reads the result of an SQL query into an ArrayListDatabase.getRows(String sql, RowMetaInterface params, Object[] data, int fetchMode, boolean lazyConversion, int limit, ProgressMonitorListener monitor) Reads the result of an SQL query into an ArrayList.Database.getRows(ResultSet rset, int limit, ProgressMonitorListener monitor) Reads the result of a ResultSet into an ArrayListString[]Database.getSchemas()String[]Database.getSequences()Return all sequence names from connectionDatabase.getSQLOutput(String schemaName, String tableName, RowMetaInterface fields, Object[] r, String dateFormat) Return SQL statement (INSERT INTO TableName ...Database.getSynonymMap()Database.getSynonymMap(String schemanamein) String[]Database.getSynonyms()String[]Database.getSynonyms(boolean includeSchema) String[]Database.getSynonyms(String schemanamein, boolean includeSchema) Database.getTableFields(String tablename) Returns a RowMeta describing the fields of a table expression.Database.getTableFieldsMeta(String schemaName, String tableName) Returns a RowMeta describing the fields of a table.Database.getTableFieldsMetaByDbMeta(String schemaName, String tableName) Database.getTableMap()Database.getTableMap(String schemanamein) Database.getTableMap(String schemanamein, Map<String, String> props) String[]Database.getTablenames()String[]Database.getTablenames(boolean includeSchema) String[]Database.getTablenames(String schemanamein, boolean includeSchema) String[]Database.getTablenames(String schemanamein, boolean includeSchema, Map<String, String> props) String[]Database.getTableTypes()DatabaseMeta.getURL()booleanDatabase.getUseBatchInsert(boolean batch) AzureSqlDataBaseMeta.getValueFromResultSet(ResultSet rs, ValueMetaInterface val, int index) This method allows a database dialect to convert database specific data types to Kettle data types.BaseDatabaseMeta.getValueFromResultSet(ResultSet rs, ValueMetaInterface val, int i) This method allows a database dialect to convert database specific data types to Kettle data types.DatabaseInterface.getValueFromResultSet(ResultSet resultSet, ValueMetaInterface valueMeta, int index) This method allows a database dialect to convert database specific data types to Kettle data types.DatabaseMeta.getValueFromResultSet(ResultSet rs, ValueMetaInterface val, int i) NeoviewDatabaseMeta.getValueFromResultSet(ResultSet rs, ValueMetaInterface val, int i) This method allows a database dialect to convert database specific data types to Kettle data types.Vertica5DatabaseMeta.getValueFromResultSet(ResultSet rs, ValueMetaInterface val, int index) This method allows a database dialect to convert database specific data types to Kettle data types.Database.getViewMap()Database.getViewMap(String schemanamein) String[]Database.getViews()String[]Database.getViews(boolean includeSchema) String[]voidDatabase.initializeConnectionDataSource(String partitionId) voidDatabase.insertFinished(boolean batch) voidDatabase.insertFinished(PreparedStatement ps, boolean batch) Deprecated.use emptyAndCommit() instead (pass in the number of rows left in the batch)voidDatabase.insertRow()voidDatabase.insertRow(boolean batch) voidDatabase.insertRow(String schemaName, String tableName, RowMetaInterface fields, Object[] data) voidDatabase.insertRow(String tableName, RowMetaInterface fields, Object[] data) voidDatabase.insertRow(PreparedStatement ps) booleanDatabase.insertRow(PreparedStatement ps, boolean batch) Insert a row into the database using a prepared statement that has all values set.booleanDatabase.insertRow(PreparedStatement ps, boolean batch, boolean handleCommit) Insert a row into the database using a prepared statement that has all values set.voidDatabase.lockTables(String[] tableNames) Lock a tables in the database for write operationsvoidDatabase.normalConnect(String partitionId) Open the database connection.Database.openQuery(String sql, RowMetaInterface params, Object[] data) Open a query on the database with a set of parameters stored in a Kettle RowDatabase.openQuery(String sql, RowMetaInterface params, Object[] data, int fetchMode) Database.openQuery(String sql, RowMetaInterface params, Object[] data, int fetchMode, boolean lazyConversion) Database.openQuery(PreparedStatement ps, RowMetaInterface params, Object[] data) voidDatabase.prepareInsert(RowMetaInterface rowMeta, String tableName) Prepare inserting values into a table, using the fields & values in a RowvoidDatabase.prepareInsert(RowMetaInterface rowMeta, String schemaName, String tableName) Prepare inserting values into a table, using the fields & values in a RowDatabase.prepareSQL(String sql) Prepare a statement to be executed on the database.Database.prepareSQL(String sql, boolean returnKeys) Prepare a statement to be executed on the database.booleanvoidDatabase.releaseSavepoint(Savepoint savepoint) voidDatabase.rollback()voidDatabase.rollback(boolean force) voidvoidDatabaseTransactionListener.rollback()voidDatabase.setAutoCommit(boolean useAutoCommit) voidDatabase.setLookup(String table, String[] codes, String[] condition, String[] gets, String[] rename, String orderby) voidDatabase.setLookup(String tableName, String[] codes, String[] condition, String[] gets, String[] rename, String orderby, boolean checkForMultipleResults) voidDatabase.setLookup(String schema, String table, String[] codes, String[] condition, String[] gets, String[] rename, String orderby) voidDatabase.setLookup(String schemaName, String tableName, String[] codes, String[] condition, String[] gets, String[] rename, String orderby, boolean checkForMultipleResults) voidDatabase.setProcLookup(String proc, String[] arg, String[] argdir, int[] argtype, String returnvalue, int returntype) voidDatabase.setProcValues(RowMetaInterface rowMeta, Object[] data, int[] argnrs, String[] argdir, boolean result) Database.setSavepoint()Database.setSavepoint(String savePointName) voidDatabase.setValue(PreparedStatement ps, ValueMetaInterface v, Object object, int pos) voidDatabase.setValues(RowMetaInterface rowMeta, Object[] data) voidDatabase.setValues(RowMetaInterface rowMeta, Object[] data, PreparedStatement ps) voidDatabase.setValues(RowMetaInterface rowMeta, Object[] data, PreparedStatement ps, int ignoreThisValueIndex) Sets the values of the preparedStatement pstmt.voidDatabase.setValues(RowMetaAndData row) voidDatabase.setValues(RowMetaAndData row, PreparedStatement ps) voidDatabase.setValuesInsert(RowMetaInterface rowMeta, Object[] data) voidDatabase.setValuesInsert(RowMetaAndData row) voidDatabase.setValuesLookup(RowMetaInterface rowMeta, Object[] data) voidDatabase.setValuesUpdate(RowMetaInterface rowMeta, Object[] data) voidDatabase.truncateTable(String tablename) voidDatabase.truncateTable(String schema, String tablename) voidDatabase.unlockTables(String[] tableNames) Unlock certain tables in the database for write operationsvoidDatabase.updateRow()voidDatabase.writeLogRecord(LogTableCoreInterface logTable, LogStatus status, Object subject, Object parent) -
Uses of KettleDatabaseException in org.pentaho.di.core.database.util
Methods in org.pentaho.di.core.database.util that throw KettleDatabaseExceptionModifier and TypeMethodDescriptionvoidLogExceptionBehaviourInterface.registerException(LogChannelInterface log, Class<?> packageClass, String key, String... parameters) When exception during logging is raised, depending on item settings we will throw exception up, or just put a log record on this event.voidLogExceptionBehaviourInterface.registerException(LogChannelInterface log, Exception e, Class<?> packageClass, String key, String... parameters) -
Uses of KettleDatabaseException in org.pentaho.di.core.exception
Subclasses of KettleDatabaseException in org.pentaho.di.core.exceptionModifier and TypeClassDescriptionclassThis exception is used by the Database class.classThis exception is used by the Database class. -
Uses of KettleDatabaseException in org.pentaho.di.core.row
Methods in org.pentaho.di.core.row that throw KettleDatabaseExceptionModifier and TypeMethodDescriptionValueMetaInterface.getMetadataPreview(DatabaseMeta databaseMeta, ResultSet rs) This is a similar method to getValueFromSQLType, but it uses a ResultSet from a call to DatabaseMetaData#getColumns(String, String, String, String) The ResultSet must be positioned correctly on the row to read.ValueMetaInterface.getValueFromResultSet(DatabaseInterface databaseInterface, ResultSet resultSet, int index) Get a value from a result set column based on the current value metadataValueMetaInterface.getValueFromSQLType(DatabaseMeta databaseMeta, String name, ResultSetMetaData rm, int index, boolean ignoreLength, boolean lazyConversion) Investigate JDBC result set metadata at the specified index.voidValueMetaInterface.setPreparedStatementValue(DatabaseMeta databaseMeta, PreparedStatement preparedStatement, int index, Object data) Set a value on a JDBC prepared statement on the specified position -
Uses of KettleDatabaseException in org.pentaho.di.core.row.value
Methods in org.pentaho.di.core.row.value that throw KettleDatabaseExceptionModifier and TypeMethodDescriptionValueMetaBase.getMetadataPreview(DatabaseMeta databaseMeta, ResultSet rs) ValueMetaInternetAddress.getMetadataPreview(DatabaseMeta databaseMeta, ResultSet rs) ValueMetaTimestamp.getMetadataPreview(DatabaseMeta databaseMeta, ResultSet rs) ValueMetaBase.getValueFromResultSet(DatabaseInterface databaseInterface, ResultSet resultSet, int index) Get a value from a result set column based on the current value metadataValueMetaInternetAddress.getValueFromResultSet(DatabaseInterface databaseInterface, ResultSet resultSet, int index) ValueMetaTimestamp.getValueFromResultSet(DatabaseInterface databaseInterface, ResultSet resultSet, int index) ValueMetaBase.getValueFromSQLType(DatabaseMeta databaseMeta, String name, ResultSetMetaData rm, int index, boolean ignoreLength, boolean lazyConversion) ValueMetaInternetAddress.getValueFromSQLType(DatabaseMeta databaseMeta, String name, ResultSetMetaData rm, int index, boolean ignoreLength, boolean lazyConversion) ValueMetaTimestamp.getValueFromSQLType(DatabaseMeta databaseMeta, String name, ResultSetMetaData rm, int index, boolean ignoreLength, boolean lazyConversion) voidValueMetaBase.setPreparedStatementValue(DatabaseMeta databaseMeta, PreparedStatement preparedStatement, int index, Object data) voidValueMetaInternetAddress.setPreparedStatementValue(DatabaseMeta databaseMeta, PreparedStatement preparedStatement, int index, Object data) voidValueMetaTimestamp.setPreparedStatementValue(DatabaseMeta databaseMeta, PreparedStatement preparedStatement, int index, Object data)
Database.checkColumnExists(String, String, String)