use of com.alibaba.druid.FastsqlException in project druid by alibaba.
the class SQLMethodInvokeExpr method output.
public void output(Appendable buf) {
try {
if (this.owner != null) {
this.owner.output(buf);
buf.append(".");
}
buf.append(this.methodName);
buf.append("(");
for (int i = 0, size = this.arguments.size(); i < size; ++i) {
if (i != 0) {
buf.append(", ");
}
this.arguments.get(i).output(buf);
}
buf.append(")");
} catch (IOException ex) {
throw new FastsqlException("output error", ex);
}
}
use of com.alibaba.druid.FastsqlException in project druid by alibaba.
the class SQLNotExpr method output.
@Override
public void output(Appendable buf) {
try {
buf.append(" NOT ");
this.expr.output(buf);
} catch (IOException ex) {
throw new FastsqlException("output error", ex);
}
}
use of com.alibaba.druid.FastsqlException in project druid by alibaba.
the class SQLCurrentOfCursorExpr method output.
@Override
public void output(Appendable buf) {
try {
buf.append("CURRENT OF ");
cursorName.output(buf);
} catch (IOException ex) {
throw new FastsqlException("output error", ex);
}
}
use of com.alibaba.druid.FastsqlException in project druid by alibaba.
the class SQLHexExpr method output.
public void output(Appendable buf) {
try {
buf.append("0x");
buf.append(this.hex);
String charset = (String) getAttribute("USING");
if (charset != null) {
buf.append(" USING ");
buf.append(charset);
}
} catch (IOException ex) {
throw new FastsqlException("output error", ex);
}
}
use of com.alibaba.druid.FastsqlException in project druid by alibaba.
the class SQLIntervalExpr method output.
@Override
public void output(Appendable buf) {
try {
buf.append("INTERVAL ");
value.output(buf);
if (unit != null) {
buf.append(' ');
buf.append(unit.name());
}
} catch (IOException ex) {
throw new FastsqlException("output error", ex);
}
}
Aggregations