public class LifecycleMgtDBUtil extends Object
| Constructor and Description |
|---|
LifecycleMgtDBUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canReturnGeneratedKeys(String dbProductName) |
static void |
closeAllConnections(PreparedStatement preparedStatement,
Connection connection,
ResultSet resultSet)
Utility method to close the connection streams.
|
static void |
closeStatement(PreparedStatement preparedStatement)
Close PreparedStatement
|
static Connection |
getConnection()
Utility method to get a new database connection
|
static String |
getConvertedAutoGeneratedColumnName(String dbProductName,
String columnName) |
static void |
initialize()
Initializes the data source and creates lifecycle database.
|
public static void initialize()
throws LifecycleManagerDatabaseException
LifecycleManagerDatabaseException - if an error occurs while loading DB configurationpublic static Connection getConnection() throws SQLException
SQLException - if failed to get Connectionpublic static void closeAllConnections(PreparedStatement preparedStatement, Connection connection, ResultSet resultSet)
preparedStatement - PreparedStatementconnection - ConnectionresultSet - ResultSetpublic static void closeStatement(PreparedStatement preparedStatement)
preparedStatement - PreparedStatementpublic static String getConvertedAutoGeneratedColumnName(String dbProductName, String columnName)
public static boolean canReturnGeneratedKeys(String dbProductName)
Copyright © 2017 WSO2. All rights reserved.