Class DatabaseMetaLegacy


  • public final class DatabaseMetaLegacy
    extends DatabaseMetaLocalBase
    Legacy implementation of database meta information.
    • Field Detail

      • PERCENT

        private static final Value PERCENT
      • BACKSLASH

        private static final Value BACKSLASH
      • YES

        private static final Value YES
      • NO

        private static final Value NO
      • SCHEMA_MAIN

        private static final Value SCHEMA_MAIN
      • session

        private final Session session
    • Constructor Detail

      • DatabaseMetaLegacy

        public DatabaseMetaLegacy​(Session session)
    • Method Detail

      • defaultNullOrdering

        public final DefaultNullOrdering defaultNullOrdering()
        Description copied from class: DatabaseMeta
        INTERNAL
        Specified by:
        defaultNullOrdering in class DatabaseMeta
        Returns:
        DefaultNullOrdering
        See Also:
        DatabaseMetaData.nullsAreSortedHigh(), DatabaseMetaData.nullsAreSortedLow(), DatabaseMetaData.nullsAreSortedAtStart(), DatabaseMetaData.nullsAreSortedAtEnd()
      • getSQLKeywords

        public java.lang.String getSQLKeywords()
        Description copied from class: DatabaseMeta
        INTERNAL
        Specified by:
        getSQLKeywords in class DatabaseMeta
        Returns:
        list of supported SQL keywords
        See Also:
        DatabaseMetaData.getSQLKeywords()
      • getNumericFunctions

        public java.lang.String getNumericFunctions()
        Description copied from class: DatabaseMeta
        INTERNAL
        Specified by:
        getNumericFunctions in class DatabaseMeta
        Returns:
        list of supported numeric functions
        See Also:
        DatabaseMetaData.getNumericFunctions()
      • getStringFunctions

        public java.lang.String getStringFunctions()
        Description copied from class: DatabaseMeta
        INTERNAL
        Specified by:
        getStringFunctions in class DatabaseMeta
        Returns:
        list of supported string functions
        See Also:
        DatabaseMetaData.getStringFunctions()
      • getSystemFunctions

        public java.lang.String getSystemFunctions()
        Description copied from class: DatabaseMeta
        INTERNAL
        Specified by:
        getSystemFunctions in class DatabaseMeta
        Returns:
        list of supported system functions
        See Also:
        DatabaseMetaData.getSystemFunctions()
      • getTimeDateFunctions

        public java.lang.String getTimeDateFunctions()
        Description copied from class: DatabaseMeta
        INTERNAL
        Specified by:
        getTimeDateFunctions in class DatabaseMeta
        Returns:
        list of supported time/date functions
        See Also:
        DatabaseMetaData.getTimeDateFunctions()
      • getFunctions

        private java.lang.String getFunctions​(java.lang.String section)
      • getSearchStringEscape

        public java.lang.String getSearchStringEscape()
        Description copied from class: DatabaseMeta
        INTERNAL
        Specified by:
        getSearchStringEscape in class DatabaseMeta
        Returns:
        search string escape sequence
        See Also:
        DatabaseMetaData.getSearchStringEscape()
      • getProcedures

        public ResultInterface getProcedures​(java.lang.String catalog,
                                             java.lang.String schemaPattern,
                                             java.lang.String procedureNamePattern)
        Description copied from class: DatabaseMeta
        INTERNAL
        Specified by:
        getProcedures in class DatabaseMeta
        Parameters:
        catalog - to inspect
        schemaPattern - "LIKE" style pattern to filter result
        procedureNamePattern - "LIKE" style pattern to filter result
        Returns:
        ResultInterface
        See Also:
        DatabaseMetaData.getProcedures(String, String, String)
      • getProcedureColumns

        public ResultInterface getProcedureColumns​(java.lang.String catalog,
                                                   java.lang.String schemaPattern,
                                                   java.lang.String procedureNamePattern,
                                                   java.lang.String columnNamePattern)
        Description copied from class: DatabaseMeta
        INTERNAL
        Specified by:
        getProcedureColumns in class DatabaseMeta
        Parameters:
        catalog - to inspect
        schemaPattern - "LIKE" style pattern to filter result
        procedureNamePattern - "LIKE" style pattern to filter result
        columnNamePattern - "LIKE" style pattern to filter result
        Returns:
        ResultInterface
        See Also:
        DatabaseMetaData.getProcedureColumns(String, String, String, String)
      • getTables

        public ResultInterface getTables​(java.lang.String catalog,
                                         java.lang.String schemaPattern,
                                         java.lang.String tableNamePattern,
                                         java.lang.String[] types)
        Description copied from class: DatabaseMeta
        INTERNAL
        Specified by:
        getTables in class DatabaseMeta
        Parameters:
        catalog - to inspect
        schemaPattern - "LIKE" style pattern to filter result
        tableNamePattern - "LIKE" style pattern to filter result
        types - String[]
        Returns:
        ResultInterface
        See Also:
        DatabaseMetaData.getTables(String, String, String, String[])
      • getColumns

        public ResultInterface getColumns​(java.lang.String catalog,
                                          java.lang.String schemaPattern,
                                          java.lang.String tableNamePattern,
                                          java.lang.String columnNamePattern)
        Description copied from class: DatabaseMeta
        INTERNAL
        Specified by:
        getColumns in class DatabaseMeta
        Parameters:
        catalog - to inspect
        schemaPattern - "LIKE" style pattern to filter result
        tableNamePattern - "LIKE" style pattern to filter result
        columnNamePattern - "LIKE" style pattern to filter result
        Returns:
        ResultInterface
        See Also:
        DatabaseMetaData.getColumns(String, String, String, String)
      • getColumnPrivileges

        public ResultInterface getColumnPrivileges​(java.lang.String catalog,
                                                   java.lang.String schema,
                                                   java.lang.String table,
                                                   java.lang.String columnNamePattern)
        Description copied from class: DatabaseMeta
        INTERNAL
        Specified by:
        getColumnPrivileges in class DatabaseMeta
        Parameters:
        catalog - to inspect
        schema - to inspect
        table - to inspect
        columnNamePattern - "LIKE" style pattern to filter result
        Returns:
        ResultInterface
        See Also:
        DatabaseMetaData.getColumnPrivileges(String, String, String, String)
      • getTablePrivileges

        public ResultInterface getTablePrivileges​(java.lang.String catalog,
                                                  java.lang.String schemaPattern,
                                                  java.lang.String tableNamePattern)
        Description copied from class: DatabaseMeta
        INTERNAL
        Specified by:
        getTablePrivileges in class DatabaseMeta
        Parameters:
        catalog - to inspect
        schemaPattern - "LIKE" style pattern to filter result
        tableNamePattern - "LIKE" style pattern to filter result
        Returns:
        ResultInterface
        See Also:
        DatabaseMetaData.getTablePrivileges(String, String, String)
      • getBestRowIdentifier

        public ResultInterface getBestRowIdentifier​(java.lang.String catalogPattern,
                                                    java.lang.String schemaPattern,
                                                    java.lang.String tableName,
                                                    int scope,
                                                    boolean nullable)
        Description copied from class: DatabaseMeta
        INTERNAL
        Specified by:
        getBestRowIdentifier in class DatabaseMeta
        Parameters:
        catalogPattern - "LIKE" style pattern to filter result
        schemaPattern - "LIKE" style pattern to filter result
        tableName - table of interest
        scope - of interest
        nullable - include nullable columns
        Returns:
        ResultInterface
        See Also:
        DatabaseMetaData.getBestRowIdentifier(String, String, String, int, boolean)
      • getPrimaryKeys

        public ResultInterface getPrimaryKeys​(java.lang.String catalog,
                                              java.lang.String schema,
                                              java.lang.String table)
        Description copied from class: DatabaseMeta
        INTERNAL
        Specified by:
        getPrimaryKeys in class DatabaseMeta
        Parameters:
        catalog - to inspect
        schema - to inspect
        table - to inspect
        Returns:
        ResultInterface
        See Also:
        DatabaseMetaData.getPrimaryKeys(String, String, String)
      • getImportedKeys

        public ResultInterface getImportedKeys​(java.lang.String catalog,
                                               java.lang.String schema,
                                               java.lang.String table)
        Description copied from class: DatabaseMeta
        INTERNAL
        Specified by:
        getImportedKeys in class DatabaseMeta
        Parameters:
        catalog - to inspect
        schema - to inspect
        table - to inspect
        Returns:
        ResultInterface
        See Also:
        DatabaseMetaData.getImportedKeys(String, String, String)
      • getExportedKeys

        public ResultInterface getExportedKeys​(java.lang.String catalog,
                                               java.lang.String schema,
                                               java.lang.String table)
        Description copied from class: DatabaseMeta
        INTERNAL
        Specified by:
        getExportedKeys in class DatabaseMeta
        Parameters:
        catalog - to inspect
        schema - to inspect
        table - to inspect
        Returns:
        ResultInterface
        See Also:
        DatabaseMetaData.getExportedKeys(String, String, String)
      • getCrossReference

        public ResultInterface getCrossReference​(java.lang.String primaryCatalog,
                                                 java.lang.String primarySchema,
                                                 java.lang.String primaryTable,
                                                 java.lang.String foreignCatalog,
                                                 java.lang.String foreignSchema,
                                                 java.lang.String foreignTable)
        Description copied from class: DatabaseMeta
        INTERNAL
        Specified by:
        getCrossReference in class DatabaseMeta
        Parameters:
        primaryCatalog - to inspect
        primarySchema - to inspect
        primaryTable - to inspect
        foreignCatalog - to inspect
        foreignSchema - to inspect
        foreignTable - to inspect
        Returns:
        ResultInterface
        See Also:
        DatabaseMetaData.getCrossReference(String, String, String, String, String, String)
      • getIndexInfo

        public ResultInterface getIndexInfo​(java.lang.String catalog,
                                            java.lang.String schema,
                                            java.lang.String table,
                                            boolean unique,
                                            boolean approximate)
        Description copied from class: DatabaseMeta
        INTERNAL
        Specified by:
        getIndexInfo in class DatabaseMeta
        Parameters:
        catalog - to inspect
        schema - to inspect
        table - to inspect
        unique - only
        approximate - allowed
        Returns:
        ResultInterface
        See Also:
        DatabaseMetaData.getIndexInfo(String, String, String, boolean, boolean)
      • getSchemas

        public ResultInterface getSchemas​(java.lang.String catalog,
                                          java.lang.String schemaPattern)
        Description copied from class: DatabaseMeta
        INTERNAL
        Specified by:
        getSchemas in class DatabaseMeta
        Parameters:
        catalog - to inspect
        schemaPattern - "LIKE" style pattern to filter result
        Returns:
        ResultInterface
        See Also:
        DatabaseMetaData.getSchemas(String, String)
      • getPseudoColumns

        public ResultInterface getPseudoColumns​(java.lang.String catalog,
                                                java.lang.String schemaPattern,
                                                java.lang.String tableNamePattern,
                                                java.lang.String columnNamePattern)
        Description copied from class: DatabaseMeta
        INTERNAL
        Specified by:
        getPseudoColumns in class DatabaseMeta
        Parameters:
        catalog - to inspect
        schemaPattern - "LIKE" style pattern to filter result
        tableNamePattern - "LIKE" style pattern to filter result
        columnNamePattern - "LIKE" style pattern to filter result
        Returns:
        ResultInterface
        See Also:
        DatabaseMetaData.getPseudoColumns(String, String, String, String)
      • getString

        private Value getString​(java.lang.String string)
      • getPattern

        private Value getPattern​(java.lang.String pattern)
      • getSchemaPattern

        private Value getSchemaPattern​(java.lang.String pattern)
      • getCatalogPattern

        private Value getCatalogPattern​(java.lang.String catalogPattern)