public class PostgresDialect extends GeneratorDialect
NOW| Constructor and Description |
|---|
PostgresDialect() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addQuotedCharacter(StringBuilder result,
char c)
Adds a quoted character to the result string buffer.
|
List<? extends EntityStatement> |
adjustNextIdentityValue(String tableName,
String columnName,
long nextValue)
Adjusts the next value of the given identity column to ensure that it is bigger than the last generated value.
|
String |
convertBooleanValue(boolean value)
Converts a boolean value for the current database type.
|
protected String |
createAddDateExpression(String referenceDate,
long value,
String unit)
Creates an SQL expression to add a value to a date.
|
String |
createBlobExpression(byte[] blob)
Converts the given byte array to an SQL expression for the current database.
|
adjustNextSequenceValue, buildCurrentSequenceValue, buildNextSequenceValue, convertTemporalValue, convertTemporalValue, createHexBlobExpression, createSql, getAutoGenerationType, getConcatOperator, getLetter, getOptionalTable, isEmptyStringEqualToNull, isEmulatingSequences, isIdentitySupported, isNextSequenceValueInInsertSupported, isSequenceInWhereSupported, isSequenceSupported, isSettingIdentityAllowed, quoteStringprotected void addQuotedCharacter(StringBuilder result, char c)
GeneratorDialectaddQuotedCharacter in class GeneratorDialectresult - the current result bufferc - the character to quotepublic List<? extends EntityStatement> adjustNextIdentityValue(String tableName, String columnName, long nextValue)
GeneratorDialectadjustNextIdentityValue in class GeneratorDialecttableName - the name of the table of the columncolumnName - the name of the (auto increment) identity columnnextValue - the next value of the identity columnpublic String convertBooleanValue(boolean value)
GeneratorDialectconvertBooleanValue in class GeneratorDialectvalue - the value to convertprotected String createAddDateExpression(String referenceDate, long value, String unit)
GeneratorDialectcreateAddDateExpression in class GeneratorDialectreferenceDate - the expression for the reference datevalue - the value to add to the dateunit - the unit of the valuepublic String createBlobExpression(byte[] blob)
GeneratorDialectcreateBlobExpression in class GeneratorDialectblob - the bytes to convertCopyright © 2017 fastnate.org. All rights reserved.