Package org.pentaho.di.core.database
Class ExtenDBDatabaseMeta
- java.lang.Object
- 
- org.pentaho.di.core.database.BaseDatabaseMeta
- 
- org.pentaho.di.core.database.ExtenDBDatabaseMeta
 
 
- 
- All Implemented Interfaces:
- Cloneable,- DatabaseInterface,- DatabaseInterfaceExtended
 
 public class ExtenDBDatabaseMeta extends BaseDatabaseMeta implements DatabaseInterface Contains ExtenDB specific information through static final members- Since:
- 11-Apr-2006
- Author:
- amart
 
- 
- 
Field Summary- 
Fields inherited from class org.pentaho.di.core.database.BaseDatabaseMetaATTRIBUTE_CLUSTER_DBNAME_PREFIX, ATTRIBUTE_CLUSTER_HOSTNAME_PREFIX, ATTRIBUTE_CLUSTER_PASSWORD_PREFIX, ATTRIBUTE_CLUSTER_PORT_PREFIX, ATTRIBUTE_CLUSTER_USERNAME_PREFIX, ATTRIBUTE_FORCE_IDENTIFIERS_TO_LOWERCASE, ATTRIBUTE_FORCE_IDENTIFIERS_TO_UPPERCASE, ATTRIBUTE_INITIAL_POOL_SIZE, ATTRIBUTE_IS_CLUSTERED, ATTRIBUTE_MAXIMUM_POOL_SIZE, ATTRIBUTE_MSSQL_DOUBLE_DECIMAL_SEPARATOR, ATTRIBUTE_POOLING_PARAMETER_PREFIX, ATTRIBUTE_PORT_NUMBER, ATTRIBUTE_PREFERRED_SCHEMA_NAME, ATTRIBUTE_PREFIX_EXTRA_OPTION, ATTRIBUTE_PRESERVE_RESERVED_WORD_CASE, ATTRIBUTE_QUOTE_ALL_FIELDS, ATTRIBUTE_SQL_CONNECT, ATTRIBUTE_SUPPORTS_BOOLEAN_DATA_TYPE, ATTRIBUTE_SUPPORTS_TIMESTAMP_DATA_TYPE, ATTRIBUTE_USE_POOLING, ATTRIBUTE_USE_RESULT_STREAMING, AUTOINCREMENT_SQL_FOR_BATCH_ID, NAMED_CLUSTER_ID, poolingParameters, releaseSavepoint, SELECT_COUNT_STATEMENT, SEQUENCE_FOR_BATCH_ID
 
- 
 - 
