Class PostgreSQLDialect

java.lang.Object
org.javalite.activejdbc.dialects.DefaultDialect
org.javalite.activejdbc.dialects.PostgreSQLDialect
All Implemented Interfaces:
Serializable, Dialect

public class PostgreSQLDialect extends DefaultDialect
See Also:
Serialized Form
  • Constructor Details

    • PostgreSQLDialect

      public PostgreSQLDialect()
  • Method Details

    • formSelect

      public String formSelect(String tableName, String[] columns, String subQuery, List<String> orderBys, long limit, long offset)
      Generates adds limit, offset and order bys to a sub-query
      Specified by:
      formSelect in interface Dialect
      Overrides:
      formSelect in class DefaultDialect
      Parameters:
      tableName - name of table. If table name is null, then the subQuery parameter is considered to be a full query, and all that needs to be done is to add limit, offset and order bys
      columns - not used in this implementation
      subQuery - sub-query or a full query
      orderBys -
      limit -
      offset -
      Returns:
      query with
    • insertParametrized

      public String insertParametrized(MetaModel metaModel, List<String> columns, boolean containsId)
      Specified by:
      insertParametrized in interface Dialect
      Overrides:
      insertParametrized in class DefaultDialect
    • toArray

      public Array toArray(String typeName, Object value, Connection connection)
      Converts the input
      Specified by:
      toArray in interface Dialect
      Overrides:
      toArray in class DefaultDialect
      Parameters:
      value -
      connection -
      Returns: