net.sf.jsqlparser.statement.values.ValuesStatement Java Examples
The following examples show how to use
net.sf.jsqlparser.statement.values.ValuesStatement.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JSqlParsers.java From sqlhelper with GNU Lesser General Public License v3.0 | 5 votes |
public static PlainSelect extractPlainSelect(SelectBody selectBody) { if (selectBody == null) { return null; } if (selectBody instanceof PlainSelect) { return (PlainSelect) selectBody; } if (selectBody instanceof WithItem) { SelectBody subSelectBody = ((WithItem) selectBody).getSelectBody(); if (subSelectBody != null) { return extractPlainSelect(subSelectBody); } else { return null; } } if (selectBody instanceof ValuesStatement) { return null; } if (selectBody instanceof SetOperationList) { SetOperationList setOperationList = (SetOperationList) selectBody; List<SelectBody> selectBodyList = setOperationList.getSelects(); if (Emptys.isNotEmpty(selectBodyList)) { return extractPlainSelect(selectBodyList.get(selectBodyList.size() - 1)); } } return null; }
Example #2
Source File: AddDateInterceptor.java From dynamic-add-date with MIT License | 5 votes |
@Override public void visit(ValuesStatement valuesStatement) { if (index != -1) { valuesStatement.getExpressions().set(index, new QuotationTimestampValue(columnValue)); } else { valuesStatement.getExpressions().add(index, new QuotationTimestampValue(columnValue)); } }
Example #3
Source File: SqlSecurerVisitor.java From evosql with Apache License 2.0 | 4 votes |
@Override public void visit(ValuesStatement aThis) { aThis.getExpressions().forEach(x -> x.accept(this)); }
Example #4
Source File: SeedVisitor.java From evosql with Apache License 2.0 | 2 votes |
@Override public void visit(ValuesStatement aThis) { }
Example #5
Source File: UsedColumnExtractorVisitor.java From evosql with Apache License 2.0 | 2 votes |
@Override public void visit(ValuesStatement aThis) { }
Example #6
Source File: TablesNamesFinder.java From evosql with Apache License 2.0 | 2 votes |
@Override public void visit(ValuesStatement aThis) { }
Example #7
Source File: ClassifierVisitor.java From evosql with Apache License 2.0 | 2 votes |
@Override public void visit(ValuesStatement aThis) { }
Example #8
Source File: DetailedClassifierVisitor.java From evosql with Apache License 2.0 | 2 votes |
@Override public void visit(ValuesStatement aThis) { }
Example #9
Source File: FunctionClassifierVisitor.java From evosql with Apache License 2.0 | 2 votes |
@Override public void visit(ValuesStatement aThis) { }
Example #10
Source File: QueryStripperVisitor.java From evosql with Apache License 2.0 | 2 votes |
@Override public void visit(ValuesStatement aThis) { }
Example #11
Source File: CryptoVisitor.java From evosql with Apache License 2.0 | 2 votes |
@Override public void visit(ValuesStatement aThis) { }