Constructor SummaryConstructors Constructor Description ExtenDBDatabaseMeta()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]getAccessTypeList()Get the list of possible access types for a database.StringgetAddColumnStatement(String tablename, ValueMetaInterface v, String tk, boolean useAutoinc, String pk, boolean semicolon)Generates the SQL statement to add a column to the specified tableintgetDefaultDatabasePort()StringgetDriverClass()Obtain the name of the JDBC driver class that we need to use!StringgetDropColumnStatement(String tablename, ValueMetaInterface v, String tk, boolean useAutoinc, String pk, boolean semicolon)Generates the SQL statement to drop a column from the specified tableStringgetFieldDefinition(ValueMetaInterface v, String tk, String pk, boolean useAutoinc, boolean addFieldName, boolean addCr)Describe a Value as a field in the database.StringgetModifyColumnStatement(String tablename, ValueMetaInterface v, String tk, boolean useAutoinc, String pk, boolean semicolon)Generates the SQL statement to modify a column in the specified tableString[]getReservedWords()StringgetURL(String hostname, String port, String databaseName)String[]getUsedLibraries()booleanisFetchSizeSupported()Checks whether or not the command setFetchSize() is supported by the JDBC driver...booleansupportsBitmapIndex()booleansupportsSynonyms()- 
Methods inherited from class org.pentaho.di.core.database.BaseDatabaseMetaaddAttribute, addDefaultOptions, addExtraOption, canTest, checkIndexExists, clone, customizeValueFromSQLType, fullExceptionLog, generateColumnAlias, getAccessType, getAttribute, getAttributes, getBackwardsCompatibleSchemaTableCombination, getBackwardsCompatibleTable, getConnectionPoolingProperties, getConnectSQL, getCreateTableStatement, getDatabaseFactoryName, getDatabaseName, getDatabasePortNumberString, getDataTablespace, getDataTablespaceDDL, getDefaultOptions, getDisplayName, getDropTableIfExistsStatement, getEndQuote, getExtraOptionIndicator, getExtraOptions, getExtraOptionSeparator, getExtraOptionsHelpText, getExtraOptionValueSeparator, getFieldnameProtector, getFunctionAverage, getFunctionCount, getFunctionMaximum, getFunctionMinimum, getFunctionSum, getHostname, getIndexTablespace, getIndexTablespaceDDL, getInitialPoolSize, getInitialPoolSizeString, getLimitClause, getMaxColumnsInIndex, getMaximumPoolSize, getMaximumPoolSizeString, getMaxTextFieldLength, getMaxVARCHARLength, getName, getNamedCluster, getNextBatchId, getNextBatchIdUsingAutoIncSQL, getNextBatchIdUsingLockTables, getNextBatchIdUsingSequence, getNotFoundTK, getObjectId, getPartitioningInformation, getPassword, getPluginId, getPluginName, getPreferredSchemaName, getSafeFieldname, getSchemaTableCombination, getSelectCountStatement, getSequenceNoMaxValueOption, getServername, getSQLColumnExists, getSQLCurrentSequenceValue, getSQLInsertAutoIncUnknownDimensionRow, getSQLListOfProcedures, getSQLListOfSchemas, getSQLListOfSequences, getSQLLockTables, getSQLNextSequenceValue, getSQLQueryFields, getSqlScriptStatements, getSQLSequenceExists, getSQLTableExists, getSQLUnlockTables, getSQLValue, getStartQuote, getSynonymTypes, getTablespaceDDL, getTableTypes, getTruncateTableStatement, getUsername, getValueFromResultSet, getViewTypes, getXulOverlayFile, isChanged, isDefaultingToUppercase, isDisplaySizeTwiceThePrecision, isExplorable, isForcingIdentifiersToLowerCase, isForcingIdentifiersToUpperCase, isMySQLVariant, isPartitioned, isQuoteAllFields, isRequiringTransactionsOnQueries, isStreamingResults, isSystemTable, isUsingConnectionPool, isUsingDoubleDecimalAsSchemaTableSeparator, needsPlaceHolder, needsToLockAllTables, onlySpaces, parseStatements, preserveReservedCase, quoteReservedWords, quoteSQLString, releaseSavepoint, requiresCastToVariousForIsNull, requiresCreateTablePrimaryKeyAppend, requiresName, setAccessType, setAttributes, setChanged, setConnectionPoolingProperties, setConnectSQL, setDatabaseName, setDatabasePortNumberString, setDataTablespace, setDisplayName, setForcingIdentifiersToLowerCase, setForcingIdentifiersToUpperCase, setHostname, setIndexTablespace, setInitialPoolSize, setInitialPoolSizeString, setMaximumPoolSize, setMaximumPoolSizeString, setName, setNamedCluster, setObjectId, setPartitioned, setPartitioningInformation, setPassword, setPluginId, setPluginName, setPreferredSchemaName, setPreserveReservedCase, setQuoteAllFields, setServername, setStreamingResults, setSupportsBooleanDataType, setSupportsTimestampDataType, setUsername, setUsingConnectionPool, setUsingDoubleDecimalAsSchemaTableSeparator, supportsAutoGeneratedKeys, supportsAutoInc, supportsBatchUpdates, supportsBooleanDataType, supportsCatalogs, supportsEmptyTransactions, supportsErrorHandling, supportsErrorHandlingOnBatchUpdates, supportsFloatRoundingOnUpdate, supportsGetBlob, supportsNewLinesInSQL, supportsOptionsInURL, supportsPreparedStatementMetadataRetrieval, supportsRepository, supportsResultSetMetadataRetrievalOnly, supportsSchemas, supportsSequenceNoMaxValueOption, supportsSequences, supportsSetCharacterStream, supportsSetLong, supportsSetMaxRows, supportsTimestampDataType, supportsTimeStampToDateConversion, supportsTransactions, supportsViews, useSafePoints, useSchemaNameForTableList
 - 
