|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.identity.application.common.persistence.JDBCPersistenceManager
public class JDBCPersistenceManager
This class is used for handling Identity Application Management data persistence in a JDBC Store. It reads the data source properties from the JNDI name given in application-authentication.xml. During the server start-up, it checks whether the database is created, if not it creates one. This is implemented as a singleton. An instance of this class can be obtained through JDBCPersistenceManager.getInstance() method.
| Method Summary | |
|---|---|
Connection |
getDBConnection()
Returns a database connection for Identity Application Management data store. |
static JDBCPersistenceManager |
getInstance()
Get an instance of the JDBCPersistenceManager. |
void |
initializeDatabase()
Get an instance of the JDBCPersistenceManager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static JDBCPersistenceManager getInstance()
throws IdentityApplicationManagementException
IdentityApplicationManagementException - Error when reading the data source configurations
public void initializeDatabase()
throws IdentityApplicationManagementException
IdentityApplicationManagementException - Error when initializing Identity Application Management data store
public Connection getDBConnection()
throws IdentityApplicationManagementException
IdentityApplicationManagementException - Error when getting DB connection
on the Identity Provider Management data source
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||