org.springframework.jdbc.core.metadata

Class GenericTableMetaDataProvider

  • java.lang.Object
    • org.springframework.jdbc.core.metadata.GenericTableMetaDataProvider
    • Field Detail

      • logger

        protected static final Log logger
        Logger available to subclasses.
    • Constructor Detail

      • GenericTableMetaDataProvider

        protected GenericTableMetaDataProvider(java.sql.DatabaseMetaData databaseMetaData)
                                        throws java.sql.SQLException
        Constructor used to initialize with provided database meta-data.
        Parameters:
        databaseMetaData - meta-data to be used
        Throws:
        java.sql.SQLException
    • Method Detail

      • setStoresUpperCaseIdentifiers

        public void setStoresUpperCaseIdentifiers(boolean storesUpperCaseIdentifiers)
      • isStoresUpperCaseIdentifiers

        public boolean isStoresUpperCaseIdentifiers()
      • setStoresLowerCaseIdentifiers

        public void setStoresLowerCaseIdentifiers(boolean storesLowerCaseIdentifiers)
      • isStoresLowerCaseIdentifiers

        public boolean isStoresLowerCaseIdentifiers()
      • setGetGeneratedKeysSupported

        public void setGetGeneratedKeysSupported(boolean getGeneratedKeysSupported)
      • setGeneratedKeysColumnNameArraySupported

        public void setGeneratedKeysColumnNameArraySupported(boolean generatedKeysColumnNameArraySupported)
      • initializeWithMetaData

        public void initializeWithMetaData(java.sql.DatabaseMetaData databaseMetaData)
                                    throws java.sql.SQLException
        Description copied from interface: TableMetaDataProvider
        Initialize using the database meta-data provided.
        Specified by:
        initializeWithMetaData in interface TableMetaDataProvider
        Parameters:
        databaseMetaData - used to retrieve database specific information
        Throws:
        java.sql.SQLException - in case of initialization failure
      • initializeWithTableColumnMetaData

        public void initializeWithTableColumnMetaData(java.sql.DatabaseMetaData databaseMetaData,
                                                      @Nullable
                                                      java.lang.String catalogName,
                                                      @Nullable
                                                      java.lang.String schemaName,
                                                      @Nullable
                                                      java.lang.String tableName)
                                               throws java.sql.SQLException
        Description copied from interface: TableMetaDataProvider
        Initialize using provided database meta-data, table and column information. This initialization can be turned off by specifying that column meta-data should not be used.
        Specified by:
        initializeWithTableColumnMetaData in interface TableMetaDataProvider
        Parameters:
        databaseMetaData - used to retrieve database specific information
        catalogName - name of catalog to use (or null if none)
        schemaName - name of schema name to use (or null if none)
        tableName - name of the table
        Throws:
        java.sql.SQLException - in case of initialization failure
      • metaDataCatalogNameToUse

        @Nullable
        public java.lang.String metaDataCatalogNameToUse(@Nullable
                                                                   java.lang.String catalogName)
        Description copied from interface: TableMetaDataProvider
        Provide any modification of the catalog name passed in to match the meta-data currently used. The returned value will be used for meta-data lookups. This could include altering the case used or providing a base catalog if none is provided.
        Specified by:
        metaDataCatalogNameToUse in interface TableMetaDataProvider
      • metaDataSchemaNameToUse

        @Nullable
        public java.lang.String metaDataSchemaNameToUse(@Nullable
                                                                  java.lang.String schemaName)
        Description copied from interface: TableMetaDataProvider
        Provide any modification of the schema name passed in to match the meta-data currently used. The returned value will be used for meta-data lookups. This could include altering the case used or providing a base schema if none is provided.
        Specified by:
        metaDataSchemaNameToUse in interface TableMetaDataProvider
      • getDefaultSchema

        @Nullable
        protected java.lang.String getDefaultSchema()
        Provide access to default schema for subclasses.
      • getDatabaseVersion

        @Nullable
        protected java.lang.String getDatabaseVersion()
        Provide access to version info for subclasses.