Methods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.pentaho.di.core.database.DatabaseInterfaceaddAttribute, addDefaultOptions, addExtraOption, checkIndexExists, clone, createSqlScriptParser, customizeValueFromSQLType, generateColumnAlias, getAccessType, getAttribute, getAttributes, getConnectionPoolingProperties, getConnectSQL, getCreateTableStatement, getDatabaseFactoryName, getDatabaseName, getDatabasePortNumberString, getDataTablespace, getDataTablespaceDDL, getDefaultOptions, getDisplayName, getEndQuote, getExtraOptionIndicator, getExtraOptions, getExtraOptionSeparator, getExtraOptionsHelpText, getExtraOptionValueSeparator, getFunctionAverage, getFunctionCount, getFunctionMaximum, getFunctionMinimum, getFunctionSum, getHostname, getIndexTablespace, getIndexTablespaceDDL, getInitialPoolSize, getInitialPoolSizeString, getLegacyColumnName, getLimitClause, getMaxColumnsInIndex, getMaximumPoolSize, getMaximumPoolSizeString, getMaxTextFieldLength, getMaxVARCHARLength, getName, getNamedCluster, getNamedClusterList, getNextBatchId, getNotFoundTK, getObjectId, getPartitioningInformation, getPassword, getPluginId, getPluginName, getPreferredSchemaName, getSafeFieldname, getSchemas, getSchemaTableCombination, getSelectCountStatement, getSequenceNoMaxValueOption, getServername, getSQLColumnExists, getSQLCurrentSequenceValue, getSQLInsertAutoIncUnknownDimensionRow, getSQLListOfProcedures, getSQLListOfSchemas, getSQLListOfSchemas, getSQLListOfSequences, getSQLLockTables, getSQLNextSequenceValue, getSQLQueryFields, getSqlScriptStatements, getSQLSequenceExists, getSQLTableExists, getSQLUnlockTables, getSQLValue, getStartQuote, getSynonymTypes, getTables, getTableTypes, getTruncateTableStatement, getUnsupportedTableOutputMessage, getUsername, getValueFromResultSet, getViewTypes, getXulOverlayFile, isChanged, isDefaultingToUppercase, isDisplaySizeTwiceThePrecision, isExplorable, isForcingIdentifiersToLowerCase, isForcingIdentifiersToUpperCase, isMySQLVariant, isPartitioned, isQuoteAllFields, isRequiringTransactionsOnQueries, isStreamingResults, isSystemTable, isUsingConnectionPool, isUsingDoubleDecimalAsSchemaTableSeparator, needsPlaceHolder, needsToLockAllTables, parseStatements, preserveReservedCase, putOptionalOptions, quoteReservedWords, quoteSQLString, releaseSavepoint, requiresCastToVariousForIsNull, requiresCreateTablePrimaryKeyAppend, setAccessType, setAttributes, setChanged, setConnectionPoolingProperties, setConnectSQL, setDatabaseName, setDatabasePortNumberString, setDataTablespace, setDisplayName, setForcingIdentifiersToLowerCase, setForcingIdentifiersToUpperCase, setHostname, setIndexTablespace, setInitialPoolSize, setInitialPoolSizeString, setMaximumPoolSize, setMaximumPoolSizeString, setName, setNamedCluster, setObjectId, setPartitioned, setPartitioningInformation, setPassword, setPluginId, setPluginName, setPreferredSchemaName, setPreserveReservedCase, setQuoteAllFields, setServername, setStreamingResults, setSupportsBooleanDataType, setSupportsTimestampDataType, setUsername, setUsingConnectionPool, setUsingDoubleDecimalAsSchemaTableSeparator, supportsAutoGeneratedKeys, supportsAutoInc, supportsBatchUpdates, supportsBooleanDataType, supportsCatalogs, supportsEmptyTransactions, supportsErrorHandling, supportsErrorHandlingOnBatchUpdates, supportsFloatRoundingOnUpdate, supportsGetBlob, supportsIndexes, supportsNewLinesInSQL, supportsOptionsInURL, supportsPreparedStatementMetadataRetrieval, supportsRepository, supportsResultSetMetadataRetrievalOnly, supportsSchemas, supportsSequenceNoMaxValueOption, supportsSequences, supportsSetCharacterStream, supportsSetLong, supportsSetMaxRows, supportsStandardTableOutput, supportsTimestampDataType, supportsTimeStampToDateConversion, supportsTransactions, supportsViews, useSafePoints, useSchemaNameForTableList
 
- 
 
- 
- 
- 
Method Detail- 
getAccessTypeListpublic int[] getAccessTypeList() Description copied from interface:DatabaseInterfaceGet the list of possible access types for a database.- Specified by:
- getAccessTypeListin interface- DatabaseInterface
- Specified by:
- getAccessTypeListin class- BaseDatabaseMeta
- Returns:
- the list of possible access types for a database.
- See Also:
- DatabaseInterface.getAccessTypeList()
 
 - 
getDefaultDatabasePortpublic int getDefaultDatabasePort() - Specified by:
- getDefaultDatabasePortin interface- DatabaseInterface
- Overrides:
- getDefaultDatabasePortin class- BaseDatabaseMeta
- Returns:
- the default database port number
 
 - 
