public class PostgreSQLDB extends BaseDB
ALTER_COLUMN_NAME, ALTER_COLUMN_TYPE, ALTER_TABLE_NAME, CREATE_TABLE, DROP_INDEX, DROP_PRIMARY_KEY, RENAME_TABLE_TEMPLATE, REWORD_TEMPLATE, TEMPLATE
Constructor and Description |
---|
PostgreSQLDB(int majorVersion,
int minorVersion) |
Modifier and Type | Method and Description |
---|---|
String |
buildSQL(String template) |
static String |
getCreateRulesSQL(String tableName,
String columnName) |
List<com.liferay.portal.kernel.dao.db.Index> |
getIndexes(Connection con) |
String |
getPopulateSQL(String databaseName,
String sqlContent) |
String |
getRecreateSQL(String databaseName) |
protected int[] |
getSQLTypes() |
protected String[] |
getTemplate() |
boolean |
isSupportsQueryingAfterException() |
protected String |
reword(String data) |
addIndexes, buildColumnNameTokens, buildColumnTypeTokens, buildCreateFile, buildCreateFile, buildSQLFile, buildTableNameTokens, dropIndexes, getDBType, getMajorVersion, getMinorVersion, getSQLType, getTemplateBlob, getTemplateFalse, getTemplateTrue, getVersionString, increment, increment, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsInlineDistinct, isSupportsScrollableResults, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, replaceTemplate, runSQL, runSQL, runSQL, runSQL, runSQLTemplate, runSQLTemplate, runSQLTemplateString, runSQLTemplateString, runSQLTemplateString, runSQLTemplateString, setSupportsStringCaseSensitiveQuery, updateIndexes
public static String getCreateRulesSQL(String tableName, String columnName)
public String buildSQL(String template) throws IOException
public List<com.liferay.portal.kernel.dao.db.Index> getIndexes(Connection con) throws SQLException
getIndexes
in interface com.liferay.portal.kernel.dao.db.DB
getIndexes
in class BaseDB
SQLException
public String getPopulateSQL(String databaseName, String sqlContent)
public String getRecreateSQL(String databaseName)
public boolean isSupportsQueryingAfterException()
isSupportsQueryingAfterException
in interface com.liferay.portal.kernel.dao.db.DB
isSupportsQueryingAfterException
in class BaseDB
protected int[] getSQLTypes()
getSQLTypes
in class BaseDB
protected String[] getTemplate()
getTemplate
in class BaseDB