public class IdentityDatabaseUtil extends Object
Constructor and Description |
---|
IdentityDatabaseUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
closeAllConnections(Connection dbConnection,
ResultSet rs,
PreparedStatement prepStmt) |
static void |
closeConnection(Connection dbConnection) |
static void |
closeResultSet(ResultSet rs) |
static void |
closeStatement(PreparedStatement preparedStatement) |
static void |
commitTransaction(Connection dbConnection) |
static DataSource |
getDataSource()
Get database source instance from the Identity Persistence Manager
|
static Connection |
getDBConnection()
Deprecated.
|
static Connection |
getDBConnection(boolean shouldApplyTransaction)
Get a database connection instance from the Identity Persistence Manager
|
static Connection |
getUserDBConnection()
Get a database connection instance for the User DB
|
static void |
rollBack(Connection dbConnection)
Deprecated.
|
static void |
rollbackTransaction(Connection dbConnection) |
@Deprecated public static Connection getDBConnection() throws org.wso2.carbon.identity.base.IdentityRuntimeException
org.wso2.carbon.identity.base.IdentityRuntimeException
public static Connection getDBConnection(boolean shouldApplyTransaction) throws org.wso2.carbon.identity.base.IdentityRuntimeException
org.wso2.carbon.identity.base.IdentityRuntimeException
- Error when getting a database connection to Identity databasepublic static DataSource getDataSource()
public static void closeAllConnections(Connection dbConnection, ResultSet rs, PreparedStatement prepStmt)
public static void closeConnection(Connection dbConnection)
public static void closeResultSet(ResultSet rs)
public static void closeStatement(PreparedStatement preparedStatement)
@Deprecated public static void rollBack(Connection dbConnection)
public static void rollbackTransaction(Connection dbConnection)
public static void commitTransaction(Connection dbConnection)
public static Connection getUserDBConnection() throws org.wso2.carbon.identity.base.IdentityRuntimeException
org.wso2.carbon.identity.base.IdentityRuntimeException
- Error when getting a database connection to Identity databaseCopyright © 2019 WSO2. All rights reserved.