getDriverClasspublic String getDriverClass() Description copied from interface:DatabaseInterfaceObtain the name of the JDBC driver class that we need to use!- Specified by:
- getDriverClassin interface- DatabaseInterface
- Returns:
- the name of the JDBC driver class for the specific database
- See Also:
- DatabaseInterface.getDriverClass()
 
 - 
getURLpublic String getURL(String hostname, String port, String databaseName) - Specified by:
- getURLin interface- DatabaseInterface
- Parameters:
- hostname- the hostname
- port- the port as a string
- databaseName- the database name
- Returns:
- the URL to use for connecting to the database.
 
 - 
getReservedWordspublic String[] getReservedWords() - Specified by:
- getReservedWordsin interface- DatabaseInterface
- Overrides:
- getReservedWordsin class- BaseDatabaseMeta
- Returns:
- an array of reserved words for the database type...
 
 - 
isFetchSizeSupportedpublic boolean isFetchSizeSupported() Checks whether or not the command setFetchSize() is supported by the JDBC driver...- Specified by:
- isFetchSizeSupportedin interface- DatabaseInterface
- Overrides:
- isFetchSizeSupportedin class- BaseDatabaseMeta
- Returns:
- true is setFetchSize() is supported!
 
 - 
supportsBitmapIndexpublic boolean supportsBitmapIndex() - Specified by:
- supportsBitmapIndexin interface- DatabaseInterface
- Overrides:
- supportsBitmapIndexin class- BaseDatabaseMeta
- Returns:
- true if the database supports bitmap indexes
 
 - 
supportsSynonymspublic boolean supportsSynonyms() - Specified by:
- supportsSynonymsin interface- DatabaseInterface
- Overrides:
- supportsSynonymsin class- BaseDatabaseMeta
- Returns:
- true if the database supports synonyms
 
 - 
getAddColumnStatementpublic String getAddColumnStatement(String tablename, ValueMetaInterface v, String tk, boolean useAutoinc, String pk, boolean semicolon) Generates the SQL statement to add a column to the specified table- Specified by:
- getAddColumnStatementin interface- DatabaseInterface
- Parameters:
- tablename- The table to add
- v- The column defined as a value
- tk- the name of the technical key field
- useAutoinc- whether or not this field uses auto increment
- pk- the name of the primary key field
- semicolon- whether or not to add a semi-colon behind the statement.
- Returns:
- the SQL statement to add a column to the specified table
 
 - 
getDropColumnStatementpublic String getDropColumnStatement(String tablename, ValueMetaInterface v, String tk, boolean useAutoinc, String pk, boolean semicolon) Generates the SQL statement to drop a column from the specified table- Specified by:
- getDropColumnStatementin interface- DatabaseInterface
- Overrides:
- getDropColumnStatementin class- BaseDatabaseMeta
- Parameters:
- tablename- The table to add
- v- The column defined as a value
- tk- the name of the technical key field
- useAutoinc- whether or not this field uses auto increment
- pk- the name of the primary key field
- semicolon- whether or not to add a semi-colon behind the statement.
- Returns:
- the SQL statement to drop a column from the specified table
 
 - 
getModifyColumnStatementpublic String getModifyColumnStatement(String tablename, ValueMetaInterface v, String tk, boolean useAutoinc, String pk, boolean semicolon) Generates the SQL statement to modify a column in the specified table- Specified by:
- getModifyColumnStatementin interface- DatabaseInterface
- Parameters:
- tablename- The table to add
- v- The column defined as a value
- tk- the name of the technical key field
- useAutoinc- whether or not this field uses auto increment
- pk- the name of the primary key field
- semicolon- whether or not to add a semi-colon behind the statement.
- Returns:
- the SQL statement to modify a column in the specified table
 
 - 
getFieldDefinitionpublic String getFieldDefinition(ValueMetaInterface v, String tk, String pk, boolean useAutoinc, boolean addFieldName, boolean addCr) Description copied from interface:DatabaseInterfaceDescribe a Value as a field in the database.- Specified by:
- getFieldDefinitionin interface- DatabaseInterface
- Parameters:
- v- The value to describe
- tk- The field that's going to be the technical key
- pk- The field that's going to be the primary key
- useAutoinc- Use autoincrement or not
- addFieldName- Add the fieldname to the definition or not
- addCr- Add a cariage return at the end of the definition or not.
- Returns:
- a value described as a field in this database.
 
 - 
getUsedLibrariespublic String[] getUsedLibraries() - Specified by:
- getUsedLibrariesin interface- DatabaseInterface
- Returns:
- the required libraries (in lib) for this database connection.
 
 
- 
 
-