public class Postgresql extends AnsiStandard
backslash_quote = on
standard_conforming_strings = off
| Constructor and Description |
|---|
Postgresql()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDropColumns()
Whether this DBMS can drop columns.
|
SQLPoemType<?> |
defaultPoemTypeOfColumnMetaData(ResultSet md)
An Object Id
PoemType. |
SQLPoemException |
exceptionForUpdate(Table<?> table,
String sql,
boolean insert,
SQLException e)
An exception appropriate for expressing what really went wrong
during a write to the db.
|
String |
getBinarySqlDefinition(int size)
Accommodate different treatment of different sized binary data.
|
String |
getStringSqlDefinition(int size)
Accommodate String/Text distinction.
|
String |
preparedStatementPlaceholder(PoemType<?> type)
Accommodate casting in placeholders.
|
alterColumnAddCommentSQL, alterColumnNotNullableSQL, alterTableAddCommentSQL, booleanTrueExpression, canBeIndexed, canRepresent, canStoreBlobs, caseInsensitiveRegExpSQL, createTableOptionsSql, createTableSql, createTableTypeQualifierSql, exceptionForUpdate, getConnection, getFixedPtSqlDefinition, getForeignKeyDefinition, getIndexLength, getJdbcMetadataName, getLongSqlDefinition, getPrimaryKeyDefinition, getQuotedName, getQuotedValue, getSchema, getSqlDefaultValue, getSqlDefinition, givesCapabilitySQL, melatiName, selectLimit, shutdown, sqlBooleanValueOfRaw, tableInitialisationSql, toString, unloadDriver, unreservedNamepublic boolean canDropColumns()
canDropColumns in interface DbmscanDropColumns in class AnsiStandardpublic String preparedStatementPlaceholder(PoemType<?> type)
preparedStatementPlaceholder in interface DbmspreparedStatementPlaceholder in class AnsiStandardtype - the type to castPostgresqlpublic String getStringSqlDefinition(int size) throws SQLException
getStringSqlDefinition in interface DbmsgetStringSqlDefinition in class AnsiStandardsize - the string length (-1 means no limit)SQLExceptionAnsiStandard.getStringSqlDefinition(int)public String getBinarySqlDefinition(int size) throws SQLException
DbmsgetBinarySqlDefinition in interface DbmsgetBinarySqlDefinition in class AnsiStandardsize - how big the field isSQLExceptionpublic SQLPoemType<?> defaultPoemTypeOfColumnMetaData(ResultSet md) throws SQLException
PoemType.defaultPoemTypeOfColumnMetaData in interface DbmsdefaultPoemTypeOfColumnMetaData in class AnsiStandardmd - the JDBC metadataSQLException - potentiallypublic SQLPoemException exceptionForUpdate(Table<?> table, String sql, boolean insert, SQLException e)
DbmsexceptionForUpdate in interface DbmsexceptionForUpdate in class AnsiStandardtable - The table on which the update was affectedsql - The operation attempted, or possibly nullinsert - Whether the operation was an INSERT as
opposed to an UPDATEe - The raw SQL exception: the routine is meant to
try to interpret e.getMessage if it canexceptionForUpdate(org.melati.poem.Table<?>, java.lang.String, boolean, java.sql.SQLException)Copyright © 2000–2021 PanEris. All rights reserved.