public interface DBMetaData
ConnectionManager.getMetaData() method.| Modifier and Type | Method and Description |
|---|---|
boolean |
areLikeEscapesBugged()
Connection-Manager specific.
|
boolean |
areLongTypesStreamable()
Returns if SQL API set/getXXXStream() methods can be used without problems
on the SQL types designated as
java.sql.Types.LONGVARCHAR and
java.sql.Types.LONGVARBINARY when interrogating the database
metadata of the underlying DB server. |
boolean |
areSpecialEscapesInterpreted()
Connection-Manager specific.
|
int |
connectionLimit()
ConnectionManager-specific : returns the ConnectionManager's connection limit.
|
java.lang.String |
getBinarySearchSyntax(java.lang.String column)
Returns specific syntax for binary (case-sensitive) search on VARCHAR/TEXT columns,
depending on the underlying database server.
|
java.lang.String |
getBinarySortSyntax(java.lang.String column)
Returns specific syntax for binary (case-sensitive) sort of VARCHAR/TEXT columns,
depending on the underlying database server.
|
java.lang.String |
getDBTimeFunction()
Returns the name of the built-in SQL current-time function of the underlying DB server.
|
java.lang.String |
getFictiveFromClause()
Connection-Manager specific.
|
java.lang.String |
getIgnoreCaseSearchSyntax(java.lang.String column,
java.lang.String operator)
If underlying database server absolultely requires specific syntax for case-inensitive
search on VARCHAR/TEXT columns, and mPRM DB configuration for this server requires CI search,
this method will return server-specific CI search syntax.
|
java.lang.String |
getLikeSpecialCharacters()
Returns a String containing the special (meta) symbols that the underlying DB
server interprets in a special way in LIKE search patterns.
|
java.lang.String |
getOuterJoinSyntax(java.lang.String table1,
char alias1,
java.lang.String table2,
char alias2,
java.lang.String column1,
java.lang.String column2,
java.lang.String furtherWhereClause,
boolean isLeft)
Connection-Manager specific.
|
java.lang.String |
getSearchStringEscape() |
boolean |
isCLOBTypeEQSearchable() |
boolean |
isConfiguredCaseInsensitive() |
boolean |
isDB2()
Connection-Manager specific.
|
boolean |
isH2()
Connection-Manager specific.
|
boolean |
isModFunctionPercent()
Returns true if the only supported syntax for mod() expressions in the underlying's DB server
is 'expr % divisor' (as opposed to the standard 'mod(expr, divisor)').
|
boolean |
isMySQL()
Connection-Manager specific.
|
boolean |
isMySQLInnoDB()
Connection-Manager specific.
|
boolean |
isOracle()
Connection-Manager specific.
|
boolean |
isOracle10()
Connection-Manager specific.
|
boolean |
isPostgreSql()
Connection-Manager specific.
|
java.lang.String |
mod(java.lang.String column,
int value)
Returns the underlying DB server's mod function syntax for the expression 'mod(COLUMN, value)'.
|
java.lang.String |
nullCheckLOB(java.lang.String column)
Returns specific syntax for IS NULL clause on LOB (LONGVARCHAR/LONGVARBINARY) columns,
if the underlying DB server requires such.
|
java.lang.String |
product()
The same as java.sql.DatabaseMetaData.getDatabaseProductName().
|
boolean |
supportsAlterTableWithAddColumn() |
boolean |
supportsAlterTableWithDropColumn() |
boolean |
supportsAlterTableWithModifyColumn() |
boolean |
supportsCorrelatedSubqueries() |
boolean |
supportsLikeEscapeClause() |
boolean |
supportsSubqueriesInComparisons() |
boolean |
supportsSubqueriesInExists() |
boolean |
supportsSubqueriesInIns() |
boolean |
supportsTransactions() |
java.lang.String product()
java.lang.String getSearchStringEscape()
boolean supportsLikeEscapeClause()
boolean supportsTransactions()
boolean supportsCorrelatedSubqueries()
boolean supportsSubqueriesInIns()
boolean supportsSubqueriesInExists()
boolean supportsSubqueriesInComparisons()
boolean supportsAlterTableWithAddColumn()
boolean supportsAlterTableWithDropColumn()
boolean supportsAlterTableWithModifyColumn()
int connectionLimit()
boolean isOracle()
boolean isOracle10()
boolean isMySQL()
boolean isH2()
boolean isPostgreSql()
boolean isMySQLInnoDB()
boolean isDB2()
boolean areLongTypesStreamable()
java.sql.Types.LONGVARCHAR and
java.sql.Types.LONGVARBINARY when interrogating the database
metadata of the underlying DB server.
The return value is intended to be used by mPRM Table Creator for
determining if the above types should be considered for choice of the
actual type for a LONGVARCHAR/LONGVARBINARY table column (or only
Types.CLOB and Types.BLOB should be considered).
boolean areSpecialEscapesInterpreted()
getSearchStringEscape().
NB:On DB servers, over which this method returns true (MySQL),
escape interpretation for LIKE patterns happens even if using PreparedStatement !
getSearchStringEscape() also as an escape symbol for special characters in
string data, false otherwiseboolean areLikeEscapesBugged()
java.lang.String getLikeSpecialCharacters()
java.lang.String getOuterJoinSyntax(java.lang.String table1,
char alias1,
java.lang.String table2,
char alias2,
java.lang.String column1,
java.lang.String column2,
java.lang.String furtherWhereClause,
boolean isLeft)
table1 - the first tablealias1 - alias for table1 ; pass some single lettertable2 - the second tablealias2 - alias for table2 ; pass some other single letter ( != alias1)column1 - column from the first table for the equality search conditioncolumn2 - column from the second table for the equality search conditionfurtherWhereClause - where clause to be appended after the outer join,
pass null if not desiredisLeft - must be true for a left outer join, false for a right outer joinjava.lang.String getFictiveFromClause()
java.lang.String getDBTimeFunction()
boolean isModFunctionPercent()
java.lang.String mod(java.lang.String column,
int value)
column - column namevalue - the divisor as constant integer valuejava.lang.String nullCheckLOB(java.lang.String column)
boolean isCLOBTypeEQSearchable()
java.lang.String getBinarySortSyntax(java.lang.String column)
column - the name of the column used for the sortjava.lang.String getBinarySearchSyntax(java.lang.String column)
column - the name of the column used to search onboolean isConfiguredCaseInsensitive()
java.lang.String getIgnoreCaseSearchSyntax(java.lang.String column,
java.lang.String operator)
column - the name of the column used to search onoperator - comparison operator - "=" or "LIKE"Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.