mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-13 21:01:01 +08:00
31 lines
789 B
Java
31 lines
789 B
Java
/*
|
|
* Copyright (c) 2009 Mysema Ltd.
|
|
* All rights reserved.
|
|
*
|
|
*/
|
|
package com.mysema.query.sql;
|
|
|
|
import com.mysema.query.types.Grammar;
|
|
import com.mysema.query.types.expr.EBoolean;
|
|
import com.mysema.query.types.operation.Ops;
|
|
import com.mysema.query.types.query.ListSubQuery;
|
|
import com.mysema.query.types.query.ObjectSubQuery;
|
|
|
|
/**
|
|
* SqlGrammar provides SQL specific extensions to the general Querydsl Grammar
|
|
*
|
|
* @author tiwe
|
|
* @version $Id$
|
|
*/
|
|
public class SQLGrammar extends Grammar {
|
|
|
|
public static EBoolean exists(ObjectSubQuery<?> sq) {
|
|
return operationFactory.createBoolean(Ops.EXISTS, sq);
|
|
}
|
|
|
|
public static EBoolean exists(ListSubQuery<?> sq) {
|
|
return operationFactory.createBoolean(Ops.EXISTS, sq);
|
|
}
|
|
|
|
}
|