Search in sources :

Example 11 with SQLHint

use of com.alibaba.druid.sql.ast.SQLHint in project druid by alibaba.

the class OracleDeleteStatement method clone.

public OracleDeleteStatement clone() {
    OracleDeleteStatement x = new OracleDeleteStatement();
    cloneTo(x);
    for (SQLHint hint : hints) {
        SQLHint hint2 = hint.clone();
        hint2.setParent(x);
        x.hints.add(hint2);
    }
    if (returning != null) {
        x.setReturning(returning.clone());
    }
    return x;
}
Also used : SQLHint(com.alibaba.druid.sql.ast.SQLHint)

Aggregations

SQLHint (com.alibaba.druid.sql.ast.SQLHint)11 SQLName (com.alibaba.druid.sql.ast.SQLName)2 OracleInsertStatement (com.alibaba.druid.sql.dialect.oracle.ast.stmt.OracleInsertStatement)2 ArrayList (java.util.ArrayList)2 SQLParameter (com.alibaba.druid.sql.ast.SQLParameter)1 SQLListExpr (com.alibaba.druid.sql.ast.expr.SQLListExpr)1 MySqlOutputVisitor (com.alibaba.druid.sql.dialect.mysql.visitor.MySqlOutputVisitor)1 OracleMultiInsertStatement (com.alibaba.druid.sql.dialect.oracle.ast.stmt.OracleMultiInsertStatement)1