Class GatewayArtifactsMgtDBUtil


  • public class GatewayArtifactsMgtDBUtil
    extends Object
    • Constructor Detail

      • GatewayArtifactsMgtDBUtil

        public GatewayArtifactsMgtDBUtil()
    • Method Detail

      • initialize

        public static void initialize()
                               throws org.wso2.carbon.apimgt.api.APIManagerDatabaseException
        Initializes the data source
        Throws:
        org.wso2.carbon.apimgt.api.APIManagementException - if an error occurs while loading DB configuration
        org.wso2.carbon.apimgt.api.APIManagerDatabaseException
      • getArtifactSynchronizerConnection

        public static Connection getArtifactSynchronizerConnection()
                                                            throws SQLException
        Utility method to get a new database connection for gatewayRuntime artifacts
        Returns:
        Connection
        Throws:
        SQLException - if failed to get Connection
      • closeResultSet

        public static void closeResultSet​(ResultSet resultSet)
        Close ResultSet
        Parameters:
        resultSet - ResultSet