org.wso2.carbon.identity.thrift.authentication.internal.util
Class ThriftAuthenticationDatabaseUtil
java.lang.Object
org.wso2.carbon.identity.thrift.authentication.internal.util.ThriftAuthenticationDatabaseUtil
public class ThriftAuthenticationDatabaseUtil
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThriftAuthenticationDatabaseUtil
public ThriftAuthenticationDatabaseUtil()
getDBConnection
public static Connection getDBConnection()
throws AuthenticationException
- Get a database connection instance from the Thrift Identity Persistence Manager
- Returns:
- Database Connection
- Throws:
AuthenticationException - Error when getting an instance of the identity Persistence Manager
closeAllConnections
public static void closeAllConnections(Connection dbConnection,
ResultSet rs,
PreparedStatement prepStmt)
closeConnection
public static void closeConnection(Connection dbConnection)
closeResultSet
public static void closeResultSet(ResultSet rs)
closeStatement
public static void closeStatement(PreparedStatement preparedStatement)
rollBack
public static void rollBack(Connection dbConnection)
Copyright © 2015 WSO2. All rights reserved.