Package org.apache.hop.databases.sqlbase
Class GuptaDatabaseMeta
- java.lang.Object
-
- org.apache.hop.core.database.BaseDatabaseMeta
-
- org.apache.hop.databases.sqlbase.GuptaDatabaseMeta
-
@DatabaseMetaPlugin(type="SQLBASE", typeDescription="Gupta SQL Base", documentationUrl="/database/databases/sqlbase.html") @GuiPlugin(id="GUI-SQLBaseDatabaseMeta") public class GuptaDatabaseMeta extends BaseDatabaseMeta implements IDatabase
Contains Gupta SQLBase specific information through static final members
-
-
Field Summary
-
Fields inherited from class org.apache.hop.core.database.BaseDatabaseMeta
accessType, ATTRIBUTE_FORCE_IDENTIFIERS_TO_LOWERCASE, ATTRIBUTE_FORCE_IDENTIFIERS_TO_UPPERCASE, ATTRIBUTE_MSSQL_DOUBLE_DECIMAL_SEPARATOR, 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_RESULT_STREAMING, attributes, AUTOINCREMENT_SQL_FOR_BATCH_ID, databaseName, dataTablespace, hostname, ID_PASSWORD_LABEL, ID_PASSWORD_WIDGET, ID_USERNAME_LABEL, ID_USERNAME_WIDGET, indexTablespace, manualUrl, password, pluginId, pluginName, port, releaseSavepoint, SELECT_COUNT_STATEMENT, SEQUENCE_FOR_BATCH_ID, servername, username
-
-
Constructor Summary
Constructors Constructor Description GuptaDatabaseMeta()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]getAccessTypeList()StringgetAddColumnStatement(String tableName, IValueMeta v, String tk, boolean useAutoinc, String pk, boolean semicolon)Generates the SQL statement to add a column to the specified tableintgetDefaultDatabasePort()StringgetDriverClass()StringgetFieldDefinition(IValueMeta v, String tk, String pk, boolean useAutoinc, boolean addFieldName, boolean addCr)StringgetModifyColumnStatement(String tableName, IValueMeta v, String tk, boolean useAutoinc, String pk, boolean semicolon)Generates the SQL statement to modify a column in the specified tableStringgetURL(String hostname, String port, String databaseName)booleanisFetchSizeSupported()Checks whether or not the command setFetchSize() is supported by the JDBC driver...booleanisSupportsAutoInc()booleanisSupportsBitmapIndex()booleanisSupportsCatalogs()booleanisSupportsPreparedStatementMetadataRetrieval()Most databases allow you to retrieve result metadata by preparing a SELECT statement.booleanisSupportsTimeStampToDateConversion()booleanisSystemTable(String tableName)-
Methods inherited from class org.apache.hop.core.database.BaseDatabaseMeta
addAttribute, addDefaultOptions, addExtraOption, canTest, clone, customizeValueFromSqlType, generateColumnAlias, getAccessType, getAttribute, getAttributeProperty, getAttributeProperty, getAttributes, getConnectSql, getCreateTableStatement, getDatabaseFactoryName, getDatabaseName, getDataTablespace, getDataTablespaceDDL, getDefaultOptions, getDropColumnStatement, getDropTableIfExistsStatement, getEndQuote, getExtraOptionIndicator, getExtraOptions, getExtraOptionSeparator, getExtraOptionsHelpText, getExtraOptionValueSeparator, getFieldnameProtector, getFunctionAverage, getFunctionCount, getFunctionMaximum, getFunctionMinimum, getFunctionSum, getHostname, getIndexTablespace, getIndexTablespaceDDL, getLimitClause, getManualUrl, getMaxColumnsInIndex, getMaxTextFieldLength, getMaxVARCHARLength, getNotFoundTK, getPassword, getPluginId, getPluginName, getPort, getPreferredSchemaName, getReservedWords, getSafeFieldname, getSchemaTableCombination, getSelectCountStatement, getSequenceNoMaxValueOption, getServername, getSqlColumnExists, getSqlCurrentSequenceValue, getSqlDeleteStmt, getSqlInsertAutoIncUnknownDimensionRow, getSqlInsertClauseBeforeFields, getSqlListOfProcedures, getSqlListOfSchemas, getSqlListOfSequences, getSqlLockTables, getSqlNextSequenceValue, getSqlQueryFields, getSqlScriptStatements, getSqlSequenceExists, getSqlTableExists, getSqlUnlockTables, getSqlUpdateStmt, getSqlValue, getStartQuote, getSynonymTypes, getTablespaceDDL, getTableTypes, getTruncateTableStatement, getUsername, getValueFromResultSet, getViewTypes, hasIndex, isChanged, isDefaultingToUppercase, isDisplaySizeTwiceThePrecision, isExasolVariant, isExplorable, isForcingIdentifiersToLowerCase, isForcingIdentifiersToUpperCase, isFullExceptionLog, isInformixVariant, isMsSqlServerNativeVariant, isMsSqlServerVariant, isMySqlVariant, isNeedsPlaceHolder, isNeoviewVariant, isNetezzaVariant, isOracleVariant, isPostgresVariant, isPreserveReservedCase, isQuoteAllFields, isQuoteReservedWords, isReleaseSavepoint, isRequiresCastToVariousForIsNull, isRequiresCreateTablePrimaryKeyAppend, isRequiresName, isRequiringTransactionsOnQueries, isSqliteVariant, isStreamingResults, isStrictBigNumberInterpretation, isSupportsAutoGeneratedKeys, isSupportsBatchUpdates, isSupportsBooleanDataType, isSupportsCustomDeleteStmt, isSupportsCustomUpdateStmt, isSupportsEmptyTransactions, isSupportsErrorHandling, IsSupportsErrorHandlingOnBatchUpdates, isSupportsFloatRoundingOnUpdate, isSupportsGetBlob, isSupportsNewLinesInSql, isSupportsOptionsInURL, isSupportsResultSetMetadataRetrievalOnly, isSupportsSchemas, isSupportsSequenceNoMaxValueOption, isSupportsSequences, isSupportsSetCharacterStream, isSupportsSetLong, isSupportsSetMaxRows, isSupportsSynonyms, isSupportsTimestampDataType, isSupportsTransactions, isSupportsViews, isSybaseIQVariant, isSybaseVariant, isTeradataVariant, isUseSafePoints, isUsingDoubleDecimalAsSchemaTableSeparator, onlySpaces, parseStatements, quoteSqlString, setAccessType, setAttributes, setChanged, setConnectSql, setDatabaseName, setDataTablespace, setForcingIdentifiersToLowerCase, setForcingIdentifiersToUpperCase, setHostname, setIndexTablespace, setManualUrl, setPassword, setPluginId, setPluginName, setPort, setPreferredSchemaName, setPreserveReservedCase, setQuoteAllFields, setServername, setStreamingResults, setSupportsBooleanDataType, setSupportsTimestampDataType, setUsername, setUsingDoubleDecimalAsSchemaTableSeparator, useSchemaNameForTableList
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.hop.core.database.IDatabase
addAttribute, addDefaultOptions, addExtraOption, clone, createSqlScriptParser, customizeValueFromSqlType, generateColumnAlias, getAccessType, getAttribute, getAttributes, getConnectSql, getCreateTableStatement, getDatabaseFactoryName, getDatabaseName, getDataTablespace, getDataTablespaceDDL, getDefaultOptions, getDropColumnStatement, getDropTableIfExistsStatement, getEndQuote, getExtraOptionIndicator, getExtraOptions, getExtraOptionSeparator, getExtraOptionsHelpText, getExtraOptionValueSeparator, getFunctionAverage, getFunctionCount, getFunctionMaximum, getFunctionMinimum, getFunctionSum, getHostname, getIndexTablespace, getIndexTablespaceDDL, getLegacyColumnName, getLimitClause, getManualUrl, getMaxColumnsInIndex, getMaxTextFieldLength, getMaxVARCHARLength, getNotFoundTK, getPassword, getPluginId, getPluginName, getPort, getPreferredSchemaName, getReservedWords, getSafeFieldname, getSchemaTableCombination, getSelectCountStatement, getSequenceNoMaxValueOption, getServername, getSqlColumnExists, getSqlCurrentSequenceValue, getSqlDeleteStmt, getSqlInsertAutoIncUnknownDimensionRow, getSqlInsertClauseBeforeFields, getSqlListOfProcedures, getSqlListOfSchemas, getSqlListOfSequences, getSqlLockTables, getSqlNextSequenceValue, getSqlQueryFields, getSqlScriptStatements, getSqlSequenceExists, getSqlTableExists, getSqlUnlockTables, getSqlUpdateStmt, getSqlValue, getStartQuote, getSynonymTypes, getTableTypes, getTruncateTableStatement, getUnsupportedTableOutputMessage, getUsername, getValueFromResultSet, getViewTypes, hasIndex, isChanged, isDefaultingToUppercase, isDisplaySizeTwiceThePrecision, isExasolVariant, isExplorable, isForcingIdentifiersToLowerCase, isForcingIdentifiersToUpperCase, isFullExceptionLog, isInformixVariant, isMsSqlServerNativeVariant, isMsSqlServerVariant, isMySqlVariant, isNeedsPlaceHolder, isNeoviewVariant, isNetezzaVariant, isOracleVariant, isPostgresVariant, isPreserveReservedCase, isQuoteAllFields, isQuoteReservedWords, isReleaseSavepoint, isRequiresCastToVariousForIsNull, isRequiresCreateTablePrimaryKeyAppend, isRequiresName, isRequiringTransactionsOnQueries, isSqliteVariant, isStreamingResults, isStrictBigNumberInterpretation, isSupportsAutoGeneratedKeys, isSupportsBatchUpdates, isSupportsBooleanDataType, isSupportsCustomDeleteStmt, isSupportsCustomUpdateStmt, isSupportsEmptyTransactions, isSupportsErrorHandling, IsSupportsErrorHandlingOnBatchUpdates, isSupportsFloatRoundingOnUpdate, isSupportsGetBlob, isSupportsNewLinesInSql, isSupportsOptionsInURL, isSupportsResultSetMetadataRetrievalOnly, isSupportsSchemas, isSupportsSequenceNoMaxValueOption, isSupportsSequences, isSupportsSetCharacterStream, isSupportsSetLong, isSupportsSetMaxRows, isSupportsSynonyms, isSupportsTimestampDataType, isSupportsTransactions, isSupportsViews, isSybaseIQVariant, isSybaseVariant, isTeradataVariant, isUseSafePoints, isUsingDoubleDecimalAsSchemaTableSeparator, parseStatements, quoteSqlString, setAccessType, setAttributes, setChanged, setConnectSql, setDatabaseName, setDataTablespace, setForcingIdentifiersToLowerCase, setForcingIdentifiersToUpperCase, setHostname, setIndexTablespace, setManualUrl, setPassword, setPluginId, setPluginName, setPort, setPreferredSchemaName, setPreserveReservedCase, setQuoteAllFields, setServername, setStreamingResults, setSupportsBooleanDataType, setSupportsTimestampDataType, setUsername, setUsingDoubleDecimalAsSchemaTableSeparator, supportsStandardTableOutput, useSchemaNameForTableList
-
-
-
-
Method Detail
-
getAccessTypeList
public int[] getAccessTypeList()
- Specified by:
getAccessTypeListin interfaceIDatabase- Specified by:
getAccessTypeListin classBaseDatabaseMeta
-
getDefaultDatabasePort
public int getDefaultDatabasePort()
- Specified by:
getDefaultDatabasePortin interfaceIDatabase- Overrides:
getDefaultDatabasePortin classBaseDatabaseMeta
-
isSupportsAutoInc
public boolean isSupportsAutoInc()
- Specified by:
isSupportsAutoIncin interfaceIDatabase- Overrides:
isSupportsAutoIncin classBaseDatabaseMeta- Returns:
- Whether or not the database can use auto increment type of fields (pk)
-
getDriverClass
public String getDriverClass()
- Specified by:
getDriverClassin interfaceIDatabase
-
isFetchSizeSupported
public boolean isFetchSizeSupported()
Checks whether or not the command setFetchSize() is supported by the JDBC driver...- Specified by:
isFetchSizeSupportedin interfaceIDatabase- Overrides:
isFetchSizeSupportedin classBaseDatabaseMeta- Returns:
- true is setFetchSize() is supported!
-
isSupportsBitmapIndex
public boolean isSupportsBitmapIndex()
- Specified by:
isSupportsBitmapIndexin interfaceIDatabase- Overrides:
isSupportsBitmapIndexin classBaseDatabaseMeta- Returns:
- true if the database supports bitmap indexes
-
isSupportsCatalogs
public boolean isSupportsCatalogs()
- Specified by:
isSupportsCatalogsin interfaceIDatabase- Overrides:
isSupportsCatalogsin classBaseDatabaseMeta- Returns:
- true if the database supports catalogs
-
isSupportsTimeStampToDateConversion
public boolean isSupportsTimeStampToDateConversion()
- Specified by:
isSupportsTimeStampToDateConversionin interfaceIDatabase- Overrides:
isSupportsTimeStampToDateConversionin classBaseDatabaseMeta- Returns:
- true if the database supports timestamp to date conversion. Gupta doesn't support this!
-
getAddColumnStatement
public String getAddColumnStatement(String tableName, IValueMeta v, String tk, boolean useAutoinc, String pk, boolean semicolon)
Generates the SQL statement to add a column to the specified table- Specified by:
getAddColumnStatementin interfaceIDatabase- Parameters:
tableName- The table to addv- The column defined as a valuetk- the name of the technical key fielduseAutoinc- whether or not this field uses auto incrementpk- the name of the primary key fieldsemicolon- whether or not to add a semi-colon behind the statement.- Returns:
- the SQL statement to add a column to the specified table
-
getModifyColumnStatement
public String getModifyColumnStatement(String tableName, IValueMeta v, String tk, boolean useAutoinc, String pk, boolean semicolon)
Generates the SQL statement to modify a column in the specified table- Specified by:
getModifyColumnStatementin interfaceIDatabase- Parameters:
tableName- The table to addv- The column defined as a valuetk- the name of the technical key fielduseAutoinc- whether or not this field uses auto incrementpk- the name of the primary key fieldsemicolon- whether or not to add a semi-colon behind the statement.- Returns:
- the SQL statement to modify a column in the specified table
-
getFieldDefinition
public String getFieldDefinition(IValueMeta v, String tk, String pk, boolean useAutoinc, boolean addFieldName, boolean addCr)
- Specified by:
getFieldDefinitionin interfaceIDatabase
-
isSystemTable
public boolean isSystemTable(String tableName)
- Specified by:
isSystemTablein interfaceIDatabase- Overrides:
isSystemTablein classBaseDatabaseMeta- Parameters:
tableName-- Returns:
- true if the specified table is a system table
-
isSupportsPreparedStatementMetadataRetrieval
public boolean isSupportsPreparedStatementMetadataRetrieval()
Most databases allow you to retrieve result metadata by preparing a SELECT statement. Gupta though doesn't.- Specified by:
isSupportsPreparedStatementMetadataRetrievalin interfaceIDatabase- Overrides:
isSupportsPreparedStatementMetadataRetrievalin classBaseDatabaseMeta- Returns:
- true if the database supports retrieval of query metadata from a prepared statement. False if the query needs to be executed first.
-
-