|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.utils.DBUtils
public final class DBUtils
| Method Summary | |
|---|---|
static boolean |
canReturnGeneratedKeys(String dbProductName)
Determines whether the given type of Database can return generated keys. |
static String |
getConvertedAutoGeneratedColumnName(String dbProductName,
String columnName)
Converts upper case column name to lower case to match PostgreSQL. |
static String |
getRegistryDBConfig()
get the registry.xml database type |
static String |
getUserManagerDBConfig()
get the user-mgt.xml database type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String getConvertedAutoGeneratedColumnName(String dbProductName,
String columnName)
dbProductName - - eg: "MySQL,Oracle,PostgreSQL". Obtained using Connection.getMetaData().getDatabaseProductName();columnName - - table column name to be converted
public static boolean canReturnGeneratedKeys(String dbProductName)
dbProductName - - eg: "MySQL,Oracle,PostgreSQL". Obtained using Connection.getMetaData().getDatabaseProductName();
public static String getRegistryDBConfig()
throws Exception
Exception
public static String getUserManagerDBConfig()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||