public class GenericDatabaseMeta extends BaseDatabaseMeta implements DatabaseInterface
| Modifier and Type | Field and Description |
|---|---|
static String |
ATRRIBUTE_CUSTOM_DRIVER_CLASS |
static String |
ATRRIBUTE_CUSTOM_URL |
static String |
DATABASE_DIALECT_ID |
ATTRIBUTE_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 and Description |
|---|
GenericDatabaseMeta() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String attributeId,
String value)
Add extra attribute on this connection
|
void |
addExtraOption(String databaseTypeCode,
String option,
String value)
Add an extra option to the attributes list
|
ValueMetaInterface |
customizeValueFromSQLType(ValueMetaInterface v,
ResultSetMetaData rm,
int index)
Customizes the ValueMetaInterface defined in the base
|
String |
generateColumnAlias(int columnIndex,
String suggestedName)
Generate a column alias given the column index and suggested name.
|
int[] |
getAccessTypeList()
Get the list of possible access types for a database.
|
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 For this generic type, i set it to the most
common possibility.
|
String |
getCreateTableStatement()
Customizes the ValueMetaInterface defined in the base
|
String |
getDatabaseDialect() |
Map<String,String> |
getDefaultOptions() |
String |
getDriverClass()
Obtain the name of the JDBC driver class that we need to use!
|
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
|
String |
getEndQuote() |
String |
getExtraOptionIndicator() |
Map<String,String> |
getExtraOptions() |
String |
getExtraOptionSeparator() |
String |
getExtraOptionsHelpText() |
String |
getExtraOptionValueSeparator() |
String |
getFieldDefinition(ValueMetaInterface v,
String tk,
String pk,
boolean useAutoinc,
boolean addFieldName,
boolean addCr)
Describe a Value as a field in the database.
|
String |
getFunctionAverage() |
String |
getFunctionCount() |
String |
getFunctionMaximum() |
String |
getFunctionMinimum() |
String |
getFunctionSum() |
String |
getLimitClause(int nrRows) |
int |
getMaxColumnsInIndex() |
int |
getMaxTextFieldLength()
Get the maximum length of a text field for this database connection.
|
int |
getMaxVARCHARLength()
Get the maximum length of a text field (VARCHAR) for this database connection.
|
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
|
int |
getNotFoundTK(boolean useAutoinc)
Get the not found technical key.
|
String[] |
getReservedWords() |
String |
getSafeFieldname(String fieldName)
Sanitize a string for usage as a field name
Append an underscore to any field name that matches a reserved word
Replaces spaces with underscores
Prefixes a string with underscore that begins with a number
|
String |
getSchemaTableCombination(String schemaName,
String tablePart)
Get the schema-table combination to query the right table.
|
String |
getSelectCountStatement(String tableName)
Build the SQL to count the number of rows in the passed table.
|
String |
getSequenceNoMaxValueOption() |
String |
getSQLColumnExists(String columnname,
String tablename) |
String |
getSQLInsertAutoIncUnknownDimensionRow(String schemaTable,
String keyField,
String versionField)
Get the SQL to insert a new empty unknown record in a dimension.
|
String |
getSQLListOfSchemas() |
String |
getSQLLockTables(String[] tableNames) |
String |
getSQLQueryFields(String tableName)
Returns the minimal SQL to launch in order to determine the layout of the resultset for a given database table
|
String |
getSQLTableExists(String tableName) |
String |
getSQLUnlockTables(String[] tableName) |
String |
getSQLValue(ValueMetaInterface valueMeta,
Object valueData,
String dateFormat)
Convert a value in the SQL equivalent.
|
String |
getStartQuote() |
String[] |
getSynonymTypes() |
String[] |
getTableTypes() |
String |
getTruncateTableStatement(String tableName) |
String |
getURL(String hostname,
String port,
String databaseName) |
String[] |
getUsedLibraries() |
String[] |
getViewTypes() |
boolean |
isDefaultingToUppercase() |
boolean |
isDisplaySizeTwiceThePrecision() |
boolean |
isExplorable() |
boolean |
isFetchSizeSupported()
Checks whether or not the command setFetchSize() is supported by the JDBC driver...
|
boolean |
isForcingIdentifiersToLowerCase() |
boolean |
isForcingIdentifiersToUpperCase() |
boolean |
isMySQLVariant() |
boolean |
isQuoteAllFields() |
boolean |
isStreamingResults() |
boolean |
isSystemTable(String tableName) |
boolean |
isUsingDoubleDecimalAsSchemaTableSeparator() |
boolean |
needsToLockAllTables() |
boolean |
preserveReservedCase() |
boolean |
quoteReservedWords() |
String |
quoteSQLString(String string)
Adds quotes around the string according to the database dialect and also escapes special characters like CR, LF and
the quote character itself.
|
boolean |
requiresCastToVariousForIsNull() |
boolean |
requiresCreateTablePrimaryKeyAppend() |
void |
setDatabaseDialect(String databaseDialect) |
void |
setForcingIdentifiersToLowerCase(boolean forceUpperCase) |
void |
setForcingIdentifiersToUpperCase(boolean forceUpperCase) |
void |
setPreserveReservedCase(boolean b) |
void |
setQuoteAllFields(boolean quoteAllFields) |
void |
setStreamingResults(boolean useStreaming) |
void |
setSupportsBooleanDataType(boolean b) |
void |
setSupportsTimestampDataType(boolean b) |
void |
setUsingDoubleDecimalAsSchemaTableSeparator(boolean useDoubleDecimalSeparator) |
boolean |
supportsAutoGeneratedKeys() |
boolean |
supportsBatchUpdates() |
boolean |
supportsBitmapIndex() |
boolean |
supportsBooleanDataType() |
boolean |
supportsFloatRoundingOnUpdate()
Most databases round number(7,2) 17.29999999 to 17.30, but some don't.
|
boolean |
supportsGetBlob() |
boolean |
supportsNewLinesInSQL() |
boolean |
supportsOptionsInURL() |
boolean |
supportsPreparedStatementMetadataRetrieval()
Most databases allow you to retrieve result metadata by preparing a SELECT statement.
|
boolean |
supportsResultSetMetadataRetrievalOnly() |
boolean |
supportsSequenceNoMaxValueOption() |
boolean |
supportsSetMaxRows() |
boolean |
supportsSynonyms() |
boolean |
supportsTimestampDataType() |
boolean |
supportsTimeStampToDateConversion() |
boolean |
supportsViews() |
boolean |
useSchemaNameForTableList() |
addDefaultOptions, canTest, checkIndexExists, clone, fullExceptionLog, getAccessType, getAttribute, getAttributes, getBackwardsCompatibleSchemaTableCombination, getBackwardsCompatibleTable, getConnectionPoolingProperties, getConnectSQL, getDatabaseFactoryName, getDatabaseName, getDatabasePortNumberString, getDataTablespace, getDataTablespaceDDL, getDefaultDatabasePort, getDisplayName, getDropTableIfExistsStatement, getFieldnameProtector, getHostname, getIndexTablespace, getIndexTablespaceDDL, getInitialPoolSize, getInitialPoolSizeString, getMaximumPoolSize, getMaximumPoolSizeString, getName, getNamedCluster, getNextBatchId, getNextBatchIdUsingAutoIncSQL, getNextBatchIdUsingLockTables, getNextBatchIdUsingSequence, getObjectId, getPartitioningInformation, getPassword, getPluginId, getPluginName, getPreferredSchemaName, getServername, getSQLCurrentSequenceValue, getSQLListOfProcedures, getSQLListOfSequences, getSQLNextSequenceValue, getSqlScriptStatements, getSQLSequenceExists, getTablespaceDDL, getUsername, getValueFromResultSet, getXulOverlayFile, isChanged, isPartitioned, isRequiringTransactionsOnQueries, isUsingConnectionPool, needsPlaceHolder, onlySpaces, parseStatements, releaseSavepoint, requiresName, setAccessType, setAttributes, setChanged, setConnectionPoolingProperties, setConnectSQL, setDatabaseName, setDatabasePortNumberString, setDataTablespace, setDisplayName, setHostname, setIndexTablespace, setInitialPoolSize, setInitialPoolSizeString, setMaximumPoolSize, setMaximumPoolSizeString, setName, setNamedCluster, setObjectId, setPartitioned, setPartitioningInformation, setPassword, setPluginId, setPluginName, setPreferredSchemaName, setServername, setUsername, setUsingConnectionPool, supportsAutoInc, supportsCatalogs, supportsEmptyTransactions, supportsErrorHandling, supportsErrorHandlingOnBatchUpdates, supportsRepository, supportsSchemas, supportsSequences, supportsSetCharacterStream, supportsSetLong, supportsTransactions, useSafePointsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddDefaultOptions, checkIndexExists, clone, createSqlScriptParser, getAccessType, getAttribute, getAttributes, getConnectionPoolingProperties, getConnectSQL, getDatabaseFactoryName, getDatabaseName, getDatabasePortNumberString, getDataTablespace, getDataTablespaceDDL, getDefaultDatabasePort, getDisplayName, getHostname, getIndexTablespace, getIndexTablespaceDDL, getInitialPoolSize, getInitialPoolSizeString, getLegacyColumnName, getMaximumPoolSize, getMaximumPoolSizeString, getName, getNamedCluster, getNamedClusterList, getNextBatchId, getObjectId, getPartitioningInformation, getPassword, getPluginId, getPluginName, getPreferredSchemaName, getSchemas, getServername, getSQLCurrentSequenceValue, getSQLListOfProcedures, getSQLListOfSequences, getSQLNextSequenceValue, getSqlScriptStatements, getSQLSequenceExists, getTables, getUnsupportedTableOutputMessage, getUsername, getValueFromResultSet, getXulOverlayFile, isChanged, isPartitioned, isRequiringTransactionsOnQueries, isUsingConnectionPool, needsPlaceHolder, parseStatements, putOptionalOptions, releaseSavepoint, setAccessType, setAttributes, setChanged, setConnectionPoolingProperties, setConnectSQL, setDatabaseName, setDatabasePortNumberString, setDataTablespace, setDisplayName, setHostname, setIndexTablespace, setInitialPoolSize, setInitialPoolSizeString, setMaximumPoolSize, setMaximumPoolSizeString, setName, setNamedCluster, setObjectId, setPartitioned, setPartitioningInformation, setPassword, setPluginId, setPluginName, setPreferredSchemaName, setServername, setUsername, setUsingConnectionPool, supportsAutoInc, supportsCatalogs, supportsEmptyTransactions, supportsErrorHandling, supportsErrorHandlingOnBatchUpdates, supportsIndexes, supportsRepository, supportsSchemas, supportsSequences, supportsSetCharacterStream, supportsSetLong, supportsStandardTableOutput, supportsTransactions, useSafePointspublic static final String ATRRIBUTE_CUSTOM_URL
public static final String ATRRIBUTE_CUSTOM_DRIVER_CLASS
public static final String DATABASE_DIALECT_ID
public void addAttribute(String attributeId, String value)
DatabaseInterfaceaddAttribute in interface DatabaseInterfaceaddAttribute in class BaseDatabaseMetaattributeId - the attribute identifiervalue - the value of the attributepublic int[] getAccessTypeList()
DatabaseInterfacegetAccessTypeList in interface DatabaseInterfacegetAccessTypeList in class BaseDatabaseMetapublic int getNotFoundTK(boolean useAutoinc)
DatabaseInterfacegetNotFoundTK in interface DatabaseInterfacegetNotFoundTK in class BaseDatabaseMetauseAutoinc - Whether or not we want to use an auto increment fieldDatabaseInterface.getNotFoundTK(boolean)public String getDriverClass()
DatabaseInterfacegetDriverClass in interface DatabaseInterfacepublic String getURL(String hostname, String port, String databaseName)
getURL in interface DatabaseInterfacehostname - the hostnameport - the port as a stringdatabaseName - the database namepublic boolean isFetchSizeSupported()
isFetchSizeSupported in interface DatabaseInterfaceisFetchSizeSupported in class BaseDatabaseMetapublic boolean supportsBitmapIndex()
supportsBitmapIndex in interface DatabaseInterfacesupportsBitmapIndex in class BaseDatabaseMetapublic String getTruncateTableStatement(String tableName)
getTruncateTableStatement in interface DatabaseInterfacegetTruncateTableStatement in class BaseDatabaseMetatableName - The table to be truncated.public String getAddColumnStatement(String tablename, ValueMetaInterface v, String tk, boolean useAutoinc, String pk, boolean semicolon)
getAddColumnStatement in interface DatabaseInterfacetablename - 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.public String getModifyColumnStatement(String tablename, ValueMetaInterface v, String tk, boolean useAutoinc, String pk, boolean semicolon)
getModifyColumnStatement in interface DatabaseInterfacetablename - 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.public String getFieldDefinition(ValueMetaInterface v, String tk, String pk, boolean useAutoinc, boolean addFieldName, boolean addCr)
DatabaseInterfacegetFieldDefinition in interface DatabaseInterfacev - The value to describetk - The field that's going to be the technical keypk - The field that's going to be the primary keyuseAutoinc - Use autoincrement or notaddFieldName - Add the fieldname to the definition or notaddCr - Add a cariage return at the end of the definition or not.public String[] getUsedLibraries()
getUsedLibraries in interface DatabaseInterfacepublic boolean supportsPreparedStatementMetadataRetrieval()
supportsPreparedStatementMetadataRetrieval in interface DatabaseInterfacesupportsPreparedStatementMetadataRetrieval in class BaseDatabaseMetapublic String getSQLInsertAutoIncUnknownDimensionRow(String schemaTable, String keyField, String versionField)
getSQLInsertAutoIncUnknownDimensionRow in interface DatabaseInterfacegetSQLInsertAutoIncUnknownDimensionRow in class BaseDatabaseMetaschemaTable - the schema-table name to insert intokeyField - The key fieldversionField - the version fieldpublic void setDatabaseDialect(String databaseDialect)
public String getDatabaseDialect()
public String[] getReservedWords()
getReservedWords in interface DatabaseInterfacegetReservedWords in class BaseDatabaseMetapublic String getEndQuote()
getEndQuote in interface DatabaseInterfacegetEndQuote in class BaseDatabaseMetapublic String getFunctionSum()
getFunctionSum in interface DatabaseInterfacegetFunctionSum in class BaseDatabaseMetapublic String getFunctionAverage()
getFunctionAverage in interface DatabaseInterfacegetFunctionAverage in class BaseDatabaseMetapublic String getFunctionMinimum()
getFunctionMinimum in interface DatabaseInterfacegetFunctionMinimum in class BaseDatabaseMetapublic String getFunctionMaximum()
getFunctionMaximum in interface DatabaseInterfacegetFunctionMaximum in class BaseDatabaseMetapublic String getFunctionCount()
getFunctionCount in interface DatabaseInterfacegetFunctionCount in class BaseDatabaseMetapublic String getSQLQueryFields(String tableName)
BaseDatabaseMetagetSQLQueryFields in interface DatabaseInterfacegetSQLQueryFields in class BaseDatabaseMetatableName - The name of the table to determine the layout forpublic String getSQLColumnExists(String columnname, String tablename)
getSQLColumnExists in interface DatabaseInterfacegetSQLColumnExists in class BaseDatabaseMetacolumnname - The column to verify the existance fortablename - The table to verify the existance forpublic String getSQLTableExists(String tableName)
getSQLTableExists in interface DatabaseInterfacegetSQLTableExists in class BaseDatabaseMetatableName - The table to verify the existance forpublic String getLimitClause(int nrRows)
getLimitClause in interface DatabaseInterfacegetLimitClause in class BaseDatabaseMetanrRows - The number of rows to which we want to limit the result of the query.public String getSelectCountStatement(String tableName)
BaseDatabaseMetagetSelectCountStatement in interface DatabaseInterfacegetSelectCountStatement in class BaseDatabaseMetapublic String getSQLUnlockTables(String[] tableName)
getSQLUnlockTables in interface DatabaseInterfacegetSQLUnlockTables in class BaseDatabaseMetatableName - The names of the tables to unlockpublic String getSequenceNoMaxValueOption()
getSequenceNoMaxValueOption in interface DatabaseInterfacegetSequenceNoMaxValueOption in class BaseDatabaseMetapublic boolean useSchemaNameForTableList()
useSchemaNameForTableList in interface DatabaseInterfaceuseSchemaNameForTableList in class BaseDatabaseMetapublic boolean supportsViews()
supportsViews in interface DatabaseInterfacesupportsViews in class BaseDatabaseMetapublic boolean supportsTimeStampToDateConversion()
supportsTimeStampToDateConversion in interface DatabaseInterfacesupportsTimeStampToDateConversion in class BaseDatabaseMetapublic String getCreateTableStatement()
BaseDatabaseMetagetCreateTableStatement in interface DatabaseInterfacegetCreateTableStatement in class BaseDatabaseMetapublic boolean supportsAutoGeneratedKeys()
supportsAutoGeneratedKeys in interface DatabaseInterfacesupportsAutoGeneratedKeys in class BaseDatabaseMetapublic String getSafeFieldname(String fieldName)
BaseDatabaseMetagetSafeFieldname in interface DatabaseInterfacegetSafeFieldname in class BaseDatabaseMetafieldName - value to sanitizepublic void setSupportsTimestampDataType(boolean b)
setSupportsTimestampDataType in interface DatabaseInterfacesetSupportsTimestampDataType in class BaseDatabaseMetab - Set to true if the database supports the Timestamp data type (nanosecond precision and all)public boolean supportsTimestampDataType()
supportsTimestampDataType in interface DatabaseInterfacesupportsTimestampDataType in class BaseDatabaseMetapublic boolean supportsResultSetMetadataRetrievalOnly()
supportsResultSetMetadataRetrievalOnly in interface DatabaseInterfacesupportsResultSetMetadataRetrievalOnly in class BaseDatabaseMetapublic String getSQLValue(ValueMetaInterface valueMeta, Object valueData, String dateFormat) throws KettleValueException
DatabaseInterfacegetSQLValue in interface DatabaseInterfacegetSQLValue in class BaseDatabaseMetavalueMeta - The description of the value. The date format used is taken from this value unless dateFormat is specified
(not null or empty)valueData - The data to convert.KettleValueException - in case there is a data conversion error.public ValueMetaInterface customizeValueFromSQLType(ValueMetaInterface v, ResultSetMetaData rm, int index) throws SQLException
BaseDatabaseMetacustomizeValueFromSQLType in interface DatabaseInterfacecustomizeValueFromSQLType in class BaseDatabaseMetav - the determined valueMetaInterfacerm - the sql resultindex - the index to the columnSQLExceptionpublic boolean isMySQLVariant()
isMySQLVariant in interface DatabaseInterfaceisMySQLVariant in class BaseDatabaseMetapublic String generateColumnAlias(int columnIndex, String suggestedName)
DatabaseInterfacegenerateColumnAlias in interface DatabaseInterfacegenerateColumnAlias in class BaseDatabaseMetacolumnIndex - Index of column in querysuggestedName - Suggested column namepublic String quoteSQLString(String string)
DatabaseInterfacequoteSQLString in interface DatabaseInterfacequoteSQLString in class BaseDatabaseMetapublic boolean isExplorable()
isExplorable in interface DatabaseInterfaceisExplorable in class BaseDatabaseMetapublic int getMaxColumnsInIndex()
getMaxColumnsInIndex in interface DatabaseInterfacegetMaxColumnsInIndex in class BaseDatabaseMetapublic String getSQLListOfSchemas()
getSQLListOfSchemas in interface DatabaseInterfacegetSQLListOfSchemas in class BaseDatabaseMetapublic boolean supportsNewLinesInSQL()
supportsNewLinesInSQL in interface DatabaseInterfacesupportsNewLinesInSQL in class BaseDatabaseMetapublic boolean isSystemTable(String tableName)
isSystemTable in interface DatabaseInterfaceisSystemTable in class BaseDatabaseMetapublic boolean isDisplaySizeTwiceThePrecision()
isDisplaySizeTwiceThePrecision in interface DatabaseInterfaceisDisplaySizeTwiceThePrecision in class BaseDatabaseMetapublic boolean requiresCastToVariousForIsNull()
requiresCastToVariousForIsNull in interface DatabaseInterfacerequiresCastToVariousForIsNull in class BaseDatabaseMetapublic boolean requiresCreateTablePrimaryKeyAppend()
requiresCreateTablePrimaryKeyAppend in interface DatabaseInterfacerequiresCreateTablePrimaryKeyAppend in class BaseDatabaseMetapublic boolean supportsSequenceNoMaxValueOption()
supportsSequenceNoMaxValueOption in interface DatabaseInterfacesupportsSequenceNoMaxValueOption in class BaseDatabaseMetapublic void setUsingDoubleDecimalAsSchemaTableSeparator(boolean useDoubleDecimalSeparator)
setUsingDoubleDecimalAsSchemaTableSeparator in interface DatabaseInterfacesetUsingDoubleDecimalAsSchemaTableSeparator in class BaseDatabaseMetauseDoubleDecimalSeparator - true if we should use a double decimal separator to specify schema/table combinations on MS-SQL serverpublic boolean isUsingDoubleDecimalAsSchemaTableSeparator()
isUsingDoubleDecimalAsSchemaTableSeparator in interface DatabaseInterfaceisUsingDoubleDecimalAsSchemaTableSeparator in class BaseDatabaseMetapublic void setForcingIdentifiersToUpperCase(boolean forceUpperCase)
setForcingIdentifiersToUpperCase in interface DatabaseInterfacesetForcingIdentifiersToUpperCase in class BaseDatabaseMetaforceUpperCase - true if all identifiers should be forced to upper casepublic boolean isForcingIdentifiersToUpperCase()
isForcingIdentifiersToUpperCase in interface DatabaseInterfaceisForcingIdentifiersToUpperCase in class BaseDatabaseMetapublic void setForcingIdentifiersToLowerCase(boolean forceUpperCase)
setForcingIdentifiersToLowerCase in interface DatabaseInterfacesetForcingIdentifiersToLowerCase in class BaseDatabaseMetaforceUpperCase - true if all identifiers should be forced to lower casepublic boolean isForcingIdentifiersToLowerCase()
isForcingIdentifiersToLowerCase in interface DatabaseInterfaceisForcingIdentifiersToLowerCase in class BaseDatabaseMetapublic void setQuoteAllFields(boolean quoteAllFields)
setQuoteAllFields in interface DatabaseInterfacesetQuoteAllFields in class BaseDatabaseMetaquoteAllFields - true if we want the database to stream results (normally this is an option just for MySQL).public boolean isQuoteAllFields()
isQuoteAllFields in interface DatabaseInterfaceisQuoteAllFields in class BaseDatabaseMetapublic void setStreamingResults(boolean useStreaming)
setStreamingResults in interface DatabaseInterfacesetStreamingResults in class BaseDatabaseMetauseStreaming - true if we want the database to stream results (normally this is an option just for MySQL).public boolean isStreamingResults()
isStreamingResults in interface DatabaseInterfaceisStreamingResults in class BaseDatabaseMetapublic boolean needsToLockAllTables()
needsToLockAllTables in interface DatabaseInterfaceneedsToLockAllTables in class BaseDatabaseMetapublic boolean supportsSetMaxRows()
supportsSetMaxRows in interface DatabaseInterfacesupportsSetMaxRows in class BaseDatabaseMetapublic boolean supportsGetBlob()
supportsGetBlob in interface DatabaseInterfacesupportsGetBlob in class BaseDatabaseMetapublic boolean isDefaultingToUppercase()
isDefaultingToUppercase in interface DatabaseInterfaceisDefaultingToUppercase in class BaseDatabaseMetapublic void setPreserveReservedCase(boolean b)
setPreserveReservedCase in interface DatabaseInterfacesetPreserveReservedCase in class BaseDatabaseMetab - Set to true if reserved words' case should be preservedpublic boolean preserveReservedCase()
preserveReservedCase in interface DatabaseInterfacepreserveReservedCase in class BaseDatabaseMetapublic void setSupportsBooleanDataType(boolean b)
setSupportsBooleanDataType in interface DatabaseInterfacesetSupportsBooleanDataType in class BaseDatabaseMetab - Set to true if the database supports a boolean, bit, logical, ... datatypepublic boolean supportsBooleanDataType()
supportsBooleanDataType in interface DatabaseInterfacesupportsBooleanDataType in class BaseDatabaseMetapublic boolean supportsBatchUpdates()
supportsBatchUpdates in interface DatabaseInterfacesupportsBatchUpdates in class BaseDatabaseMetapublic String getSQLLockTables(String[] tableNames)
getSQLLockTables in interface DatabaseInterfacegetSQLLockTables in class BaseDatabaseMetatableNames - The names of the tables to lockpublic boolean supportsFloatRoundingOnUpdate()
BaseDatabaseMetasupportsFloatRoundingOnUpdate in interface DatabaseInterfacesupportsFloatRoundingOnUpdate in class BaseDatabaseMetapublic boolean supportsSynonyms()
supportsSynonyms in interface DatabaseInterfacesupportsSynonyms in class BaseDatabaseMetapublic String[] getSynonymTypes()
getSynonymTypes in interface DatabaseInterfacegetSynonymTypes in class BaseDatabaseMetapublic String[] getViewTypes()
getViewTypes in interface DatabaseInterfacegetViewTypes in class BaseDatabaseMetapublic String[] getTableTypes()
getTableTypes in interface DatabaseInterfacegetTableTypes in class BaseDatabaseMetapublic String getStartQuote()
getStartQuote in interface DatabaseInterfacegetStartQuote in class BaseDatabaseMetapublic boolean quoteReservedWords()
quoteReservedWords in interface DatabaseInterfacequoteReservedWords in class BaseDatabaseMetapublic String getDropColumnStatement(String tablename, ValueMetaInterface v, String tk, boolean useAutoinc, String pk, boolean semicolon)
BaseDatabaseMetagetDropColumnStatement in interface DatabaseInterfacegetDropColumnStatement in class BaseDatabaseMetatablename - 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.public int getMaxVARCHARLength()
BaseDatabaseMetagetMaxVARCHARLength in interface DatabaseInterfacegetMaxVARCHARLength in class BaseDatabaseMetapublic int getMaxTextFieldLength()
BaseDatabaseMetagetMaxTextFieldLength in interface DatabaseInterfacegetMaxTextFieldLength in class BaseDatabaseMetapublic String getSchemaTableCombination(String schemaName, String tablePart)
BaseDatabaseMetagetSchemaTableCombination in interface DatabaseInterfacegetSchemaTableCombination in class BaseDatabaseMetaschemaName - The schema nametablePart - The tablenamepublic Map<String,String> getDefaultOptions()
getDefaultOptions in interface DatabaseInterfacegetDefaultOptions in class BaseDatabaseMetapublic Map<String,String> getExtraOptions()
getExtraOptions in interface DatabaseInterfacegetExtraOptions in class BaseDatabaseMetapublic void addExtraOption(String databaseTypeCode, String option, String value)
BaseDatabaseMetaaddExtraOption in interface DatabaseInterfaceaddExtraOption in class BaseDatabaseMetadatabaseTypeCode - The database type code for which the option appliesoption - The option to setvalue - The value of the optionpublic String getExtraOptionSeparator()
getExtraOptionSeparator in interface DatabaseInterfacegetExtraOptionSeparator in class BaseDatabaseMetapublic String getExtraOptionValueSeparator()
getExtraOptionValueSeparator in interface DatabaseInterfacegetExtraOptionValueSeparator in class BaseDatabaseMetapublic String getExtraOptionIndicator()
getExtraOptionIndicator in interface DatabaseInterfacegetExtraOptionIndicator in class BaseDatabaseMetapublic boolean supportsOptionsInURL()
supportsOptionsInURL in interface DatabaseInterfacesupportsOptionsInURL in class BaseDatabaseMetapublic String getExtraOptionsHelpText()
getExtraOptionsHelpText in interface DatabaseInterfacegetExtraOptionsHelpText in class BaseDatabaseMetaCopyright © 2020 Hitachi Vantara. All rights reserved.