public Q forShare() {
        return forShare(false);
    }
FOR SHARE causes the rows retrieved by the SELECT statement to be locked as though for update.

Supported by MySQL, PostgreSQL, SQLServer.

@return the current object

@throws QueryException
         if the FOR SHARE is not supported.
querydsl-sql/src/main/java/com/querydsl/sql/AbstractSQLQuery.java