public class IdentityDBInitializer extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
checkStringBufferEndsWith(StringBuffer buffer,
String suffix)
Checks that a string buffer ends up with a given string.
|
static String |
getDatabaseType(Connection conn) |
protected String |
getDbScriptLocation(String databaseType) |
public static String getDatabaseType(Connection conn) throws org.wso2.carbon.identity.base.IdentityRuntimeException
org.wso2.carbon.identity.base.IdentityRuntimeException
public static boolean checkStringBufferEndsWith(StringBuffer buffer, String suffix)
buffer
- the buffer to perform the check onsuffix
- the suffixtrue
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.Copyright © 2019 WSO2. All rights reserved.