Class DBMS
java.lang.Object
net.sf.jailer.configuration.DBMS
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DBMSstatic final DBMSstatic final DBMSstatic final DBMSstatic final DBMSstatic final DBMSstatic final DBMSstatic final DBMSstatic final DBMSstatic final DBMSstatic final DBMSstatic final DBMSstatic final DBMSstatic final DBMSstatic final DBMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToStringLiteral(String string, boolean[] mustBeParenthesized) Converts a string to a string literal according to thegetStringLiteralEscapeSequences().convertToStringLiteral(String string, String prefix, boolean[] mustBeParenthesized) Converts a string to a string literal according to thegetStringLiteralEscapeSequences().Creates aSimpleDateFormatfrom thegetDatePattern().Creates aSimpleDateFormatfrom thegetTimestampPattern().Creates aSimpleDateFormatfrom thegetTimestampWithNanoPattern().booleanstatic DBMSGets DBMS specific configuration.Gets the pattern used to format binary data as a SQL literal.Gets the regular expression pattern for BLOB type names.Gets the regular expression pattern for CLOB type names.Gets the query to retrieve constraint information.Gets the pattern used to format date values.Gets the DB call to retrieve the DDL of a table.Gets the DB query to retrieve the DDL of a table.Gets the query to retrieve the default schema of the current user.Gets the display name of this DBMS.intGets the maximum size (in bytes) for LOB values to be embedded inline in SQL statements.Gets the value used to represent an empty BLOB.Gets the value used to represent an empty CLOB.Gets the value used to represent an empty NCLOB.Gets the query to retrieve an estimated row count for a table.Gets replacement map for column types used for DDL generation.Gets the SQL statement to clean up after query explain.Gets the SQL statement to create the explain table.Gets the SQL statement to prepare for query explain.Gets the query to retrieve the explain plan.Gets the set of type names for which no data must be exported.Gets the DBMS family identifier.Gets fetch size.Gets the query to retrieve the source of a function.getIcon()Gets the icon resource name for this DBMS.getId()Gets the DBMS identifier.Gets the string used to quote SQL identifiers.Gets the SQL clause used in INSERT statements for identity columns.Gets the query to retrieve identity columns.Gets the query to retrieve imported foreign keys.Gets the query to retrieve index information.Gets the JDBC properties.intgetLimitedFetchSize(long limit) Gets the effective fetch size to use when fetching at mostlimitrows.Gets information about how to limit transaction size (nevernull).Gets the Liquibase product name for this DBMS.Gets the prefix used for national character (NCHAR) string literals.Gets the regular expression pattern for NCLOB type names.Gets the SQL constraint clause used to declare nullable columns.Gets the list of database object renderer descriptions.Gets the query to retrieve the names of all packages.Gets the query to retrieve the source of a package.Gets the query to retrieve partition information.Gets the query to retrieve primary keys.Gets the query to retrieve the source of a stored procedure.Gets the name of the rowid/ctid pseudo-column for this DBMS.Gets the SQL type of the rowid/ctid pseudo-column for this DBMS.Gets the manager for session-local temporary tables.Gets the SQL dialect configuration for this DBMS.Gets the SQL expression rewrite rules for this DBMS.Gets the suffix appended to a SQL SELECT statement to limit the number of rows returned.Gets theSqlScriptBasedStatisticRenovator.Gets the replacement map for special characters in string literals.Returns whether this DBMS supports schema qualifiers in index definitions.Gets the query to retrieve the underlying table of a synonym.Gets the additional table properties clause appended to CREATE TABLE statements.Gets the test query for this DBMS.Gets the pattern used to format timestamp values.Gets the pattern used to format timestamp values with nanosecond precision.Gets the name of the timestamp type with nanosecond precision, if any.Gets the SQL expression template used to convert a value to a BLOB.Gets the SQL expression template used to convert a value to a CLOB.Gets the SQL expression template used to convert a value to an NCLOB.Gets the manager for transaction-local temporary tables.Gets the replacement map for column types used for DDL generation.Gets the DB-URL pattern for this DBMS.Gets the query to retrieve user-defined columns.Gets the maximum length for VARCHAR columns, ornullif unlimited.Gets the query to retrieve the text or DDL of a view.Gets the query to retrieve virtual columns.inthashCode()booleanReturns whether left joins should be avoided for this DBMS.booleanisBlobType(String typeWithLength) Returns whether the given type name matches the BLOB type pattern.booleanisClobType(String typeWithLength) Returns whether the given type name matches the CLOB type pattern.booleanReturns whether the DBMS supports identity-type columns (MS SQL Server).booleanisNClobType(String typeWithLength) Returns whether the given type name matches the NCLOB type pattern.booleanReturns whether retrieving procedure details requires the specific (overloaded) name.booleanReturns whether this DBMS is supported.booleanIndicates that E'x\ny' syntax is supported.booleanReturns whether this DBMS supports global working tables.booleanReturns whether inline views should be used in the Data Browser for this DBMS.booleanReturns whether this DBMS uses catalogs.postProcessStringLiteral(String literal, String value, String prefix) Eventually applies standard escape syntax.voidsetAvoidLeftJoin(boolean avoidLeftJoin) Sets whether left joins should be avoided for this DBMS.voidsetBinaryPattern(String binaryPattern) Sets the pattern used to format binary data.voidsetBlobTypesRE(String blobTypesRE) Sets the regular expression pattern for BLOB type names.voidsetClobTypesRE(String clobTypesRE) Sets the regular expression pattern for CLOB type names.voidsetConstraintsQuery(String constraintsQuery) Sets the query to retrieve constraint information.voidsetDatePattern(String datePattern) Sets the pattern used to format date values.voidsetDdlCall(String ddlCall) Sets the DB call to retrieve the DDL of a table.voidsetDdlQuery(String ddlQuery) Sets the DB query to retrieve the DDL of a table.voidsetDefaultSchemaQuery(String defaultSchemaQuery) Sets the query to retrieve the default schema of the current user.voidsetDisplayName(String displayName) Sets the display name of this DBMS.voidsetEmbeddedLobSizeLimit(int embeddedLobSizeLimit) Sets the maximum size (in bytes) for LOB values to be embedded inline in SQL statements.voidsetEmptyBLOBValue(String emptyBLOBValue) Sets the value used to represent an empty BLOB.voidsetEmptyCLOBValue(String emptyCLOBValue) Sets the value used to represent an empty CLOB.voidsetEmptyNCLOBValue(String emptyNCLOBValue) Sets the value used to represent an empty NCLOB.voidsetEstimatedRowCountQuery(String estimatedRowCountQuery) Sets the query to retrieve an estimated row count for a table.voidSets replacement map for column types used for DDL generation.voidsetExplainCleanup(String explainCleanup) Sets the SQL statement to clean up after query explain.voidsetExplainCreateExplainTable(String explainCreateExplainTable) Sets the SQL statement to create the explain table.voidsetExplainPrepare(String explainPrepare) Sets the SQL statement to prepare for query explain.voidsetExplainQuery(String explainQuery) Sets the query to retrieve the explain plan.voidsetExportBlocks(Set<String> exportBlocks) Sets the set of type names for which no data must be exported.voidsetFamilyId(String familyId) Sets the DBMS family identifier.voidsetFetchSize(Integer fetchSize) Sets fetch size.voidsetFunctionSourceQuery(String functionSourceQuery) Sets the query to retrieve the source of a function.voidSets the icon resource name for this DBMS.voidSets the DBMS identifier.voidsetIdentifierQuoteString(String identifierQuoteString) Sets the string used to quote SQL identifiers.voidsetIdentityColumnInsertClause(String identityColumnInsertClause) Sets the SQL clause used in INSERT statements for identity columns.voidsetIdentityColumnsQuery(String identityColumnsQuery) Sets the query to retrieve identity columns.voidsetIdentityInserts(boolean identityInserts) Sets whether the DBMS supports identity-type columns (MS SQL Server).voidsetImportedKeysQuery(String importedKeysQuery) Sets the query to retrieve imported foreign keys.voidsetIndexInfoQuery(String indexInfoQuery) Sets the query to retrieve index information.voidsetJdbcProperties(Map<String, String> jdbcProperties) Sets the JDBC properties.voidsetLimitTransactionSize(LimitTransactionSizeInfo incremenalInsertInfo) Sets information about how to limit transaction size.voidsetLiquibaseProductName(String liquibaseProductName) Sets the Liquibase product name for this DBMS.voidsetNcharPrefix(String ncharPrefix) Sets the prefix used for national character (NCHAR) string literals.voidsetnClobTypesRE(String nClobTypesRE) Sets the regular expression pattern for NCLOB type names.voidsetNullableContraint(String nullableContraint) Sets the SQL constraint clause used to declare nullable columns.voidsetObjectRenderers(List<DatabaseObjectRenderingDescription> objectRenderers) Sets the list of database object renderer descriptions.voidsetPackageNamesQuery(String packageNamesQuery) Sets the query to retrieve the names of all packages.voidsetPackageSourceQuery(String packageSourceQuery) Sets the query to retrieve the source of a package.voidsetPartitionsQuery(String partitionsQuery) Sets the query to retrieve partition information.voidsetPrimaryKeysQuery(String primaryKeysQuery) Sets the query to retrieve primary keys.voidsetProcedureDetailNeedsSpecificName(boolean procedureDetailNeedsSpecificName) Sets whether retrieving procedure details requires the specific (overloaded) name.voidsetProcedureSourceQuery(String procedureSourceQuery) Sets the query to retrieve the source of a stored procedure.voidsetRowidName(String rowidName) Sets the name of the rowid/ctid pseudo-column for this DBMS.voidsetRowidType(String rowidType) Sets the SQL type of the rowid/ctid pseudo-column for this DBMS.voidsetSessionTemporaryTableManager(DefaultTemporaryTableManager tableManager) Sets the manager for session-local temporary tables.voidsetSqlDialect(SQLDialect sqlDialect) Sets the SQL dialect.voidsetSqlExpressionRule(Map<String, String> sqlExpressionRule) Sets the SQL expression rewrite rules for this DBMS.voidsetSqlLimitSuffix(String sqlLimitSuffix) Sets the suffix appended to a SQL SELECT statement to limit the number of rows returned.voidsetStatisticRenovator(SqlScriptBasedStatisticRenovator statisticRenovator) Sets theSqlScriptBasedStatisticRenovator.voidsetStringLiteralEscapeSequences(Map<String, String> stringLiteralEscapeSequences) Sets the replacement map for special characters in string literals.voidsetSupported(boolean supported) Sets whether this DBMS is supported.voidsetSupportsCStyleBackslashEscapes(boolean supportsCStyleBackslashEscapes) Indicates that E'x\ny' syntax is supported.voidsetSupportsGlobalWorkingtables(boolean supportsGlobalWorkingtables) Sets whether this DBMS supports global working tables.voidsetSupportsSchemasInIndexDefinitions(Boolean supportsSchemasInIndexDefinitions) Sets whether this DBMS supports schema qualifiers in index definitions.voidsetSynonymTableQuery(String synonymTableQuery) Sets the query to retrieve the underlying table of a synonym.voidsetTableProperties(String tableProperties) Sets the additional table properties clause appended to CREATE TABLE statements.voidsetTestQuery(String testQuery) Sets the test query for this DBMS.voidsetTimestampPattern(String timestampPattern) Sets the pattern used to format timestamp values.voidsetTimestampWithNanoPattern(String timestampWithNanoPattern) Sets the pattern used to format timestamp values with nanosecond precision.voidsetTimestampWithNanoTypeName(String timestampWithNanoTypeName) Sets the name of the timestamp type with nanosecond precision.static voidsetTmpFetchSize(Integer tmpFetchSize) Sets a temporary override for the fetch size, used during limited-row queries.voidSets the SQL expression template used to convert a value to a BLOB.voidSets the SQL expression template used to convert a value to a CLOB.voidsetToNClob(String toNClob) Sets the SQL expression template used to convert a value to an NCLOB.voidSets the manager for transaction-local temporary tables.voidSets replacement map for column types used for DDL generation.voidsetUrlPattern(String urlPattern) Sets DB-URL pattern of DBMS for which this holds the configuration.voidsetUseInlineViewsInDataBrowser(boolean useInlineViewsInDataBrowser) Sets whether inline views should be used in the Data Browser for this DBMS.voidsetUserDefinedColumnsQuery(String userDefinedColumnsQuery) Sets the query to retrieve user-defined columns.voidsetUsesCatalog(boolean usesCatalog) Sets whether this DBMS uses catalogs.voidsetVarcharLengthLimit(Integer varcharLengthLimit) Sets the maximum length for VARCHAR columns.voidsetViewTextOrDDLQuery(String viewTextOrDDLQuery) Sets the query to get view text or DDL.voidsetVirtualColumnsQuery(String virtualColumnsQuery) Sets the query to retrieve virtual columns.static DBMS[]values()Gets all DBMSes.
-
Field Details
-
ORACLE
-
MSSQL
-
DB2
-
DB2_ZOS
-
MySQL
-
POSTGRESQL
-
SQLITE
-
HSQL
-
H2
-
SYBASE
-
INFORMIX
-
CLOADSCAPE
-
FIREBIRD
-
DERBY
-
CLICKHOUSE
-
-
Constructor Details
-
DBMS
public DBMS()Default constructor.
-
-
Method Details
-
values
-
forDBMS
-
getLiquibaseProductName
Gets the Liquibase product name for this DBMS.- Returns:
- the Liquibase product name
-
setLiquibaseProductName
Sets the Liquibase product name for this DBMS.- Parameters:
liquibaseProductName- the Liquibase product name to set
-
getDdlQuery
Gets the DB query to retrieve the DDL of a table.- Returns:
- the DDL query
-
setDdlQuery
Sets the DB query to retrieve the DDL of a table.- Parameters:
ddlQuery- the DDL query to set
-
getDdlCall
-
setDdlCall
Sets the DB call to retrieve the DDL of a table.- Parameters:
ddlCall- the DDL call to set
-
isUsesCatalog
public boolean isUsesCatalog()Returns whether this DBMS uses catalogs.- Returns:
trueif catalogs are used
-
setUsesCatalog
public void setUsesCatalog(boolean usesCatalog) Sets whether this DBMS uses catalogs.- Parameters:
usesCatalog-trueif catalogs are used
-
isSupportsGlobalWorkingtables
public boolean isSupportsGlobalWorkingtables()Returns whether this DBMS supports global working tables.- Returns:
trueif global working tables are supported
-
setSupportsGlobalWorkingtables
public void setSupportsGlobalWorkingtables(boolean supportsGlobalWorkingtables) Sets whether this DBMS supports global working tables.- Parameters:
supportsGlobalWorkingtables-trueif global working tables are supported
-
isSupported
public boolean isSupported()Returns whether this DBMS is supported.- Returns:
trueif this DBMS is supported
-
setSupported
public void setSupported(boolean supported) Sets whether this DBMS is supported.- Parameters:
supported-trueif this DBMS is supported
-
isClobType
Returns whether the given type name matches the CLOB type pattern.- Parameters:
typeWithLength- the SQL type name (possibly including length)- Returns:
trueif the type is a CLOB type
-
isNClobType
Returns whether the given type name matches the NCLOB type pattern.- Parameters:
typeWithLength- the SQL type name (possibly including length)- Returns:
trueif the type is an NCLOB type
-
isBlobType
Returns whether the given type name matches the BLOB type pattern.- Parameters:
typeWithLength- the SQL type name (possibly including length)- Returns:
trueif the type is a BLOB type
-
getClobTypesRE
Gets the regular expression pattern for CLOB type names.- Returns:
- the CLOB types regular expression
-
setClobTypesRE
Sets the regular expression pattern for CLOB type names.- Parameters:
clobTypesRE- the CLOB types regular expression to set
-
getnClobTypesRE
Gets the regular expression pattern for NCLOB type names.- Returns:
- the NCLOB types regular expression
-
setnClobTypesRE
Sets the regular expression pattern for NCLOB type names.- Parameters:
nClobTypesRE- the NCLOB types regular expression to set
-
getBlobTypesRE
Gets the regular expression pattern for BLOB type names.- Returns:
- the BLOB types regular expression
-
setBlobTypesRE
Sets the regular expression pattern for BLOB type names.- Parameters:
blobTypesRE- the BLOB types regular expression to set
-
getVirtualColumnsQuery
Gets the query to retrieve virtual columns.- Returns:
- the virtual columns query
-
setVirtualColumnsQuery
Sets the query to retrieve virtual columns.- Parameters:
virtualColumnsQuery- the virtual columns query to set
-
isUseInlineViewsInDataBrowser
public boolean isUseInlineViewsInDataBrowser()Returns whether inline views should be used in the Data Browser for this DBMS.- Returns:
trueif inline views should be used in the Data Browser
-
setUseInlineViewsInDataBrowser
public void setUseInlineViewsInDataBrowser(boolean useInlineViewsInDataBrowser) Sets whether inline views should be used in the Data Browser for this DBMS.- Parameters:
useInlineViewsInDataBrowser-trueto use inline views in the Data Browser
-
getEmbeddedLobSizeLimit
public int getEmbeddedLobSizeLimit()Gets the maximum size (in bytes) for LOB values to be embedded inline in SQL statements.- Returns:
- the embedded LOB size limit
-
setEmbeddedLobSizeLimit
public void setEmbeddedLobSizeLimit(int embeddedLobSizeLimit) Sets the maximum size (in bytes) for LOB values to be embedded inline in SQL statements.- Parameters:
embeddedLobSizeLimit- the embedded LOB size limit to set
-
getSupportsSchemasInIndexDefinitions
Returns whether this DBMS supports schema qualifiers in index definitions.- Returns:
trueif schema qualifiers are supported in index definitions, ornullif unknown
-
setSupportsSchemasInIndexDefinitions
Sets whether this DBMS supports schema qualifiers in index definitions.- Parameters:
supportsSchemasInIndexDefinitions-trueif schema qualifiers are supported in index definitions
-
getRowidName
Gets the name of the rowid/ctid pseudo-column for this DBMS.- Returns:
- the rowid column name, or
nullif not applicable
-
setRowidName
Sets the name of the rowid/ctid pseudo-column for this DBMS.- Parameters:
rowidName- the rowid column name to set
-
getRowidType
Gets the SQL type of the rowid/ctid pseudo-column for this DBMS.- Returns:
- the rowid column type, or
nullif not applicable
-
setRowidType
Sets the SQL type of the rowid/ctid pseudo-column for this DBMS.- Parameters:
rowidType- the rowid column type to set
-
getSqlDialect
Gets the SQL dialect configuration for this DBMS.- Returns:
- the SQL dialect
-
setSqlDialect
Sets the SQL dialect.- Parameters:
sqlDialect- the SQL dialect to set
-
getUrlPattern
-
setUrlPattern
Sets DB-URL pattern of DBMS for which this holds the configuration.- Parameters:
urlPattern- the URL pattern to set
-
getExportBlocks
-
setExportBlocks
-
getStatisticRenovator
Gets theSqlScriptBasedStatisticRenovator.- Returns:
- the
SqlScriptBasedStatisticRenovator
-
setStatisticRenovator
Sets theSqlScriptBasedStatisticRenovator.- Parameters:
statisticRenovator- theSqlScriptBasedStatisticRenovator
-
setEmptyCLOBValue
Sets the value used to represent an empty CLOB.- Parameters:
emptyCLOBValue- the empty CLOB value to set
-
setEmptyBLOBValue
Sets the value used to represent an empty BLOB.- Parameters:
emptyBLOBValue- the empty BLOB value to set
-
setBinaryPattern
Sets the pattern used to format binary data.- Parameters:
binaryPattern- the binary pattern to set
-
setTypeReplacement
-
setExperimentalTypeReplacement
-
getToBlob
Gets the SQL expression template used to convert a value to a BLOB.- Returns:
- the to-BLOB conversion expression
-
setToBlob
Sets the SQL expression template used to convert a value to a BLOB.- Parameters:
toBlob- the to-BLOB conversion expression to set
-
getToClob
Gets the SQL expression template used to convert a value to a CLOB.- Returns:
- the to-CLOB conversion expression
-
setToClob
Sets the SQL expression template used to convert a value to a CLOB.- Parameters:
toClob- the to-CLOB conversion expression to set
-
getTypeReplacement
-
getExperimentalTypeReplacement
-
setSessionTemporaryTableManager
Sets the manager for session-local temporary tables.- Parameters:
tableManager- the session temporary table manager to set
-
setTransactionTemporaryTableManager
Sets the manager for transaction-local temporary tables.- Parameters:
tableManager- the transaction temporary table manager to set
-
isIdentityInserts
public boolean isIdentityInserts()Returns whether the DBMS supports identity-type columns (MS SQL Server).- Returns:
trueif identity inserts are supported
-
setIdentityInserts
public void setIdentityInserts(boolean identityInserts) Sets whether the DBMS supports identity-type columns (MS SQL Server).- Parameters:
identityInserts-trueif identity inserts are supported
-
isSupportsCStyleBackslashEscapes
public boolean isSupportsCStyleBackslashEscapes()Indicates that E'x\ny' syntax is supported.- Returns:
trueiff E'x\ny' syntax is supported
-
setSupportsCStyleBackslashEscapes
public void setSupportsCStyleBackslashEscapes(boolean supportsCStyleBackslashEscapes) Indicates that E'x\ny' syntax is supported.- Parameters:
supportsCStyleBackslashEscapes-trueiff E'x\ny' syntax is supported
-
setStringLiteralEscapeSequences
-
getStringLiteralEscapeSequences
-
convertToStringLiteral
Converts a string to a string literal according to thegetStringLiteralEscapeSequences().- Parameters:
string- the string to convertmustBeParenthesized- 1-element array. Containstrueafter call iff result is complex expression.- Returns:
- the string literal
-
convertToStringLiteral
Converts a string to a string literal according to thegetStringLiteralEscapeSequences().- Parameters:
string- the string to convertprefix- literal prefix (optional)mustBeParenthesized- 1-element array. Containstrueafter call iff result is complex expression.- Returns:
- the string literal
-
postProcessStringLiteral
-
isAvoidLeftJoin
public boolean isAvoidLeftJoin()Returns whether left joins should be avoided for this DBMS.- Returns:
trueif left joins should be avoided
-
setAvoidLeftJoin
public void setAvoidLeftJoin(boolean avoidLeftJoin) Sets whether left joins should be avoided for this DBMS.- Parameters:
avoidLeftJoin-trueto avoid left joins
-
setSqlLimitSuffix
Sets the suffix appended to a SQL SELECT statement to limit the number of rows returned.- Parameters:
sqlLimitSuffix- the SQL limit suffix to set
-
getSqlLimitSuffix
Gets the suffix appended to a SQL SELECT statement to limit the number of rows returned.- Returns:
- the SQL limit suffix
-
getVarcharLengthLimit
Gets the maximum length for VARCHAR columns, ornullif unlimited.- Returns:
- the VARCHAR length limit, or
null
-
setVarcharLengthLimit
Sets the maximum length for VARCHAR columns.- Parameters:
varcharLengthLimit- the VARCHAR length limit to set, ornullfor unlimited
-
getTimestampPattern
Gets the pattern used to format timestamp values.- Returns:
- the timestamp pattern
-
setTimestampPattern
Sets the pattern used to format timestamp values.- Parameters:
timestampPattern- the timestamp pattern to set
-
getTimestampWithNanoTypeName
Gets the name of the timestamp type with nanosecond precision, if any.- Returns:
- the name of the timestamp type with nano-precision, or
nullif not applicable
-
setTimestampWithNanoTypeName
Sets the name of the timestamp type with nanosecond precision.- Parameters:
timestampWithNanoTypeName- the name of the timestamp type with nano-precision, if any
-
getTimestampWithNanoPattern
Gets the pattern used to format timestamp values with nanosecond precision.- Returns:
- the timestamp-with-nano pattern
-
setTimestampWithNanoPattern
Sets the pattern used to format timestamp values with nanosecond precision.- Parameters:
timestampWithNanoPattern- the timestamp-with-nano pattern to set
-
createTimestampWithNanoFormat
Creates aSimpleDateFormatfrom thegetTimestampWithNanoPattern().- Returns:
- the timestamp-with-nano format, or
nullif no pattern is configured
-
createTimestampFormat
Creates aSimpleDateFormatfrom thegetTimestampPattern().- Returns:
- the timestamp format
-
getDatePattern
Gets the pattern used to format date values.- Returns:
- the date pattern
-
setDatePattern
Sets the pattern used to format date values.- Parameters:
datePattern- the date pattern to set
-
createDateFormat
Creates aSimpleDateFormatfrom thegetDatePattern().- Returns:
- the date format
-
getNcharPrefix
Gets the prefix used for national character (NCHAR) string literals.- Returns:
- the NCHAR prefix
-
setNcharPrefix
Sets the prefix used for national character (NCHAR) string literals.- Parameters:
ncharPrefix- the NCHAR prefix to set
-
getTableProperties
Gets the additional table properties clause appended to CREATE TABLE statements.- Returns:
- the table properties clause
-
setTableProperties
Sets the additional table properties clause appended to CREATE TABLE statements.- Parameters:
tableProperties- the table properties clause to set
-
getJdbcProperties
-
setJdbcProperties
-
getIdentifierQuoteString
Gets the string used to quote SQL identifiers.- Returns:
- the identifier quote string
-
setIdentifierQuoteString
Sets the string used to quote SQL identifiers.- Parameters:
identifierQuoteString- the identifier quote string to set
-
getTestQuery
-
setTestQuery
Sets the test query for this DBMS.- Parameters:
testQuery- the test query to set
-
getUserDefinedColumnsQuery
Gets the query to retrieve user-defined columns.- Returns:
- the user-defined columns query
-
setUserDefinedColumnsQuery
Sets the query to retrieve user-defined columns.- Parameters:
userDefinedColumnsQuery- the user-defined columns query to set
-
getIdentityColumnsQuery
Gets the query to retrieve identity columns.- Returns:
- the identity columns query
-
setIdentityColumnsQuery
Sets the query to retrieve identity columns.- Parameters:
identityColumnsQuery- the identity columns query to set
-
getPartitionsQuery
Gets the query to retrieve partition information.- Returns:
- the partitions query
-
setPartitionsQuery
Sets the query to retrieve partition information.- Parameters:
partitionsQuery- the partitions query to set
-
getIdentityColumnInsertClause
Gets the SQL clause used in INSERT statements for identity columns.- Returns:
- the identity column insert clause
-
setIdentityColumnInsertClause
Sets the SQL clause used in INSERT statements for identity columns.- Parameters:
identityColumnInsertClause- the identity column insert clause to set
-
getNullableContraint
Gets the SQL constraint clause used to declare nullable columns.- Returns:
- the nullable constraint clause
-
setNullableContraint
Sets the SQL constraint clause used to declare nullable columns.- Parameters:
nullableContraint- the nullable constraint clause to set
-
getEmptyNCLOBValue
Gets the value used to represent an empty NCLOB.- Returns:
- the empty NCLOB value
-
setEmptyNCLOBValue
Sets the value used to represent an empty NCLOB.- Parameters:
emptyNCLOBValue- the empty NCLOB value to set
-
getImportedKeysQuery
Gets the query to retrieve imported foreign keys.- Returns:
- the imported keys query
-
setImportedKeysQuery
Sets the query to retrieve imported foreign keys.- Parameters:
importedKeysQuery- the imported keys query to set
-
getPrimaryKeysQuery
Gets the query to retrieve primary keys.- Returns:
- the primary keys query
-
setPrimaryKeysQuery
Sets the query to retrieve primary keys.- Parameters:
primaryKeysQuery- the primary keys query to set
-
getIndexInfoQuery
Gets the query to retrieve index information.- Returns:
- the index info query
-
setIndexInfoQuery
Sets the query to retrieve index information.- Parameters:
indexInfoQuery- the index info query to set
-
getToNClob
Gets the SQL expression template used to convert a value to an NCLOB.- Returns:
- the to-NCLOB conversion expression
-
setToNClob
Sets the SQL expression template used to convert a value to an NCLOB.- Parameters:
toNClob- the to-NCLOB conversion expression to set
-
getEmptyCLOBValue
Gets the value used to represent an empty CLOB.- Returns:
- the empty CLOB value
-
getEmptyBLOBValue
Gets the value used to represent an empty BLOB.- Returns:
- the empty BLOB value
-
getBinaryPattern
Gets the pattern used to format binary data as a SQL literal.- Returns:
- the binary pattern
-
getSessionTemporaryTableManager
Gets the manager for session-local temporary tables.- Returns:
- the session temporary table manager
-
getTransactionTemporaryTableManager
Gets the manager for transaction-local temporary tables.- Returns:
- the transaction temporary table manager
-
getId
-
setId
-
getFamilyId
-
setFamilyId
Sets the DBMS family identifier.- Parameters:
familyId- the family id to set
-
getDisplayName
-
setDisplayName
Sets the display name of this DBMS.- Parameters:
displayName- the display name to set
-
getIcon
-
setIcon
Sets the icon resource name for this DBMS.- Parameters:
icon- the icon resource name to set
-
getExplainPrepare
Gets the SQL statement to prepare for query explain.- Returns:
- the explain prepare statement
-
setExplainPrepare
Sets the SQL statement to prepare for query explain.- Parameters:
explainPrepare- the explain prepare statement to set
-
getExplainCreateExplainTable
Gets the SQL statement to create the explain table.- Returns:
- the explain table creation statement
-
setExplainCreateExplainTable
Sets the SQL statement to create the explain table.- Parameters:
explainCreateExplainTable- the explain table creation statement to set
-
getExplainQuery
Gets the query to retrieve the explain plan.- Returns:
- the explain query
-
setExplainQuery
Sets the query to retrieve the explain plan.- Parameters:
explainQuery- the explain query to set
-
getExplainCleanup
Gets the SQL statement to clean up after query explain.- Returns:
- the explain cleanup statement
-
setExplainCleanup
Sets the SQL statement to clean up after query explain.- Parameters:
explainCleanup- the explain cleanup statement to set
-
getFunctionSourceQuery
Gets the query to retrieve the source of a function.- Returns:
- the function source query
-
setFunctionSourceQuery
Sets the query to retrieve the source of a function.- Parameters:
functionSourceQuery- the function source query to set
-
getProcedureSourceQuery
Gets the query to retrieve the source of a stored procedure.- Returns:
- the procedure source query
-
setProcedureSourceQuery
Sets the query to retrieve the source of a stored procedure.- Parameters:
procedureSourceQuery- the procedure source query to set
-
getPackageSourceQuery
Gets the query to retrieve the source of a package.- Returns:
- the package source query
-
setPackageSourceQuery
Sets the query to retrieve the source of a package.- Parameters:
packageSourceQuery- the package source query to set
-
getPackageNamesQuery
Gets the query to retrieve the names of all packages.- Returns:
- the package names query
-
setPackageNamesQuery
Sets the query to retrieve the names of all packages.- Parameters:
packageNamesQuery- the package names query to set
-
getObjectRenderers
Gets the list of database object renderer descriptions.- Returns:
- the object renderers
-
setObjectRenderers
Sets the list of database object renderer descriptions.- Parameters:
objectRenderers- the object renderers to set
-
isProcedureDetailNeedsSpecificName
public boolean isProcedureDetailNeedsSpecificName()Returns whether retrieving procedure details requires the specific (overloaded) name.- Returns:
trueif a specific name is required for procedure detail retrieval
-
setProcedureDetailNeedsSpecificName
public void setProcedureDetailNeedsSpecificName(boolean procedureDetailNeedsSpecificName) Sets whether retrieving procedure details requires the specific (overloaded) name.- Parameters:
procedureDetailNeedsSpecificName-trueif a specific name is required for procedure detail retrieval
-
getConstraintsQuery
Gets the query to retrieve constraint information.- Returns:
- the constraints query
-
setConstraintsQuery
Sets the query to retrieve constraint information.- Parameters:
constraintsQuery- the constraints query to set
-
getEstimatedRowCountQuery
Gets the query to retrieve an estimated row count for a table.- Returns:
- the estimated row count query
-
setEstimatedRowCountQuery
Sets the query to retrieve an estimated row count for a table.- Parameters:
estimatedRowCountQuery- the estimated row count query to set
-
getViewTextOrDDLQuery
Gets the query to retrieve the text or DDL of a view.- Returns:
- the view text or DDL query
-
setViewTextOrDDLQuery
Sets the query to get view text or DDL.- Parameters:
viewTextOrDDLQuery- the query to set
-
getSynonymTableQuery
Gets the query to retrieve the underlying table of a synonym.- Returns:
- the synonym table query
-
setSynonymTableQuery
Sets the query to retrieve the underlying table of a synonym.- Parameters:
synonymTableQuery- the synonym table query to set
-
getDefaultSchemaQuery
Gets the query to retrieve the default schema of the current user.- Returns:
- the default schema query
-
setDefaultSchemaQuery
Sets the query to retrieve the default schema of the current user.- Parameters:
defaultSchemaQuery- the default schema query to set
-
getLimitTransactionSize
Gets information about how to limit transaction size (nevernull).- Returns:
- the limit transaction size info, never
null
-
setLimitTransactionSize
Sets information about how to limit transaction size.- Parameters:
incremenalInsertInfo- the limit transaction size info to set
-
getFetchSize
-
setFetchSize
-
getSqlExpressionRule
-
setSqlExpressionRule
-
hashCode
-
equals
-
setTmpFetchSize
Sets a temporary override for the fetch size, used during limited-row queries.- Parameters:
tmpFetchSize- the temporary fetch size to set, ornullto clear
-
getLimitedFetchSize
public int getLimitedFetchSize(long limit) Gets the effective fetch size to use when fetching at mostlimitrows.- Parameters:
limit- the maximum number of rows to fetch, or 0 if unlimited- Returns:
- the fetch size to use
-