org.wso2.carbon.identity.thrift.authentication.internal.util
Class ThriftAuthenticationDatabaseUtil

java.lang.Object
  extended by org.wso2.carbon.identity.thrift.authentication.internal.util.ThriftAuthenticationDatabaseUtil

public class ThriftAuthenticationDatabaseUtil
extends Object


Constructor Summary
ThriftAuthenticationDatabaseUtil()
           
 
Method Summary
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 Connection getDBConnection()
          Get a database connection instance from the Thrift Identity Persistence Manager
static void rollBack(Connection dbConnection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThriftAuthenticationDatabaseUtil

public ThriftAuthenticationDatabaseUtil()
Method Detail

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.