public class PostgreSQLDB extends BaseDB
ALTER_COLUMN_NAME, ALTER_COLUMN_TYPE, ALTER_TABLE_NAME, columnTypePattern, CREATE_TABLE, DROP_INDEX, DROP_PRIMARY_KEY, RENAME_TABLE_TEMPLATE, REWORD_TEMPLATE, SQL_VARCHAR_TYPES, TEMPLATE| Constructor and Description |
|---|
PostgreSQLDB(int majorVersion,
int minorVersion) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
buildSQL(java.lang.String template) |
static java.lang.String |
getCreateRulesSQL(java.lang.String tableName,
java.lang.String columnName) |
java.util.List<com.liferay.portal.kernel.dao.db.Index> |
getIndexes(java.sql.Connection connection) |
java.lang.String |
getPopulateSQL(java.lang.String databaseName,
java.lang.String sqlContent) |
java.lang.String |
getRecreateSQL(java.lang.String databaseName) |
protected int[] |
getSQLTypes() |
protected int[] |
getSQLVarcharSizes() |
protected java.lang.String[] |
getTemplate() |
boolean |
isSupportsQueryingAfterException() |
protected java.lang.String |
reword(java.lang.String data) |
addIndexes, addPrimaryKey, alterColumnName, alterColumnType, alterTableAddColumn, alterTableDropColumn, buildColumnNameTokens, buildColumnTypeTokens, buildTableNameTokens, dropIndexes, dropIndexes, getDBType, getIndexes, getIndexResultSet, getMajorVersion, getMinorVersion, getPrimaryKeyColumnNames, getSQLType, getSQLVarcharSize, getTemplateBlob, getTemplateFalse, getTemplateTrue, getVersionString, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsInlineDistinct, isSupportsScrollableResults, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, limitColumnLength, process, removePrimaryKey, replaceTemplate, runSQL, runSQL, runSQL, runSQL, runSQLTemplateString, runSQLTemplateString, setSupportsStringCaseSensitiveQuery, updateIndexespublic static java.lang.String getCreateRulesSQL(java.lang.String tableName,
java.lang.String columnName)
public java.lang.String buildSQL(java.lang.String template)
throws java.io.IOException
public java.util.List<com.liferay.portal.kernel.dao.db.Index> getIndexes(java.sql.Connection connection)
throws java.sql.SQLException
getIndexes in interface com.liferay.portal.kernel.dao.db.DBgetIndexes in class BaseDBjava.sql.SQLExceptionpublic java.lang.String getPopulateSQL(java.lang.String databaseName,
java.lang.String sqlContent)
public java.lang.String getRecreateSQL(java.lang.String databaseName)
public boolean isSupportsQueryingAfterException()
isSupportsQueryingAfterException in interface com.liferay.portal.kernel.dao.db.DBisSupportsQueryingAfterException in class BaseDBprotected int[] getSQLTypes()
getSQLTypes in class BaseDBprotected int[] getSQLVarcharSizes()
getSQLVarcharSizes in class BaseDBprotected java.lang.String[] getTemplate()
getTemplate in class BaseDB