本文整理汇总了Java中com.alibaba.druid.sql.ast.SQLExpr.clone方法的典型用法代码示例。如果您正苦于以下问题:Java SQLExpr.clone方法的具体用法?Java SQLExpr.clone怎么用?Java SQLExpr.clone使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.alibaba.druid.sql.ast.SQLExpr
的用法示例。
在下文中一共展示了SQLExpr.clone方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: cloneTo
import com.alibaba.druid.sql.ast.SQLExpr; //导入方法依赖的package包/类
public void cloneTo(SQLJoinTableSource x) {
x.alias = alias;
if (left != null) {
x.setLeft(left.clone());
}
x.joinType = joinType;
if (right != null) {
x.setRight(right.clone());
}
if(condition != null){
x.setCondition(condition);
}
for (SQLExpr item : using) {
SQLExpr item2 = item.clone();
item2.setParent(x);
x.using.add(item2);
}
x.natural = natural;
}
示例2: cloneTo
import com.alibaba.druid.sql.ast.SQLExpr; //导入方法依赖的package包/类
public void cloneTo(SQLInsertInto x) {
if (tableSource != null) {
x.setTableSource(tableSource.clone());
}
for (SQLExpr column : columns) {
SQLExpr column2 = column.clone();
column2.setParent(x);
x.columns.add(column2);
}
if (query != null) {
x.setQuery(query.clone());
}
for (ValuesClause v : valuesList) {
ValuesClause v2 = v.clone();
v2.setParent(x);
x.valuesList.add(v2);
}
}
示例3: clone
import com.alibaba.druid.sql.ast.SQLExpr; //导入方法依赖的package包/类
public OracleReturningClause clone() {
OracleReturningClause x = new OracleReturningClause();
for (SQLExpr item : items) {
SQLExpr item2 = item.clone();
item2.setParent(x);
x.items.add(item2);
}
for (SQLExpr v : values) {
SQLExpr v2 = v.clone();
v2.setParent(x);
x.values.add(v2);
}
return x;
}
示例4: clone
import com.alibaba.druid.sql.ast.SQLExpr; //导入方法依赖的package包/类
public SampleClause clone() {
SampleClause x = new SampleClause();
x.block = block;
for (SQLExpr item : percent) {
SQLExpr item1 = item.clone();
item1.setParent(x);
x.percent.add(item1);
}
if (seedValue != null) {
x.setSeedValue(seedValue.clone());
}
return x;
}
示例5: clone
import com.alibaba.druid.sql.ast.SQLExpr; //导入方法依赖的package包/类
public CycleClause clone() {
CycleClause x = new CycleClause();
for (SQLExpr alias : aliases) {
SQLExpr alias2 = alias.clone();
alias2.setParent(x);
x.aliases.add(alias2);
}
if (mark != null) {
setMark(mark.clone());
}
if (value != null) {
setValue(value.clone());
}
if (defaultValue != null) {
setDefaultValue(defaultValue.clone());
}
return x;
}
示例6: clone
import com.alibaba.druid.sql.ast.SQLExpr; //导入方法依赖的package包/类
public SQLServerOutput clone() {
SQLServerOutput x = new SQLServerOutput();
if (into != null) {
x.setInto(into.clone());
}
for (SQLExpr c : columns) {
SQLExpr c2 = c.clone();
c2.setParent(x);
x.columns.add(c2);
}
for (SQLSelectItem item : selectList) {
SQLSelectItem item2 = item.clone();
item2.setParent(x);
x.selectList.add(item2);
}
return x;
}
示例7: clone
import com.alibaba.druid.sql.ast.SQLExpr; //导入方法依赖的package包/类
public SQLSelectGroupByClause clone() {
SQLSelectGroupByClause x = new SQLSelectGroupByClause();
for (SQLExpr item : items) {
SQLExpr item2 = item.clone();
item2.setParent(x);
x.items.add(item2);
}
if (having != null) {
x.setHaving(having.clone());
}
x.withRollUp = withRollUp;
x.withCube = withCube;
return x;
}
示例8: clone
import com.alibaba.druid.sql.ast.SQLExpr; //导入方法依赖的package包/类
public SQLListExpr clone() {
SQLListExpr x = new SQLListExpr();
for (SQLExpr item : items) {
SQLExpr item2 = item.clone();
item2.setParent(x);
x.items.add(item2);
}
return x;
}
示例9: clone
import com.alibaba.druid.sql.ast.SQLExpr; //导入方法依赖的package包/类
public SQLInListExpr clone() {
SQLInListExpr x = new SQLInListExpr();
x.not = not;
if (expr != null) {
x.setExpr(expr.clone());
}
for (SQLExpr e : targetList) {
SQLExpr e2 = e.clone();
e2.setParent(x);
x.targetList.add(e2);
}
return x;
}
示例10: clone
import com.alibaba.druid.sql.ast.SQLExpr; //导入方法依赖的package包/类
public SQLGroupingSetExpr clone() {
SQLGroupingSetExpr x = new SQLGroupingSetExpr();
for (SQLExpr p : parameters) {
SQLExpr p2 = p.clone();
p2.setParent(x);
x.parameters.add(p2);
}
return x;
}
示例11: clone
import com.alibaba.druid.sql.ast.SQLExpr; //导入方法依赖的package包/类
@Override
public SQLExpr clone() {
SQLBinaryOpExprGroup x = new SQLBinaryOpExprGroup(operator);
for (SQLExpr item : items) {
SQLExpr item2 = item.clone();
item2.setParent(this);
x.items.add(item2);
}
return x;
}
示例12: clone
import com.alibaba.druid.sql.ast.SQLExpr; //导入方法依赖的package包/类
public SQLArrayExpr clone() {
SQLArrayExpr x = new SQLArrayExpr();
if (expr != null) {
x.setExpr(expr.clone());
}
for (SQLExpr value : values) {
SQLExpr value2 = value.clone();
value2.setParent(x);
x.values.add(value2);
}
return x;
}
示例13: clone
import com.alibaba.druid.sql.ast.SQLExpr; //导入方法依赖的package包/类
public OracleSelectQueryBlock clone() {
OracleSelectQueryBlock x = new OracleSelectQueryBlock();
super.cloneTo(x);
if (hints != null) {
for (SQLCommentHint hint : hints) {
SQLCommentHint hint1 = hint.clone();
hint1.setParent(x);
x.getHints().add(hint1);
}
}
if (modelClause != null) {
x.setModelClause(modelClause.clone());
}
if (forUpdateOf != null) {
for (SQLExpr item : forUpdateOf) {
SQLExpr item1 = item.clone();
item1.setParent(x);
forUpdateOf.add(item1);
}
}
x.skipLocked = skipLocked;
return x;
}
示例14: cloneTo
import com.alibaba.druid.sql.ast.SQLExpr; //导入方法依赖的package包/类
public void cloneTo(MySqlInsertStatement x) {
super.cloneTo(x);
x.lowPriority = lowPriority;
x.delayed = delayed;
x.highPriority = highPriority;
x.ignore = ignore;
x.rollbackOnFail = rollbackOnFail;
for (SQLExpr e : duplicateKeyUpdate) {
SQLExpr e2 = e.clone();
e2.setParent(x);
x.duplicateKeyUpdate.add(e2);
}
}
示例15: clone
import com.alibaba.druid.sql.ast.SQLExpr; //导入方法依赖的package包/类
public MySqlSelectQueryBlock clone() {
MySqlSelectQueryBlock x = new MySqlSelectQueryBlock();
cloneTo(x);
x.hignPriority = hignPriority;
x.straightJoin = straightJoin;
x.smallResult = smallResult;
x.bigResult = bigResult;
x.bufferResult = bufferResult;
x.cache = cache;
x.calcFoundRows = calcFoundRows;
if (procedureName != null) {
x.setProcedureName(procedureName.clone());
}
if (procedureArgumentList != null) {
for (SQLExpr arg : procedureArgumentList) {
SQLExpr arg_cloned = arg.clone();
arg_cloned.setParent(this);
x.procedureArgumentList.add(arg_cloned);
}
}
x.lockInShareMode = lockInShareMode;
return x;
}