Package com.gengoai.sql
Class PostgreSQLDialect
- java.lang.Object
-
- com.gengoai.sql.SQLDialect
-
- com.gengoai.sql.PostgreSQLDialect
-
- All Implemented Interfaces:
Serializable
public class PostgreSQLDialect extends SQLDialect
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.gengoai.sql.SQLDialect
LOG_LEVEL
-
-
Constructor Summary
Constructors Constructor Description PostgreSQLDialect()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
defineColumn(Column column, StringBuilder builder)
Generates the SQL needed to define a column for creating or altering a table.protected String
function(@NonNull SQLFunction function)
Generates the SQL for a call to a predefined function.protected String
insertType(InsertType insertType)
Insert type string.protected String
translate(String keyword)
Provides dialect specific translations of keywords and symbolsprotected String
updateType(UpdateType updateType)
Update type string.-
Methods inherited from class com.gengoai.sql.SQLDialect
addColumn, alterColumn, alterTable, between, binaryOperator, checkConstraint, cleanUnderScores, conflictClause, createIndex, createTable, createTrigger, deferrable, defineConstraint, delete, drop, dropColumn, escape, foreignKeyAction, foreignKeyConstraint, insert, join, join, joinType, notNullConstraint, postfixUnaryOperator, prefixUnaryOperator, primaryKeyConstraint, queryOperator, renameColumn, renameTable, render, select, sqlDMLOperation, triggerTime, uniqueConstraint, update, upsertAction, upsertClause
-
-
-
-
Method Detail
-
defineColumn
protected void defineColumn(Column column, StringBuilder builder)
Description copied from class:SQLDialect
Generates the SQL needed to define a column for creating or altering a table.- Specified by:
defineColumn
in classSQLDialect
- Parameters:
column
- the column definitionbuilder
- the StringBuilder to add the definition to
-
function
protected String function(@NonNull @NonNull SQLFunction function)
Description copied from class:SQLDialect
Generates the SQL for a call to a predefined function.- Overrides:
function
in classSQLDialect
- Parameters:
function
- the function call- Returns:
- the SQL
-
insertType
protected String insertType(InsertType insertType)
Description copied from class:SQLDialect
Insert type string.- Overrides:
insertType
in classSQLDialect
- Parameters:
insertType
- the insert type- Returns:
- the string
-
translate
protected String translate(String keyword)
Description copied from class:SQLDialect
Provides dialect specific translations of keywords and symbols- Overrides:
translate
in classSQLDialect
- Parameters:
keyword
- the keyword- Returns:
- the tranlsation
-
updateType
protected String updateType(UpdateType updateType)
Description copied from class:SQLDialect
Update type string.- Overrides:
updateType
in classSQLDialect
- Parameters:
updateType
- the update type- Returns:
- the string
-
-