Class GatewayArtifactsMgtDBUtil
- java.lang.Object
-
- org.wso2.carbon.apimgt.impl.utils.GatewayArtifactsMgtDBUtil
-
public class GatewayArtifactsMgtDBUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description GatewayArtifactsMgtDBUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
closeResultSet(ResultSet resultSet)
Close ResultSetstatic Connection
getArtifactSynchronizerConnection()
Utility method to get a new database connection for gatewayRuntime artifactsstatic void
initialize()
Initializes the data source
-
-
-
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 configurationorg.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
-
-