|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.utils.dbcreator.DatabaseCreator
public class DatabaseCreator
| Constructor Summary | |
|---|---|
DatabaseCreator(DataSource dataSource)
|
|
| Method Summary | |
|---|---|
static boolean |
checkStringBufferEndsWith(StringBuffer buffer,
String suffix)
Checks that a string buffer ends up with a given string. |
void |
createRegistryDatabase()
Creates registry database |
static String |
getDatabaseType(Connection conn)
computes relatational database type using database name |
static String |
getDatabaseType(String dbUrl)
Overloaded method with String input |
protected String |
getDbScriptLocation(String databaseType)
|
boolean |
isDatabaseStructureCreated(String checkSQL)
Checks whether database tables are created. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatabaseCreator(DataSource dataSource)
| Method Detail |
|---|
public void createRegistryDatabase()
throws Exception
Exceptionpublic boolean isDatabaseStructureCreated(String checkSQL)
checkSQL - SQL execute during check.
true if checkSQL is success, else false.
public static String getDatabaseType(Connection conn)
throws Exception
Exception*
Exception
public static String getDatabaseType(String dbUrl)
throws Exception
Exception*
Exceptionprotected String getDbScriptLocation(String databaseType)
public static boolean checkStringBufferEndsWith(StringBuffer buffer,
String suffix)
buffer - the buffer to perform the check onsuffix - the suffix
true if the character sequence represented by the
argument is a suffix of the character sequence represented by
the StringBuffer object; false otherwise. Note that the
result will be true if the argument is the
empty string.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||