org.springframework.jdbc.core.metadata

Class CallMetaDataProviderFactory

  • java.lang.Object
    • org.springframework.jdbc.core.metadata.CallMetaDataProviderFactory


  • public final class CallMetaDataProviderFactory
    extends java.lang.Object
    Factory used to create a CallMetaDataProvider implementation based on the type of database being used.
    Since:
    2.5
    Author:
    Thomas Risberg, Juergen Hoeller
    • Field Detail

      • supportedDatabaseProductsForProcedures

        public static final java.util.List<java.lang.String> supportedDatabaseProductsForProcedures
        List of supported database products for procedure calls.
      • supportedDatabaseProductsForFunctions

        public static final java.util.List<java.lang.String> supportedDatabaseProductsForFunctions
        List of supported database products for function calls.
    • Method Detail

      • createMetaDataProvider

        public static CallMetaDataProvider createMetaDataProvider(javax.sql.DataSource dataSource,
                                                                  CallMetaDataContext context)
        Create a CallMetaDataProvider based on the database meta-data.
        Parameters:
        dataSource - the JDBC DataSource to use for retrieving meta-data
        context - the class that holds configuration and meta-data
        Returns:
        instance of the CallMetaDataProvider implementation to be used