Class AbstractPostgreSQLQuery<T,C extends AbstractPostgreSQLQuery<T,C>>

Type Parameters:
T - result type
C - the concrete subtype
All Implemented Interfaces:
Fetchable<T>, FetchableQuery<T,C>, FilteredClause<C>, Query<C>, SimpleQuery<C>, ExtendedSubQuery<T>, Expression<T>, SubQueryExpression<T>, SQLCommonQuery<C>, Serializable
Direct Known Subclasses:
PostgreSQLQuery

public abstract class AbstractPostgreSQLQuery<T,C extends AbstractPostgreSQLQuery<T,C>> extends AbstractSQLQuery<T,C>
PostgreSQLQuery provides PostgreSQL related extensions to SQLQuery
Author:
tiwe
See Also:
  • Constructor Details

  • Method Details

    • forShare

      public C forShare()
      FOR SHARE causes the rows retrieved by the SELECT statement to be locked as though for update.
      Overrides:
      forShare in class AbstractSQLQuery<T,C extends AbstractPostgreSQLQuery<T,C>>
      Returns:
      the current object
    • noWait

      public C noWait()
      With NOWAIT, the statement reports an error, rather than waiting, if a selected row cannot be locked immediately.
      Returns:
      the current object
    • of

      public C of(RelationalPath<?>... paths)
      FOR UPDATE / FOR SHARE OF tables
      Parameters:
      paths - tables
      Returns:
      the current object
    • distinctOn

      public C distinctOn(Expression<?>... exprs)
      adds a DISTINCT ON clause
      Parameters:
      exprs -
      Returns: